Skip to content

Commit

Permalink
work on styling
Browse files Browse the repository at this point in the history
  • Loading branch information
MaHaWo committed Aug 21, 2024
1 parent f36ce20 commit b4884e7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 24 deletions.
44 changes: 21 additions & 23 deletions src/lib/components/AbstractContent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -34,31 +34,29 @@
</script>

<!-- Top element: basic navigation-->
<Navbar class="overflow-x-auto whitespace-nowrap">
<div class="flex flex-nowrap items-center space-x-4 rtl:space-x-reverse">
<NavBrand href="/">
<img src={logo_light} class="block h-16 dark:hidden" alt="MONDEY Logo" />
<img src={logo_dark} class="hidden h-16 dark:block" alt="MONDEY Logo" />
</NavBrand>
<NavHamburger />
<NavUl ulClass="flex flex-row space-x-4 rtl:space-x-reverse md:text-lg md:font-medium ml-auto">
<NavLi href="/" active={true}>Home</NavLi>
<NavLi href="/">Aktuelles</NavLi>
<NavLi href="/">Downloads</NavLi>
<NavLi href="/">Kontakt</NavLi>
<Navbar>
<NavBrand href="/">
<img src={logo_light} class="block h-16 dark:hidden" alt="MONDEY Logo" />
<img src={logo_dark} class="hidden h-16 dark:block" alt="MONDEY Logo" />
</NavBrand>
<NavHamburger />
<NavUl ulClass="flex space-x-4 text-lg ">
<NavLi href="/" active={true}>Home</NavLi>
<NavLi href="/">Aktuelles</NavLi>
<NavLi href="/">Downloads</NavLi>
<NavLi href="/">Kontakt</NavLi>

<FunctionalIcon tooltip={'Darkmode ein- oder ausschalten'}>
<DarkMode class="apply-icon-style">
<MoonSolid slot="darkIcon" />
<SunSolid slot="lightIcon" />
</DarkMode>
</FunctionalIcon>
<FunctionalIcon tooltip={'Darkmode ein- oder ausschalten'}>
<DarkMode class="apply-icon-style">
<MoonSolid slot="darkIcon" />
<SunSolid slot="lightIcon" />
</DarkMode>
</FunctionalIcon>

<FunctionalIcon tooltip={'Registrieren oder einloggen'}>
<Avatar rounded border class="apply-icon-style" />
</FunctionalIcon>
</NavUl>
</div>
<FunctionalIcon tooltip={'Registrieren oder einloggen'}>
<Avatar rounded class="apply-icon-style" />
</FunctionalIcon>
</NavUl>
</Navbar>

<!--Page content goes here-->
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/Navigation/FunctionalIcon.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
:global(.apply-icon-style) {
@apply rounded-lg p-2 text-xl text-gray-500 transition-colors;
@apply rounded-lg p-2 text-xl text-gray-500;
}
:global(.apply-icon-style:hover) {
Expand Down

0 comments on commit b4884e7

Please sign in to comment.