refactor ui a bit
This commit is contained in:
parent
4ec7e17c9b
commit
acee33bd49
@ -44,21 +44,21 @@
|
|||||||
|
|
||||||
<form hx-post="/paste">
|
<form hx-post="/paste">
|
||||||
<div class="rounded lg:col-span-2 gap-2 flex-col flex">
|
<div class="rounded lg:col-span-2 gap-2 flex-col flex">
|
||||||
|
|
||||||
|
<div class="rounded shadow-sm">
|
||||||
|
<div class="flex justify-between bg-gray-700 rounded-t p-1">
|
||||||
|
<input name='title' id='title' placeholder="Put title here..."
|
||||||
|
class="bg-gray-700 rounded-t border-none text-white hover:border-none" />
|
||||||
<div class="flex gap-2">
|
<div class="flex gap-2">
|
||||||
<div class="flex flex-col">
|
<select name="type" class="bg-gray-600 text-gray-200 px-2 py-1 rounded">
|
||||||
<label class="text-gray-400">type: </label>
|
|
||||||
<select name="type" class="bg-gray-700 text-gray-200 px-2 py-1 rounded">
|
|
||||||
<option>text</option>
|
<option>text</option>
|
||||||
<option>javascript</option>
|
<option>javascript</option>
|
||||||
<option>rust</option>
|
<option>rust</option>
|
||||||
<option>markdown</option>
|
<option>markdown</option>
|
||||||
<option>html</option>
|
<option>html</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex flex-col">
|
<select name="type" class="bg-gray-600 text-gray-200 px-2 py-1 rounded">
|
||||||
<label class="text-gray-400">destroy: </label>
|
|
||||||
<select name="type" class="bg-gray-700 text-gray-200 px-2 py-1 rounded">
|
|
||||||
<option>after read</option>
|
<option>after read</option>
|
||||||
<option>1 minute</option>
|
<option>1 minute</option>
|
||||||
<option>5 minutes</option>
|
<option>5 minutes</option>
|
||||||
@ -66,9 +66,6 @@
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="rounded shadow-sm">
|
|
||||||
<input name='title' id='title' placeholder="Put title here..."
|
|
||||||
class="rounded-t border-none p-2 w-full focus:outline-none bg-gray-700 text-white" />
|
|
||||||
<textarea name='content' id="content"
|
<textarea name='content' id="content"
|
||||||
class="rounded-b text-white w-full resize-y border-none align-top sm:text-sm p-2 bg-gray-50 min-h-fit focus:outline-none bg-gray-800"
|
class="rounded-b text-white w-full resize-y border-none align-top sm:text-sm p-2 bg-gray-50 min-h-fit focus:outline-none bg-gray-800"
|
||||||
rows="16" placeholder="Paste your stuff here..."></textarea>
|
rows="16" placeholder="Paste your stuff here..."></textarea>
|
||||||
@ -119,4 +116,17 @@
|
|||||||
handleCookie()
|
handleCookie()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script type="module">
|
||||||
|
// be sure to specify the exact version
|
||||||
|
import {codeToHtml} from 'https://esm.sh/shiki@1.0.0'
|
||||||
|
// or
|
||||||
|
// import { codeToHtml } from 'https://esm.run/shiki@1.0.0'
|
||||||
|
|
||||||
|
const foo = document.getElementById('foo')
|
||||||
|
foo.innerHTML = await codeToHtml('console.log("Hi, Shiki on CDN :)")', {
|
||||||
|
lang: 'js',
|
||||||
|
theme: 'rose-pine'
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user