added site modes
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
---
|
||||
import Layout from './Layout.astro';
|
||||
import { getSiteMode, copy } from '../lib/siteMode';
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
@@ -7,6 +8,7 @@ interface Props {
|
||||
}
|
||||
|
||||
const { title, wide = false } = Astro.props;
|
||||
const c = copy(getSiteMode());
|
||||
|
||||
if (Astro.cookies.get('admin_session')?.value !== '1') {
|
||||
return Astro.redirect('/admin/login');
|
||||
@@ -19,9 +21,9 @@ if (Astro.cookies.get('admin_session')?.value !== '1') {
|
||||
<div class="flex-1 min-w-0">
|
||||
<a href="/" class="back-link mb-3">
|
||||
<span class="bl-arrow" aria-hidden="true">←</span>
|
||||
Back to the catalogue
|
||||
{c.adminBack}
|
||||
</a>
|
||||
<div class="font-display italic text-[var(--mauve)] text-xs tracking-[0.3em] uppercase mb-2">Artist's desk</div>
|
||||
<div class="font-display italic text-[var(--mauve)] text-xs tracking-[0.3em] uppercase mb-2">{c.adminEyebrow}</div>
|
||||
<h1 class="font-display italic font-semibold text-[var(--text)] text-4xl md:text-5xl tracking-tight leading-[1.05]">
|
||||
{title}
|
||||
</h1>
|
||||
|
||||
Reference in New Issue
Block a user