mirror of
https://github.com/kogakure/website-astro-stefanimhoff.de.git
synced 2026-02-03 20:15:27 +00:00
docs: update README
This commit is contained in:
67
README.md
67
README.md
@@ -1,54 +1,37 @@
|
|||||||
# Astro Starter Kit: Basics
|
[](https://www.stefanimhoff.de/)
|
||||||
|

|
||||||
|
|
||||||
```
|
# stefanimhoff.de
|
||||||
npm create astro@latest -- --template basics
|
|
||||||
|
This is the source of my [personal website][si] build with [Astro], [Tailwind CSS], and [Preact].
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```sh
|
||||||
|
pnpm install
|
||||||
```
|
```
|
||||||
|
|
||||||
[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
|
## Running the Website
|
||||||
[](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics)
|
|
||||||
|
|
||||||
> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun!
|
```sh
|
||||||
|
pnpm dev
|
||||||

|
|
||||||
|
|
||||||
|
|
||||||
## 🚀 Project Structure
|
|
||||||
|
|
||||||
Inside of your Astro project, you'll see the following folders and files:
|
|
||||||
|
|
||||||
```
|
|
||||||
/
|
|
||||||
├── 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.
|
For more tasks have a look into the `package.json`.
|
||||||
|
|
||||||
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
|
## License
|
||||||
|
|
||||||
Any static assets, like images, can be placed in the `public/` directory.
|
All content is copyrighted by _Stefan Imhoff_ unless otherwise stated. Feel free to learn from the Source Code and reuse code for your projects.
|
||||||
|
|
||||||
## 🧞 Commands
|
The essays in my [Journal] of this website are licensed under a [Creative Commons license].
|
||||||
|
|
||||||
All commands are run from the root of the project, from a terminal:
|
The use of my design—the unique combination of layout, photos, or illustrations—my private photos, personal data and logo are only allowed with written permission.
|
||||||
|
|
||||||
| Command | Action |
|
In _easier_ words: **This is not a free theme**. Learn from it. Remix. Reuse. Build your own stuff. You can do it! 🤘
|
||||||
| :--------------------- | :----------------------------------------------- |
|
|
||||||
| `npm install` | Installs dependencies |
|
|
||||||
| `npm run dev` | Starts local dev server at `localhost:3000` |
|
|
||||||
| `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?
|
[creative commons license]: https://creativecommons.org/licenses/by-nc-sa/4.0/
|
||||||
|
[astro]: https://astro.build/
|
||||||
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
|
[tailwind css]: https://tailwindcss.com/
|
||||||
|
[preact]: https://preactjs.com/
|
||||||
|
[journal]: https://www.stefanimhoff.de/journal/
|
||||||
|
[si]: https://www.stefanimhoff.de/
|
||||||
|
|||||||
Reference in New Issue
Block a user