Skip to content

Commit

Permalink
add popup menu account
Browse files Browse the repository at this point in the history
  • Loading branch information
thuongtruong1009 committed Feb 17, 2022
1 parent cafaf90 commit 6d9fc6f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 9 deletions.
26 changes: 24 additions & 2 deletions src/layouts/MainLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,39 @@
<q-btn no-caps :ripple="{ color: 'yellow' }" rounded color="blue-7" label="Post new tweet" class="no-shadow" padding="sm lg" to="/" />
</div>
<q-list class="absolute-bottom">
<q-item class="cursor-pointer flex justify-between items-center q-px-lg" to="/profile">
<q-item class="cursor-pointer flex justify-between items-center q-px-lg">
<q-icon name="account_circle" size="lg" />
<q-item-section>
<q-item-label class="text-weight-medium">Thuong Truong</q-item-label>
<q-item-label caption>@thuongtruong1009</q-item-label>
</q-item-section>

<q-item-section side top>
<q-item-label caption><q-btn flat round :color="isMore ? 'primary' : 'grey-5'" icon="more_horiz" @mouseover="hoverMore(true)"
@mouseout="hoverMore(false)" /></q-item-label>
</q-item-section>

<q-menu>
<q-list>
<q-item class="cursor-pointer flex justify-between items-center q-px-sm" to="/profile">
<q-icon name="account_circle" size="lg" />
<q-item-section>
<q-item-label class="text-weight-medium">Thuong Truong</q-item-label>
<q-item-label caption>@thuongtruong1009</q-item-label>
</q-item-section>
<q-item-section side top>
<q-item-label caption><q-btn flat round color="primary" icon="done" @mouseover="hoverMore(true)"
@mouseout="hoverMore(false)" /></q-item-label>
</q-item-section>
</q-item>
<q-separator color="grey-2" />
<q-item v-close-popup clickable>
<q-item-section>Add an existing account</q-item-section>
</q-item>
<q-item v-close-popup clickable>
<q-item-section>Logout @thuongtruong1009</q-item-section>
</q-item>
</q-list>
</q-menu>
</q-item>
</q-list>
</q-drawer>
Expand Down
17 changes: 10 additions & 7 deletions src/pages/PageHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,15 @@
</q-item-section>

<q-item-section>
<q-item-label class="text-subtitle1">
<strong>Thuong Truong</strong>
<span class="text-grey-7 text-caption q-ml-sm">@thuongtruong1009</span>
</q-item-label>
<q-item-label caption>
<span class="text-grey-7">&bull; {{ relativeDate(tweet.date) }}</span>
<q-item-label class="text-subtitle1 flex justify-between items-start">
<div>
<strong>Thuong Truong</strong>
<span class="text-grey-7 text-caption q-ml-sm">@thuongtruong1009</span>
<q-item-label caption>
<span class="text-grey-7">&bull; {{ relativeDate(tweet.date) }}</span>
</q-item-label>
</div>
<q-btn flat round color="grey-5" icon="more_horiz"/>
</q-item-label>
<q-item-label class="tweet-content text-body1 q-py-sm">{{ tweet.content }}</q-item-label>
<div class="tweet-icon row justify-between q-mt-sm">
Expand Down Expand Up @@ -82,7 +85,7 @@ export default defineComponent({
// }
],
thumbStyle: {
right: '1px',
right: '0px',
borderRadius: '9px',
backgroundColor: '#1DA1F2',
width: '5px',
Expand Down

1 comment on commit 6d9fc6f

@vercel
Copy link

@vercel vercel bot commented on 6d9fc6f Feb 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.