Initial commit

This commit is contained in:
2023-03-07 22:14:34 +01:00
commit f54e87d32e
18 changed files with 1361 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/styles/main.scss">
<title>Notes</title>
</head>
<body>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
+23
View File
@@ -0,0 +1,23 @@
import { Router, route } from 'preact-router'
import { render } from 'preact'
import { useEffect } from 'preact/hooks'
import { PageHomepage } from './pages.jsx'
const Redirect = ({ to }) => {
useEffect(() => {
route(to, true)
}, [])
return null
}
const Main = ({}) => {
return (
<Router>
<PageHomepage path="/" />
<Redirect default to="/" />
</Router>
)
}
render(<Main />, document.body)
+3
View File
@@ -0,0 +1,3 @@
import { Masonry } from './components/Masonry.jsx'
export const PageHomepage = ({}) => <main></main>
+19
View File
@@ -0,0 +1,19 @@
// Reset
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
font: inherit;
appearance: none;
}
input,
button {
background: unset;
border: unset;
border-radius: 0;
outline: none;
}