Create repo
This commit is contained in:
6
src/classes.ts
Normal file
6
src/classes.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export function classes(...s: (string | false | null | undefined)[]) {
|
||||
return s
|
||||
.flatMap((s) => (s ? s : "").split(" "))
|
||||
.filter((s) => s)
|
||||
.join(" ");
|
||||
}
|
||||
1
src/env.d.ts
vendored
Normal file
1
src/env.d.ts
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/// <reference path="../.astro/types.d.ts" />
|
||||
30
src/layouts/index.astro
Normal file
30
src/layouts/index.astro
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
import "../styles/index.css";
|
||||
import "@fontsource/source-serif-4/latin.css";
|
||||
import "@fontsource/source-serif-4/latin-italic.css";
|
||||
import "@fontsource/source-serif-4/latin-ext.css";
|
||||
|
||||
type Props = {
|
||||
title?: string;
|
||||
className?: string;
|
||||
};
|
||||
|
||||
const { title, className } = Astro.props;
|
||||
---
|
||||
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
||||
|
||||
<title>{title ?? "lua.re"}</title>
|
||||
</head>
|
||||
<body class={className}>
|
||||
<slot />
|
||||
</body>
|
||||
</html>
|
||||
19
src/pages/index.astro
Normal file
19
src/pages/index.astro
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
import Layout from "../layouts/index.astro";
|
||||
---
|
||||
|
||||
<Layout>
|
||||
<main class="max-w-prose mx-auto p-4 sm:p-8">
|
||||
<pre>{
|
||||
` ∧.,,∧ 𝜗𝜚
|
||||
( ̳• · • ̳) ᭢
|
||||
/ づ `}<a href="/"><em>lua.re</em></a> ᡣ𐭩
|
||||
<strong>luaneko</strong> <<a href="mailto:lumi@lua.re" class="font-serif"><em>lumi@lua.re</em></a>>
|
||||
|
||||
ෆᡣ𐭩
|
||||
・:。<small><a href="https://bsky.app/profile/lua.re">bs/lua.re</a></small>
|
||||
・:。<small><a href="https://github.com/luaneko">gh/luaneko</a></small>
|
||||
|
||||
🍡 🌸 🎀 🌙</pre>
|
||||
</main>
|
||||
</Layout>
|
||||
12
src/styles/index.css
Normal file
12
src/styles/index.css
Normal file
@@ -0,0 +1,12 @@
|
||||
html {
|
||||
@apply bg-bg font-serif leading-tight;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
a {
|
||||
@apply hover:underline;
|
||||
}
|
||||
|
||||
pre {
|
||||
font-family: inherit;
|
||||
}
|
||||
Reference in New Issue
Block a user