dawg what the fuck
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
// @ts-check
|
// @ts-check
|
||||||
import { defineConfig } from 'astro/config';
|
import { defineConfig } from 'astro/config';
|
||||||
|
|
||||||
|
import tailwindcss from '@tailwindcss/vite';
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({});
|
export default defineConfig({
|
||||||
|
vite: {
|
||||||
|
plugins: [tailwindcss()]
|
||||||
|
}
|
||||||
|
});
|
||||||
@@ -9,6 +9,9 @@
|
|||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"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
3536
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
3
pnpm-workspace.yaml
Normal file
3
pnpm-workspace.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
onlyBuiltDependencies:
|
||||||
|
- esbuild
|
||||||
|
- sharp
|
||||||
@@ -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">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
@@ -12,5 +31,19 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Astro</h1>
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
12
src/styles/global.css
Normal file
12
src/styles/global.css
Normal 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;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user