1
0

Continue work on hero and layout, implement hover effect

This commit is contained in:
Michael Rieger
2025-09-15 17:07:08 +02:00
parent b5e812da0f
commit 5967768c25
8 changed files with 224 additions and 51 deletions
+6 -6
View File
@@ -7,26 +7,27 @@ const isEnglish = Astro.currentLocale === "en";
---
<header>
<div>
<a href="." class="hoverable hoverable--diff">
<span class="sr-only">Back to home</span>
<Image
class="icon"
src={logo}
loading="eager"
alt="Tideshift Digital logo mark"
/>
</div>
</a>
<nav>
<ul>
<li>
<a
class:list={[{ active: isEnglish }]}
class:list={['hoverable', { active: isEnglish }]}
href={getRelativeLocaleUrl("en", "")}>EN</a
>
</li>
<li>
<a
class:list={[{ active: !isEnglish }]}
class:list={['hoverable',{ active: !isEnglish }]}
href={getRelativeLocaleUrl("de", "")}>DE</a
>
</li>
@@ -38,7 +39,6 @@ const isEnglish = Astro.currentLocale === "en";
header {
display: flex;
justify-content: space-between;
border: 1px solid var(--clr-ts-warm-red);
}
.icon {
@@ -53,7 +53,7 @@ const isEnglish = Astro.currentLocale === "en";
}
ul {
a {
& a {
color: var(--clr-ts-light);
text-decoration: none;