no sys wwws
This commit is contained in:
parent
7ab885d658
commit
9a938ee769
|
|
@ -1,28 +0,0 @@
|
|||
import { text } from "./other"
|
||||
import { css } from "@utils"
|
||||
|
||||
export default () => {
|
||||
return <>
|
||||
{css`
|
||||
body {
|
||||
background-color: cyan;
|
||||
font-family: "Comic Sans MS", "Comic Sans", "Chalkboard", "Comic Neue", cursive;
|
||||
}
|
||||
|
||||
main { width: 500px; margin: 0 auto; }
|
||||
|
||||
h1 { color: red; border-bottom: 1px dashed red; }
|
||||
|
||||
p { color: magenta; font-size: 18px; }
|
||||
`}
|
||||
|
||||
<main>
|
||||
<h1>{text}</h1>
|
||||
<p>
|
||||
This is a really nice website. I'm glad you like it.
|
||||
</p>
|
||||
</main>
|
||||
</>
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1 +0,0 @@
|
|||
export const text = "w00000t!"
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
export default (c: Context) =>
|
||||
"Hello, world!"
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
export default () =>
|
||||
<b>Very cool!</b>
|
||||
|
||||
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
export default () =>
|
||||
"pong"
|
||||
|
||||
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
import { routes } from "@utils"
|
||||
|
||||
export default routes({
|
||||
"GET /": index,
|
||||
"GET /pets": pets
|
||||
})
|
||||
|
||||
function index() {
|
||||
return <>
|
||||
<h1>Hi world!</h1>
|
||||
<p>Welcome to my personal web page.</p>
|
||||
<p>If you are looking for information on pets, click here:</p>
|
||||
<p><a href="/pets">PETS</a></p>
|
||||
</>
|
||||
}
|
||||
|
||||
function pets(c: Context) {
|
||||
return c.html(<>
|
||||
<ul>
|
||||
<li>dogs</li>
|
||||
<li>cats</li>
|
||||
<li>iguanas</li>
|
||||
<li>hamsters</li>
|
||||
<li>snakes</li>
|
||||
<li>chickens</li>
|
||||
<li>...even goats!</li>
|
||||
</ul>
|
||||
</>)
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user