From b33c2f06a4524bc846e66bbe3abf6428d1cf2305 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Thu, 27 Feb 2025 10:42:09 +0100 Subject: Astro project structure --- README.md | 52 ++-------- isometric/index.html | 202 ------------------------------------ src/components/Welcome.astro | 209 ------------------------------------- src/layouts/Layout.astro | 22 ---- src/pages/index.astro | 144 ++++++++++++++++++++++++-- src/pages/isometric/index.astro | 221 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 364 insertions(+), 486 deletions(-) delete mode 100644 isometric/index.html delete mode 100644 src/components/Welcome.astro delete mode 100644 src/layouts/Layout.astro create mode 100644 src/pages/isometric/index.astro diff --git a/README.md b/README.md index ff19a3e..483d034 100644 --- a/README.md +++ b/README.md @@ -1,48 +1,10 @@ -# Astro Starter Kit: Basics +# Vibes -```sh -npm create astro@latest -- --template basics -``` +[https://vibes.yuv.al](https://vibes.yuv.al) -[![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) +## Dev -> 🧑‍🚀 **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/ -│ ├── layouts/ -│ │ └── Layout.astro -│ └── pages/ -│ └── index.astro -└── package.json -``` - -To learn more about the folder structure of an Astro project, refer to [our guide on project structure](https://docs.astro.build/en/basics/project-structure/). - -## 🧞 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). +```bash +$ npm install +$ npm run dev +``` \ No newline at end of file diff --git a/isometric/index.html b/isometric/index.html deleted file mode 100644 index 47dfbde..0000000 --- a/isometric/index.html +++ /dev/null @@ -1,202 +0,0 @@ - - - - - - - Isometric Triangles - - - - -
-

Isometric Triangles

-
- - - - - \ No newline at end of file diff --git a/src/components/Welcome.astro b/src/components/Welcome.astro deleted file mode 100644 index 6b7b9c7..0000000 --- a/src/components/Welcome.astro +++ /dev/null @@ -1,209 +0,0 @@ ---- -import astroLogo from '../assets/astro.svg'; -import background from '../assets/background.svg'; ---- - -
- -
-
- Astro Homepage -

- To get started, open the
src/pages
directory in your project. -

- -
-
- - - -

What's New in Astro 5.0?

-

- From content layers to server islands, click to learn more about the new features and - improvements in Astro 5.0 -

-
-
- - diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro deleted file mode 100644 index e455c61..0000000 --- a/src/layouts/Layout.astro +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - Astro Basics - - - - - - - diff --git a/src/pages/index.astro b/src/pages/index.astro index c04f360..0e40b3d 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,11 +1,139 @@ --- -import Welcome from '../components/Welcome.astro'; -import Layout from '../layouts/Layout.astro'; - -// Welcome to Astro! Wondering what to do next? Check out the Astro documentation at https://docs.astro.build -// Don't want to use any of this? Delete everything in this file, the `assets`, `components`, and `layouts` directories, and start fresh. +// Vibes homepage --- - - - + + + + + + Vibes + + + +

Vibes

+ +
+
+
+
+

Isometric Triangles

+

+ A dynamic background with colorful isometric triangles + that rotate and float across the screen. +

+ Go +
+
+
+ + diff --git a/src/pages/isometric/index.astro b/src/pages/isometric/index.astro new file mode 100644 index 0000000..df4ff5d --- /dev/null +++ b/src/pages/isometric/index.astro @@ -0,0 +1,221 @@ +--- +// Isometric Triangles Experiment +--- + + + + + + + Isometric Triangles + + + + +
+

Isometric Triangles

+
+ + + + -- cgit v1.3.1