Skip to content

Commit 843e794

Browse files
add content for page list
1 parent ec20dfb commit 843e794

File tree

2 files changed

+95
-11
lines changed

2 files changed

+95
-11
lines changed

src/pages/PageExplore.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ const newsList = reactive([{
7777
status: "2 hours ago"
7878
}]);
7979
const thumbStyleExplore = {
80-
right: '1px',
80+
right: '0px',
8181
borderRadius: '9px',
8282
backgroundColor: '#1DA1F2',
83-
width: '5px',
83+
width: '3px',
8484
opacity: 0.75
8585
};
8686
const contentStyleExplore = {

src/pages/PageLists.vue

Lines changed: 93 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,100 @@
11
<template>
2-
<q-page class="q-pa-lg">
3-
<h4 class="q-mt-none q-mb-md text-weight-bold">Lists Twitter</h4>
4-
<div class="text-body-1">
5-
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Explicabo, doloremque natus. Molestiae perferendis maxime quasi harum obcaecati, ducimus earum necessitatibus adipisci. Est facilis, iusto ex consequuntur maxime aspernatur illo obcaecati?</p>
2+
<q-page>
3+
<q-scroll-area
4+
:thumb-style="thumbStyleList"
5+
:content-style="contentStyleList"
6+
:content-active-style="contentActiveStyleList"
7+
style="height: 40rem; max-width: 100%;">
8+
<div>
9+
<p class="q-mt-none text-weight-bold text-h6 q-pa-lg">Pinned Lists</p>
10+
<p class="q-pa-md text-grey">Nothing to see here yet — pin your favorite Lists to access them quickly.</p>
611
</div>
12+
<q-separator />
13+
<div class="q-pa-lg">
14+
<p class="q-mt-none text-weight-bold text-h6">Discover new Lists</p>
15+
<q-item v-for="(account, i) in accountList" :key="i">
16+
<q-item-section top avatar>
17+
<q-avatar>
18+
<img :src="account.avatar" />
19+
</q-avatar>
20+
</q-item-section>
21+
22+
<q-item-section>
23+
<q-item-label class="text-weight-bold">{{ account.name }}</q-item-label>
24+
<q-item-label caption>{{ account.username }}</q-item-label>
25+
<q-item-label class="text-grey-8">{{ account.desc }}</q-item-label>
26+
</q-item-section>
27+
28+
<q-item-section side top>
29+
<q-btn outline rounded color="black" label="Following" class="text-weight-medium text-sm text-capitalize" v-if="account.isFollowing === true" />
30+
<q-btn unelevated rounded color="black" label="Follow" class="text-capitalize" v-if="account.isFollowing === false" />
31+
</q-item-section>
32+
</q-item>
33+
<p class="text-blue q-px-md cursor-pointer">Show more</p>
34+
</div>
35+
<q-separator />
36+
<div class="q-pa-lg">
37+
<p class="q-mt-none text-weight-bold text-h6">Your Lists</p>
38+
<q-item v-for="(account, i) in accountList" :key="i">
39+
<q-item-section top avatar>
40+
<q-avatar>
41+
<img :src="account.avatar" />
42+
</q-avatar>
43+
</q-item-section>
44+
45+
<q-item-section>
46+
<q-item-label class="text-weight-bold">{{ account.name }}</q-item-label>
47+
<q-item-label caption>{{ account.username }}</q-item-label>
48+
<q-item-label class="text-grey-8">{{ account.desc }}</q-item-label>
49+
</q-item-section>
50+
51+
<q-item-section side top>
52+
<q-btn outline rounded color="black" label="Following" class="text-weight-medium text-sm text-capitalize" v-if="account.isFollowing === true" />
53+
<q-btn unelevated rounded color="black" label="Follow" class="text-capitalize" v-if="account.isFollowing === false" />
54+
</q-item-section>
55+
</q-item>
56+
<p class="text-blue q-px-md cursor-pointer">Show more</p>
57+
</div>
58+
</q-scroll-area>
759
</q-page>
860
</template>
961

10-
<script>
11-
import { defineComponent } from 'vue';
62+
<script setup>
63+
import { reactive } from 'vue'
64+
const accountList = reactive([{
65+
name: "Mark Zuckerberg",
66+
username: "@metamark",
67+
avatar: "/img/follow/mark_zuckerberg.jpg",
68+
desc: "programmer, entrepreneur, tech billionaire, facebook co-founder and CEO",
69+
isFollowing: false,
70+
},
71+
{
72+
name: "Manchester United",
73+
username: "@muchampion",
74+
avatar: "/img/follow/manchester_united.jpg",
75+
desc: "Red Devils in London in the English Premier League, eager to conquer the title",
76+
isFollowing: false,
77+
},
78+
{
79+
name: "Critiano Ronaldo",
80+
username: "@cristiano7",
81+
avatar: "/img/follow/cristiano_ronaldo.jpg",
82+
desc: "professional athlete, Portuguese football superstar",
83+
isFollowing: false,
84+
}]);
85+
const contentStyleList = {
86+
color: '#555'
87+
};
88+
89+
const contentActiveStyleList = {
90+
color: 'black'
91+
};
1292
13-
export default defineComponent({
14-
name: 'PageAbout'
15-
})
93+
const thumbStyleList = {
94+
right: '0px',
95+
borderRadius: '5px',
96+
backgroundColor: '#027be3',
97+
width: '3px',
98+
opacity: 0.7
99+
};
16100
</script>

0 commit comments

Comments
 (0)