diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/.index.jsx.kate-swp | bin | 0 -> 123 bytes | |||
| -rw-r--r-- | src/assets/favicon.ico | bin | 0 -> 1094 bytes | |||
| -rw-r--r-- | src/components/not_found/NotFound.jsx | 8 | ||||
| -rw-r--r-- | src/components/site/Site.jsx | 9 | ||||
| -rw-r--r-- | src/index.css | 20 | ||||
| -rw-r--r-- | src/index.html | 16 | ||||
| -rw-r--r-- | src/index.jsx | 25 | ||||
| -rw-r--r-- | src/reset.css | 47 |
8 files changed, 125 insertions, 0 deletions
diff --git a/src/.index.jsx.kate-swp b/src/.index.jsx.kate-swp Binary files differnew file mode 100644 index 0000000..cde11c5 --- /dev/null +++ b/src/.index.jsx.kate-swp diff --git a/src/assets/favicon.ico b/src/assets/favicon.ico Binary files differnew file mode 100644 index 0000000..ede3f4f --- /dev/null +++ b/src/assets/favicon.ico diff --git a/src/components/not_found/NotFound.jsx b/src/components/not_found/NotFound.jsx new file mode 100644 index 0000000..71ed075 --- /dev/null +++ b/src/components/not_found/NotFound.jsx @@ -0,0 +1,8 @@ +import React from "react"; + + +export default function NotFound() { + return ( + <div>Not Found!</div> + ) +} diff --git a/src/components/site/Site.jsx b/src/components/site/Site.jsx new file mode 100644 index 0000000..0c6c2f9 --- /dev/null +++ b/src/components/site/Site.jsx @@ -0,0 +1,9 @@ +import react from "react"; + +export default function Site() { + return ( + <div> + site page placeholder + </div> + ) +} diff --git a/src/index.css b/src/index.css new file mode 100644 index 0000000..ebb3fc5 --- /dev/null +++ b/src/index.css @@ -0,0 +1,20 @@ +:root { + font-size: calc(1vw + 0.6em); + font-family: 'Pitagon Sans Mono', monospace; + letter-spacing: 0.04em; + overscroll-behavior: none; +} +@media (min-width: 50em) { + :root { + font-size: 1.125em; + } +} + +:root { + box-sizing: border-box; +} +*, +*::before, +*::after { + box-sizing: inherit; +} diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..faaf03c --- /dev/null +++ b/src/index.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>GoReact</title> + </head> + + <body style="margin:0;"> + <noscript> + <p style="text-align: center;"><strong>JavaScript is required for this site to function.</strong></p> + </noscript> + <div id="root" style="display: flex; flex-direction: column; min-height: 100%"> + </div> + </body> +</html> diff --git a/src/index.jsx b/src/index.jsx new file mode 100644 index 0000000..e0f355b --- /dev/null +++ b/src/index.jsx @@ -0,0 +1,25 @@ +import React from "react"; +import {createRoot} from "react-dom/client"; +import {BrowserRouter, Routes, Route} from "react-router-dom"; + +import Site from "./components/site/Site.jsx"; +import NotFound from "./components/not_found/NotFound.jsx"; + +import "./reset.css"; +import "./index.css"; +import "@fontsource/pitagon-sans-mono"; + +function BrowserRoutes() { + return ( + <BrowserRouter> + <Routes> + <Route path="/*" element={<Site />} /> + <Route path="*" element={<NotFound />} /> + </Routes> + </BrowserRouter> + ); +} + +const r = document.getElementById("root"); +const root = createRoot(r); +root.render(); diff --git a/src/reset.css b/src/reset.css new file mode 100644 index 0000000..5f5af49 --- /dev/null +++ b/src/reset.css @@ -0,0 +1,47 @@ +/* http://meyerweb.com/eric/tools/css/reset/ + v2.0 | 20110126 + License: none (public domain) +*/ +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td, +article, aside, canvas, details, embed, +figure, figcaption, footer, header, hgroup, +menu, nav, output, ruby, section, summary, +time, mark, audio, video { + margin: 0; + padding: 0; + border: 0; + font-size: 100%; + font: inherit; + vertical-align: baseline; +} +/* HTML5 display-role reset for older browsers */ +article, aside, details, figcaption, figure, +footer, header, hgroup, menu, nav, section { + display: block; +} +body { + line-height: 1; +} +ol, ul { + list-style: none; +} +blockquote, q { + quotes: none; +} +blockquote:before, blockquote:after, +q:before, q:after { + content: ''; + content: none; +} +table { + border-collapse: collapse; + border-spacing: 0; +}
\ No newline at end of file |
