fix: refine header branding and profile menu icons
Docker / Docker Build & Push (push) Successful in 4m12s
Docker / Docker Build & Push (push) Successful in 4m12s
- Simplify the brand logo markup - Add icons to Profile, Settings, and About menu items
This commit is contained in:
1 parent
2c069c58cd
commit
85f02a7327
1 file changed
+4
-2
@@ -160,9 +160,7 @@
|
|||||||
|
|
||||||
<header class="sc-header">
|
<header class="sc-header">
|
||||||
<a class="sc-brand" href={brandHref} onclick={closeMenus}>
|
<a class="sc-brand" href={brandHref} onclick={closeMenus}>
|
||||||
<span aria-hidden="true" class="sc-brand-mark">
|
|
||||||
<img alt="" class="sc-brand-icon" src={faviconHref} />
|
<img alt="" class="sc-brand-icon" src={faviconHref} />
|
||||||
</span>
|
|
||||||
<span>{brand}</span>
|
<span>{brand}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
@@ -216,6 +214,7 @@
|
|||||||
void onProfile?.();
|
void onProfile?.();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<CircleUserRound aria-hidden="true" size={15} strokeWidth={2} />
|
||||||
Profile
|
Profile
|
||||||
</button>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
@@ -230,6 +229,7 @@
|
|||||||
void onSettings?.();
|
void onSettings?.();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<Settings2 aria-hidden="true" size={15} strokeWidth={2} />
|
||||||
Settings
|
Settings
|
||||||
</button>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
@@ -244,10 +244,12 @@
|
|||||||
void onAbout?.();
|
void onAbout?.();
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<Info aria-hidden="true" size={15} strokeWidth={2} />
|
||||||
About
|
About
|
||||||
</button>
|
</button>
|
||||||
{:else if aboutHref}
|
{:else if aboutHref}
|
||||||
<a class="sc-profile-menu-item" href={aboutHref} role="menuitem" onclick={() => (profileOpen = false)}>
|
<a class="sc-profile-menu-item" href={aboutHref} role="menuitem" onclick={() => (profileOpen = false)}>
|
||||||
|
<Info aria-hidden="true" size={15} strokeWidth={2} />
|
||||||
About
|
About
|
||||||
</a>
|
</a>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in new issue
Block a user