dev #3
@@ -1,9 +1,10 @@
|
|||||||
---
|
---
|
||||||
// src/components/Footer.astro
|
// src/components/Footer.astro
|
||||||
|
import { getPath } from '../utils/paths';
|
||||||
|
|
||||||
const currentYear = new Date().getFullYear();
|
const currentYear = new Date().getFullYear();
|
||||||
const startYear = 2026;
|
const startYear = 2026;
|
||||||
const displayYear = currentYear > startYear ? `${startYear}–${currentYear}` : startYear;
|
const displayYear = currentYear > startYear ? `${startYear}–${currentYear}` : startYear;
|
||||||
import { getPath } from '../utils/paths';
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<footer class="main-footer">
|
<footer class="main-footer">
|
||||||
|
|||||||
@@ -1,17 +1,18 @@
|
|||||||
---
|
---
|
||||||
import Logo from './Logo.astro';
|
// src/components/Header.astro
|
||||||
import getPath from '../utils/paths';
|
import Logo from "./Logo.astro";
|
||||||
|
import { getPath } from "../utils/paths";
|
||||||
|
|
||||||
const pathname = new URL(Astro.request.url).pathname;
|
const pathname = new URL(Astro.request.url).pathname;
|
||||||
const currentPath = pathname.slice(1);
|
const currentPath = pathname.slice(1);
|
||||||
---
|
---
|
||||||
|
|
||||||
<header class="main-header">
|
<header class="main-header">
|
||||||
<div class="header-container">
|
<div class="header-container">
|
||||||
<a href={getPath("/")} class="group flex items-center gap-2">
|
<a href={getPath("/")} class="group flex items-center gap-2">
|
||||||
<Logo class="h-6 w-auto transition-colors" />
|
<Logo class="h-6 w-auto transition-colors" />
|
||||||
</a>
|
</a>
|
||||||
<!--
|
<!--
|
||||||
<nav>
|
<nav>
|
||||||
<ul class="nav-list">
|
<ul class="nav-list">
|
||||||
<li>
|
<li>
|
||||||
@@ -31,5 +32,5 @@ const currentPath = pathname.slice(1);
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav> -->
|
</nav> -->
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
|||||||
Reference in New Issue
Block a user