diff --git a/site/src/components/ReactCounter.jsx b/site/src/components/ReactCounter.jsx deleted file mode 100644 index a2449eb..0000000 --- a/site/src/components/ReactCounter.jsx +++ /dev/null @@ -1,15 +0,0 @@ -import { useState } from "react"; - -export default function ReactCounter() { - const [count, setCount] = useState(0); - const add = () => setCount((i) => i + 1); - const subtract = () => setCount((i) => i - 1); - - return ( -
- -
{count}
- -
- ); -} diff --git a/site/src/components/Tour.astro b/site/src/components/Tour.astro deleted file mode 100644 index 71dbb74..0000000 --- a/site/src/components/Tour.astro +++ /dev/null @@ -1,85 +0,0 @@ ---- -import { Markdown } from 'astro/components'; ---- -
- - -
- - ## 🚀 Project Structure - - Inside of your Astro project, you'll see the following folders and files: - - ``` - / - ├── public/ - │ ├── robots.txt - │ └── favicon.ico - ├── src/ - │ ├── components/ - │ │ └── Tour.astro - │ └── pages/ - │ └── index.astro - └── package.json - ``` - - Astro looks for `.astro` or `.md` files in the `src/pages/` directory. - Each page is exposed as a route based on its file name. - - There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. - - Any static assets, like images, can be placed in the `public/` directory. - -
- -
-

👀 Want to learn more?

-

Feel free to check our documentation or jump into our Discord server.

-
- -
- - diff --git a/site/src/layouts/BaseLayout.astro b/site/src/layouts/BaseLayout.astro new file mode 100644 index 0000000..e1b8113 --- /dev/null +++ b/site/src/layouts/BaseLayout.astro @@ -0,0 +1,25 @@ +--- +import AuthTest from '../components/AuthTest.jsx'; + +let { title } = Astro.props; +--- + + + + + + + {title} + + + +
+ +
+
+ +
+ + \ No newline at end of file diff --git a/site/src/pages/index.astro b/site/src/pages/index.astro index 5cdcf6c..34fa3bf 100644 --- a/site/src/pages/index.astro +++ b/site/src/pages/index.astro @@ -1,63 +1,7 @@ --- -// Component Imports -import Tour from '../components/Tour.astro'; -// You can import components from any supported Framework here! -import ReactCounter from '../components/ReactCounter.jsx'; - -import AuthTest from '../components/AuthTest.jsx'; - -// Component Script: -// You can write any JavaScript/TypeScript that you'd like here. -// It will run during the build, but never in the browser. -// All variables are available to use in the HTML template below. -let title = 'My Astro Site'; - -// Full Astro Component Syntax: -// https://docs.astro.build/core-concepts/astro-components/ - +import BaseLayout from '../layouts/BaseLayout.astro'; --- - - - - - {title} + +

Index page

+
- - - - - - - - -
-
-
- Astro logo -

Welcome to Astro

-
-
- - - - - - - -
- - diff --git a/site/src/styles/_base.scss b/site/src/styles/_base.scss new file mode 100644 index 0000000..e69de29 diff --git a/site/src/styles/_tokens.scss b/site/src/styles/_tokens.scss new file mode 100644 index 0000000..e69de29 diff --git a/site/src/styles/_typography.scss b/site/src/styles/_typography.scss new file mode 100644 index 0000000..e69de29 diff --git a/site/src/styles/_utils.scss b/site/src/styles/_utils.scss new file mode 100644 index 0000000..e69de29 diff --git a/site/src/styles/global.scss b/site/src/styles/global.scss new file mode 100644 index 0000000..742cf4a --- /dev/null +++ b/site/src/styles/global.scss @@ -0,0 +1,9 @@ +@use "base"; +@use "tokens"; +@use "typography"; +@use "utils"; + +body { + background-color: black; + color: white; +} \ No newline at end of file