diff --git a/README.md b/README.md new file mode 100644 index 0000000..1db3fb3 --- /dev/null +++ b/README.md @@ -0,0 +1,54 @@ +# Astro Starter Kit: Basics + +```sh +npm create astro@latest -- --template basics +``` + +[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics) +[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics) +[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json) + +> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun! + +![just-the-basics](https://github.com/withastro/astro/assets/2244813/a0a5533c-a856-4198-8470-2d67b1d7c554) + +## 🚀 Project Structure + +Inside of your Astro project, you'll see the following folders and files: + +```text +/ +├── public/ +│ └── favicon.svg +├── src/ +│ ├── components/ +│ │ └── Card.astro +│ ├── layouts/ +│ │ └── Layout.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. + +## 🧞 Commands + +All commands are run from the root of the project, from a terminal: + +| Command | Action | +| :------------------------ | :----------------------------------------------- | +| `npm install` | Installs dependencies | +| `npm run dev` | Starts local dev server at `localhost:4321` | +| `npm run build` | Build your production site to `./dist/` | +| `npm run preview` | Preview your build locally, before deploying | +| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` | +| `npm run astro -- --help` | Get help using the Astro CLI | + +## 👀 Want to learn more? + +Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat). diff --git a/public/favicon.svg b/public/favicon.svg new file mode 100644 index 0000000..f157bd1 --- /dev/null +++ b/public/favicon.svg @@ -0,0 +1,9 @@ + + + + diff --git a/src/components/Nav-bar.astro b/src/components/Nav-bar.astro deleted file mode 100644 index 88b961a..0000000 --- a/src/components/Nav-bar.astro +++ /dev/null @@ -1,8 +0,0 @@ ---- ---- - \ No newline at end of file diff --git a/src/components/header.astro b/src/components/header.astro deleted file mode 100644 index ea9da73..0000000 --- a/src/components/header.astro +++ /dev/null @@ -1,8 +0,0 @@ ---- -import Navigation from "../components/Nav-bar.astro" ---- -
- -
\ No newline at end of file diff --git a/src/layouts/Sitelayout.astro b/src/layouts/Sitelayout.astro deleted file mode 100644 index 8926653..0000000 --- a/src/layouts/Sitelayout.astro +++ /dev/null @@ -1,19 +0,0 @@ ---- -import Header from "../components/header.astro"; -import '../styles/global.css'; -const { pageTitle} = Astro.props ---- - - - - - - {pageTitle} - - - -
-

{pageTitle}

- - - \ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro index 325e07e..fb62628 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,7 +1,123 @@ --- -import Layout from "../layouts/Sitelayout.astro"; -const pageTitle="home"; +import Layout from '../layouts/Layout.astro'; +import Card from '../components/Card.astro'; --- - -

uwu

-
\ No newline at end of file + + +
+ +

Welcome to Astro

+

+ To get started, open the directory src/pages in your project.
+ Code Challenge: Tweak the "Welcome to Astro" message above. +

+ +
+
+ + diff --git a/src/styles/global.css b/src/styles/global.css deleted file mode 100644 index 2a1801b..0000000 --- a/src/styles/global.css +++ /dev/null @@ -1,67 +0,0 @@ -html { - background-color: #f1f5f9; - font-family: sans-serif; - } - - body { - margin: 0 auto; - width: 100%; - max-width: 80ch; - padding: 1rem; - line-height: 1.5; - } - - * { - box-sizing: border-box; - } - - h1 { - margin: 1rem 0; - font-size: 2.5rem; - } - - /* nav styles */ - - .nav-links { - width: 100%; - top: 5rem; - left: 48px; - background-color: #ff9776; - display: none; - margin: 0; - } - - .nav-links a { - display: block; - text-align: center; - padding: 10px 0; - text-decoration: none; - font-size: 1.2rem; - font-weight: bold; - text-transform: uppercase; - } - - .nav-links a:hover, - .nav-links a:focus { - background-color: #ff9776; - } - - .expanded { - display: unset; - } - - @media screen and (min-width: 636px) { - .nav-links { - margin-left: 5em; - display: block; - position: static; - width: auto; - background: none; - } - - .nav-links a { - display: inline-block; - padding: 15px 20px; - } - - } \ No newline at end of file