Create repo

This commit is contained in:
luaneko 2024-11-09 17:15:54 +11:00
commit 8fbce68bd1
Signed by: luaneko
GPG Key ID: 406809B8763FF07A
15 changed files with 4633 additions and 0 deletions

24
.gitignore vendored Normal file
View File

@ -0,0 +1,24 @@
# build output
dist/
# generated types
.astro/
# dependencies
node_modules/
# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
# environment variables
.env
.env.production
# macOS-specific files
.DS_Store
# jetbrains setting folder
.idea/

8
astro.config.mjs Normal file
View File

@ -0,0 +1,8 @@
// @ts-check
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
// https://astro.build/config
export default defineConfig({
integrations: [tailwind()],
});

18
package.json Normal file
View File

@ -0,0 +1,18 @@
{
"name": "lua.re",
"type": "module",
"version": "0.0.0",
"scripts": {
"dev": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview"
},
"dependencies": {
"@astrojs/check": "^0.9.4",
"@astrojs/tailwind": "^5.1.2",
"@fontsource/source-serif-4": "^5.1.0",
"astro": "^4.16.10",
"tailwindcss": "^3.4.14",
"typescript": "^5.6.3"
}
}

4495
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

BIN
public/apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
public/favicon-16x16.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 991 B

BIN
public/favicon-32x32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

6
src/classes.ts Normal file
View 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
View File

@ -0,0 +1 @@
/// <reference path="../.astro/types.d.ts" />

30
src/layouts/index.astro Normal file
View 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
View 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> &lt;<a href="mailto:lumi@lua.re" class="font-serif"><em>lumi@lua.re</em></a>&gt;
ෆᡣ𐭩
・:。<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
View File

@ -0,0 +1,12 @@
html {
@apply bg-bg font-serif leading-tight;
font-size: 14px;
}
a {
@apply hover:underline;
}
pre {
font-family: inherit;
}

17
tailwind.config.mjs Normal file
View File

@ -0,0 +1,17 @@
import defaultTheme from "tailwindcss/defaultTheme";
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {
fontFamily: {
serif: [`"Source Serif 4"`, ...defaultTheme.fontFamily.serif],
},
colors: {
bg: "#fff4ef",
},
},
},
plugins: [],
};

3
tsconfig.json Normal file
View File

@ -0,0 +1,3 @@
{
"extends": "astro/tsconfigs/strict"
}