Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
P
ptarpwatraining
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
training
ptarpwatraining
Commits
97993e1c
Commit
97993e1c
authored
May 04, 2021
by
Azrul Amir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add page myaccount
parent
080f41a7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
7 deletions
+77
-7
app.css
src/css/app.css
+8
-0
MainLayout.vue
src/layouts/MainLayout.vue
+5
-6
myaccount.vue
src/pages/myaccount.vue
+62
-0
routes.js
src/router/routes.js
+2
-1
No files found.
src/css/app.css
View file @
97993e1c
/* app global css */
.waqfs-exact-active
{
color
:
red
;
}
.q-item.q-router-link--active
,
.q-item--active
{
color
:
white
;
background-color
:
purple
;
}
\ No newline at end of file
src/layouts/MainLayout.vue
View file @
97993e1c
...
...
@@ -57,7 +57,7 @@
>
<q-scroll-area
class=
"fit"
>
<q-list
padding
>
<q-item
v-for=
"link in links1"
:key=
"link.text"
v-ripple
clickable
>
<q-item
exact
v-for=
"link in links1"
:key=
"link.text"
v-ripple
clickable
:to=
"link.url"
>
<q-item-section
avatar
>
<q-icon
color=
"grey"
:name=
"link.icon"
/>
</q-item-section>
...
...
@@ -70,7 +70,7 @@
<q-item-label
header
class=
"text-weight-bold text-uppercase"
>
MORE ABOUT US
</q-item-label>
<q-item
v-for=
"link in links2"
:key=
"link.text"
v-ripple
clickable
>
<q-item
exact
v-for=
"link in links2"
:key=
"link.text"
v-ripple
clickable
:to=
"link.url"
>
<q-item-section
avatar
>
<q-icon
color=
"grey"
:name=
"link.icon"
/>
</q-item-section>
...
...
@@ -145,12 +145,11 @@ export default {
leftDrawerOpen
:
false
,
search
:
''
,
links1
:
[
{
icon
:
'home'
,
text
:
'Home'
},
{
icon
:
'subscriptions'
,
text
:
'My Account'
},
{
icon
:
'home'
,
text
:
'Home'
,
url
:
'/'
},
{
icon
:
'subscriptions'
,
text
:
'My Account'
,
url
:
'my-account'
},
],
links2
:
[
{
icon
:
'phone'
,
text
:
'Contact Us'
},
{
icon
:
'phone'
,
text
:
'Contact Us'
,
url
:
'contact-us'
},
],
links3
:
[
...
...
src/pages/myaccount.vue
0 → 100644
View file @
97993e1c
<
template
>
<q-page
padding
>
<div
class=
"q-pa-md"
>
<q-banner
dense
inline-actions
class=
"text-white bg-blue"
>
My Account
</q-banner>
<q-list
bordered
separator
>
<q-item
v-for=
"link in ls"
:key=
"link.txtname"
clickable
v-ripple
:to=
"link.url"
>
<q-item-section
avatar
>
<q-avatar
color=
"blue"
text-color=
"white"
:icon=
"link.icon"
/>
</q-item-section>
<q-item-section>
{{
link
.
name
}}
<q-item-label
caption
lines=
"2"
>
{{
link
.
txt
}}
</q-item-label>
</q-item-section>
</q-item>
</q-list>
</div>
</q-page>
</
template
>
<
script
>
export
default
{
name
:
'PageName'
,
data
()
{
return
{
ls
:
[
{
icon
:
"library_books"
,
name
:
"Borrowing Status"
,
txt
:
"Check book that currently on your loan"
,
url
:
"borrowing-status"
},
{
icon
:
"paid"
,
name
:
"Fines"
,
txt
:
"Check fine here. Pay..."
,
url
:
"fines"
},
{
icon
:
"menu_book"
,
name
:
"Borrowing History"
,
txt
:
"Track your loan status. Get your book and checkout"
,
url
:
"borrowing-history"
},
{
icon
:
"add"
,
name
:
"Book Renewal"
,
txt
:
"Track your loan status. Get your book and checkout"
,
url
:
"borrowing-history"
},
{
icon
:
"info"
,
name
:
"Info Literacy"
,
txt
:
"Track your loan status. Get your book and checkout"
,
url
:
"borrowing-history"
}
]
}
}
}
</
script
>
src/router/routes.js
View file @
97993e1c
...
...
@@ -6,7 +6,8 @@ const routes = [
children
:
[
{
path
:
''
,
component
:
()
=>
import
(
'pages/Index.vue'
)
},
{
path
:
'home'
,
component
:
()
=>
import
(
'pages/azrulpage.vue'
)
},
{
path
:
'contact-us'
,
component
:
()
=>
import
(
'pages/contactus.vue'
)
}
{
path
:
'contact-us'
,
component
:
()
=>
import
(
'pages/contactus.vue'
)
},
{
path
:
'my-account'
,
component
:
()
=>
import
(
'pages/myaccount.vue'
)
}
]
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment