You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
8
-
[](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics)
9
-
[](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json)
3
+
The official repository for the Devmotion landing page.
10
4
11
-
> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun!
Inside of your Astro project, you'll see the following folders and files:
11
+
Inside repository, you'll see the following folders and files:
18
12
19
13
```text
20
14
/
21
-
├── public/
22
-
│ └── favicon.svg
23
-
├── src/
24
-
│ ├── components/
25
-
│ │ └── Card.astro
26
-
│ ├── layouts/
27
-
││ └── Layout.astro
28
-
│└── pages/
29
-
│ └── index.astro
30
-
└── package.json
15
+
├───.vscode
16
+
├───public
17
+
└───src
18
+
├───assets
19
+
│ └───images
20
+
├───components
21
+
├───icons
22
+
├───layouts
23
+
├───pages
24
+
└───utils
31
25
```
32
26
33
27
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
34
28
35
-
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
29
+
The `src/components/` directory for our components. Astro uses the [Snowpack](https://www.snowpack.dev/) module bundler, which means that each component is its own module. This allows us to use the same component in multiple pages without worrying about collisions.
30
+
31
+
The `src/layouts/` directory contains the layout components for our site. Layouts are special components that wrap other components, and are used to create a consistent layout across multiple pages.
32
+
33
+
The `src/assets/` directory is where we keep our static assets like images.
34
+
35
+
The `src/utils/` directory is where we keep our utility functions. These are functions that are used across multiple components, like a function that lets you create class names conditionally while merging of tailwind classes when needed.
36
+
37
+
The `src/icons/` directory is where we keep our SVG icons. These icons are used across multiple components and are automatically optimized by the `astro-icon` library.
36
38
37
-
Any static assets, like images, can be placed in the `public/` directory.
39
+
Any static assets that doesn't need optimization, like favicon, can be placed in the `public/` directory.
38
40
39
41
## 🧞 Commands
40
42
@@ -49,6 +51,6 @@ All commands are run from the root of the project, from a terminal:
49
51
|`npm run astro ...`| Run CLI commands like `astro add`, `astro check`|
50
52
|`npm run astro -- --help`| Get help using the Astro CLI |
51
53
52
-
## 👀 Want to learn more?
54
+
## Contributing
53
55
54
-
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
56
+
If you want to contribute to this project, please read the [CONTRIBUTING.md](#) file.
0 commit comments