Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
monnaie-libre-fr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
websites
monnaie-libre-fr
Commits
a4ca5f2d
Commit
a4ca5f2d
authored
3 years ago
by
Emmanuel Salomon
Browse files
Options
Downloads
Patches
Plain Diff
UI split menu avatar and dark mode toggle
parent
91fd2bf9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
components/layout/LayoutHeader.vue
+2
-0
2 additions, 0 deletions
components/layout/LayoutHeader.vue
components/layout/LayoutHeaderMenuAvatar.vue
+5
-22
5 additions, 22 deletions
components/layout/LayoutHeaderMenuAvatar.vue
nuxt.config.js
+1
-0
1 addition, 0 deletions
nuxt.config.js
with
8 additions
and
22 deletions
components/layout/LayoutHeader.vue
+
2
−
0
View file @
a4ca5f2d
...
...
@@ -9,6 +9,8 @@
<div
class=
"flex justify-end items-center relative"
>
<LayoutHeaderMenu
/>
<AppDarkMode
/>
<LayoutHeaderMenuAvatar
/>
</div>
</nav>
...
...
This diff is collapsed.
Click to expand it.
components/layout/LayoutHeaderMenuAvatar.vue
+
5
−
22
View file @
a4ca5f2d
...
...
@@ -8,34 +8,17 @@
'absolute right-0 rounded-md shadow-lg bg-white dark:bg-gray-600 border-gray-100 dark:border-gray-500 border transform translate-y-1',
}"
>
<div
slot=
"trigger"
slot-scope=
"
{
mousedownHandler,
focusHandler,
blurHandler,
keydownHandler,
isShown,
}"
class="inline-flex items-center relative px-2 dark:border-gray-500 border-2 rounded-full hover:shadow-lg focus:outline-none focus:ring-2 transition-shadow"
:class="{ 'shadow-lg': isShown }"
>
<AppDarkMode
/>
<div
slot=
"trigger"
class=
"flex items-center ml-5"
>
<button
type=
"button"
aria-label=
"User menu"
aria-haspopup=
"true"
@
mousedown=
"mousedownHandler"
@
focus=
"focusHandler"
@
blur=
"blurHandler"
@
keydown=
"keydownHandler"
class=
"h-8 w-8 focus:ring-2 focus:outline-none rounded-full"
>
<div
class=
"flex items-center h-10 w-10 pl-3"
>
<img
v-if=
"user"
:src=
"user.avatar_url"
class=
"rounded-full"
/>
<fa
v-else
icon=
"user-circle"
class=
"text-3xl"
/>
</div>
<img
v-if=
"user"
:src=
"user.avatar_url"
class=
"rounded-full"
/>
<fa
v-else
icon=
"user-circle"
class=
"text-3xl"
/>
</button>
<fa
icon=
"caret-down"
class=
"pl-1.5"
/>
</div>
<div
class=
"my-1"
style=
"min-width: 15rem"
>
...
...
This diff is collapsed.
Click to expand it.
nuxt.config.js
+
1
−
0
View file @
a4ca5f2d
...
...
@@ -89,6 +89,7 @@ export default {
'
faExpandArrowsAlt
'
,
'
faFont
'
,
'
faWheelchair
'
,
'
faCaretDown
'
,
],
brands
:
[
'
faCreativeCommonsNcEu
'
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment