Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions src/components/Header.astro
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@ function isActive(prefix: string) {
<!-- Navigation links -->
<nav class="nav-main" aria-label="Main navigation">
<HeaderLink
href={`/${lang}/projects`}
class:list={[isActive("/projects") ? "active" : ""]}
href={`/${lang}/projects`}
class:list={[isActive("/projects") ? "active" : ""]}
>
{t("nav.projects")}
</HeaderLink>

<HeaderLink
href={`/${lang}/blog`}
class:list={[isActive("/blog") ? "active" : ""]}
href={`/${lang}/blog`}
class:list={[isActive("/blog") ? "active" : ""]}
>
{t("nav.blog")}
</HeaderLink>

<HeaderLink
href={`/${lang}/about`}
class:list={[isActive("/about") ? "active" : ""]}
href={`/${lang}/about`}
class:list={[isActive("/about") ? "active" : ""]}
>
{t("nav.about")}
</HeaderLink>
Expand Down Expand Up @@ -76,7 +76,8 @@ function isActive(prefix: string) {
}

.container {
max-width: 1020px;
width: 1020px;
max-width: 100%;
margin: 0 auto;
display: flex;
align-items: center;
Expand All @@ -86,6 +87,12 @@ function isActive(prefix: string) {
min-height: 3rem;
}

@media (max-width: 1020px) {
.container {
width: 100%;
}
}

/* ----- Logo ----- */
.logo {
margin: 0;
Expand Down Expand Up @@ -197,4 +204,4 @@ function isActive(prefix: string) {
padding: 0.3rem;
}
}
</style>
</style>