dawg what the fuck

This commit is contained in:
2026-01-12 07:46:01 +13:00
parent dbb466ffe9
commit 2655a16a12
6 changed files with 3596 additions and 3 deletions

View File

@@ -1,5 +1,11 @@
// @ts-check
import { defineConfig } from 'astro/config';
import tailwindcss from '@tailwindcss/vite';
// https://astro.build/config
export default defineConfig({});
export default defineConfig({
vite: {
plugins: [tailwindcss()]
}
});

View File

@@ -9,6 +9,9 @@
"astro": "astro"
},
"dependencies": {
"astro": "^5.16.8"
"@tailwindcss/vite": "^4.1.18",
"astro": "^5.16.8",
"quill": "2.0.3",
"tailwindcss": "^4.1.18"
}
}

3536
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

3
pnpm-workspace.yaml Normal file
View File

@@ -0,0 +1,3 @@
onlyBuiltDependencies:
- esbuild
- sharp

View File

@@ -1,6 +1,25 @@
---
import "../styles/global.css"
---
<script is:inline>
import Quill from "quill";
const quill = new Quill('#editor', {
modules: {
toolbar: [
[{ header: [1, 2, false] }],
['bold', 'italic', 'underline'],
['image'],
],
},
placeholder: 'Compose an epic...',
theme: 'snow', // or 'bubble'
});
</script>
---
<html lang="en">
<head>
@@ -12,5 +31,19 @@
</head>
<body>
<h1>Astro</h1>
<div id="editor">
<p>Hello World!</p>
<p>Some initial <strong>bold</strong> text</p>
<p><br /></p>
</div>
<!-- <button id="render" class="mt-2" onclick="renderText">
render
</button> -->
<div id="snya">
</div>
</body>
</html>

12
src/styles/global.css Normal file
View File

@@ -0,0 +1,12 @@
@import "tailwindcss";
@import 'quill/dist/quill.core.css';
@import 'quill/dist/quill.bubble.css';
@import 'quill/dist/quill.snow.css';
html {
@apply p-6;
}
button {
@apply py-2 px-3 bg-green-400 rounded-xl;
}