chore: bootstrap portal application
This commit is contained in:
1 parent
90e53e7d56
commit
763098b129
20 files changed
+5703
-1
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import { expect, test } from "vitest";
|
||||
import { GET } from "./route";
|
||||
|
||||
test("returns a process liveness response", async () => {
|
||||
const response = await GET();
|
||||
|
||||
expect(response.status).toBe(200);
|
||||
await expect(response.json()).resolves.toEqual({ status: "ok" });
|
||||
});
|
||||
@@ -0,0 +1,3 @@
|
||||
export async function GET(): Promise<Response> {
|
||||
return Response.json({ status: "ok" });
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
:root {
|
||||
--paper: #ffffff;
|
||||
--ink: #0a0a0a;
|
||||
--muted: #5f5f5f;
|
||||
--line: #d8d8d8;
|
||||
--soft: #f3f3f3;
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
background: var(--paper);
|
||||
}
|
||||
|
||||
body {
|
||||
min-height: 100vh;
|
||||
margin: 0;
|
||||
background: var(--paper);
|
||||
color: var(--ink);
|
||||
font-family: Inter, "Helvetica Neue", Arial, sans-serif;
|
||||
font-synthesis: none;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 3px solid var(--ink);
|
||||
outline-offset: 4px;
|
||||
}
|
||||
|
||||
.landing {
|
||||
display: grid;
|
||||
min-height: 100vh;
|
||||
grid-template-rows: auto 1fr auto;
|
||||
padding: clamp(1.25rem, 3vw, 2.75rem);
|
||||
}
|
||||
|
||||
.masthead {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: 2rem;
|
||||
padding-bottom: 1rem;
|
||||
border-bottom: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.wordmark {
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.01em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.section-label,
|
||||
.eyebrow,
|
||||
.landing-footer {
|
||||
color: var(--muted);
|
||||
font-size: 0.75rem;
|
||||
letter-spacing: 0.09em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.intro {
|
||||
display: grid;
|
||||
align-content: center;
|
||||
max-width: 70rem;
|
||||
padding-block: clamp(5rem, 14vh, 10rem);
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
margin: 0 0 1.5rem;
|
||||
}
|
||||
|
||||
.intro h1 {
|
||||
max-width: 12ch;
|
||||
margin: 0;
|
||||
font-size: clamp(3rem, 9vw, 8.5rem);
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.065em;
|
||||
line-height: 0.88;
|
||||
}
|
||||
|
||||
.lede {
|
||||
max-width: 37rem;
|
||||
margin: clamp(2rem, 5vw, 4rem) 0 0;
|
||||
font-size: clamp(1rem, 1.6vw, 1.25rem);
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.primary-action {
|
||||
width: fit-content;
|
||||
margin-top: 2.25rem;
|
||||
padding: 0.9rem 1.25rem;
|
||||
border: 1px solid var(--ink);
|
||||
background: var(--ink);
|
||||
color: var(--paper);
|
||||
font-size: 0.875rem;
|
||||
font-weight: 650;
|
||||
text-decoration: none;
|
||||
transition: background-color 140ms ease, color 140ms ease;
|
||||
}
|
||||
|
||||
.primary-action:hover {
|
||||
background: var(--paper);
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.landing-footer {
|
||||
padding-top: 1rem;
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.landing-footer p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@media (max-width: 40rem) {
|
||||
.masthead {
|
||||
align-items: flex-start;
|
||||
flex-direction: column;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.intro h1 {
|
||||
letter-spacing: -0.055em;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.primary-action {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import type { Metadata } from "next";
|
||||
import type { ReactNode } from "react";
|
||||
import "./globals.css";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Redaktionsportal | Leon Tonhäuser",
|
||||
description: "Ausgewählte Pressefotos sicher finden und nutzen.",
|
||||
};
|
||||
|
||||
export default function RootLayout({ children }: Readonly<{ children: ReactNode }>) {
|
||||
return (
|
||||
<html lang="de">
|
||||
<body>{children}</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
export default function HomePage() {
|
||||
return (
|
||||
<main className="landing">
|
||||
<header className="masthead">
|
||||
<span className="wordmark">Leon Tonhäuser</span>
|
||||
<span className="section-label">Redaktionsportal</span>
|
||||
</header>
|
||||
|
||||
<section className="intro" aria-labelledby="intro-title">
|
||||
<p className="eyebrow">Pressefotografie</p>
|
||||
<h1 id="intro-title">Bilder für Ihre Redaktion.</h1>
|
||||
<p className="lede">
|
||||
Freigegebene Fotoalben durchsuchen, Nutzungen dokumentieren und
|
||||
Originaldateien herunterladen.
|
||||
</p>
|
||||
<a className="primary-action" href="/anmelden">
|
||||
Zum Portal
|
||||
</a>
|
||||
</section>
|
||||
|
||||
<footer className="landing-footer">
|
||||
<p>Der geschützte Zugang wird im nächsten Schritt eingerichtet.</p>
|
||||
</footer>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user