added contact page

This commit is contained in:
2026-05-14 17:06:27 +02:00
parent b0f2634346
commit 0102c89d81
6 changed files with 290 additions and 5 deletions
+19 -3
View File
@@ -24,13 +24,22 @@ const { title, wide = false, description, image, type = 'website' } = Astro.prop
const API_URL = process.env.PUBLIC_API_URL || 'http://backend:3000';
const isAdmin = Astro.cookies.get('admin_session')?.value === '1';
let siteConfig = {
let siteConfig: {
title: string;
subtitle: string;
footer: string;
favicon: string;
theme: string;
custom_css: string;
contact_links?: { kind: string; label: string; value: string }[];
} = {
title: "Ela's Atelier",
subtitle: "Works on paper, canvas, and elsewhere",
footer: "Hand-arranged with care",
favicon: "/favicon.svg",
theme: "salon",
custom_css: ""
custom_css: "",
contact_links: []
};
try {
@@ -44,6 +53,7 @@ try {
const fullTitle = `${title} · ${siteConfig.title}`;
const year = new Date().getFullYear();
const hasContact = (siteConfig.contact_links?.length ?? 0) > 0;
---
<!doctype html>
@@ -147,8 +157,14 @@ const year = new Date().getFullYear();
/>
) : siteConfig.footer}
</p>
<div class="text-xs text-[var(--subtext0)] tracking-[0.2em] uppercase mb-3">
<div class="text-xs text-[var(--subtext0)] tracking-[0.2em] uppercase mb-3 flex items-center justify-center gap-3">
<a href="/feed.xml" class="hover:text-[var(--mauve)] transition-colors">RSS Feed</a>
{hasContact && (
<>
<span class="text-[var(--overlay0)]" aria-hidden="true">·</span>
<a href="/contact" class="hover:text-[var(--mauve)] transition-colors">Contact</a>
</>
)}
</div>
<div class="text-[var(--overlay0)] text-xs italic">
&copy; {year} · {siteConfig.title}