Compare commits
9 Commits
Author | SHA1 | Date |
---|---|---|
![]() |
a8d5ca5196 | 3 months ago |
![]() |
7af4c821c9 | 3 months ago |
![]() |
597b49d5a6 | 3 months ago |
![]() |
5e13636094 | 3 months ago |
![]() |
9eb7dda047 | 3 months ago |
![]() |
b2d21088cb | 3 months ago |
![]() |
15601e7bd4 | 3 months ago |
![]() |
102d4716e0 | 4 months ago |
![]() |
a116090136 | 4 months ago |
@ -1,54 +1,7 @@
|
|||||||
# Astro Starter Kit: Basics
|
# The Clog
|
||||||
|
|
||||||
```sh
|
Add blog content to `src/content`.
|
||||||
npm create astro@latest -- --template basics
|
|
||||||
```
|
|
||||||
|
|
||||||
[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
|
Preview locally with `pnpm dev`.
|
||||||
[](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics)
|
|
||||||
[](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json)
|
|
||||||
|
|
||||||
> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun!
|
To deploy, run `pnpm run build` then `wrangler pages deploy`.
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## 🚀 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).
|
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
---
|
||||||
|
<div class:list={["flex", "flex-justify-between"]}>
|
||||||
|
<div class:list={["flex", "flex-content-start"]}>
|
||||||
|
<slot name="left" />
|
||||||
|
</div>
|
||||||
|
<div class:list={["flex", "flex-content-center"]}>
|
||||||
|
<slot name="center" />
|
||||||
|
</div>
|
||||||
|
<div class:list={["flex", "flex-content-end"]}>
|
||||||
|
<slot name="right" />
|
||||||
|
</div>
|
||||||
|
</div>
|
@ -1,4 +0,0 @@
|
|||||||
---
|
|
||||||
import Text from 'fulldev-ui/components/Text.astro';
|
|
||||||
---
|
|
||||||
<Text contrast={true}><slot /></Text>
|
|
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
---
|
||||||
|
<div class="max-w-3xl">
|
||||||
|
<slot />
|
||||||
|
</div>
|
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
---
|
||||||
|
<div class="flex flex-col items-center justify-center">
|
||||||
|
<slot />
|
||||||
|
</div>
|
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
---
|
||||||
|
<div class={`flex flex-row justify-between ${Astro.props.class||''}`}>
|
||||||
|
<slot name="left" />
|
||||||
|
<slot name="right" />
|
||||||
|
</div>
|
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
---
|
||||||
|
<div class="flex flex-row gap-3 items-center justify-start">
|
||||||
|
<slot />
|
||||||
|
</div>
|
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
---
|
||||||
|
<h1 class="text-4xl font-bold text-brand-1">
|
||||||
|
<slot />
|
||||||
|
</h1>
|
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
---
|
||||||
|
<a class="text-brand underline-dotted" href={Astro.props.href}>
|
||||||
|
<slot />
|
||||||
|
</a>
|
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
---
|
||||||
|
<a class="text-brand-3 px-4 py-2 decoration-none border-brand-3 border-solid border-rounded border-width-1 border-transparent hover:border-brand-3" href={Astro.props.href}>
|
||||||
|
<slot />
|
||||||
|
</a>
|
@ -1,12 +1,32 @@
|
|||||||
import { defineConfig } from "unocss";
|
import { defineConfig, presetIcons } from "unocss";
|
||||||
import presetUno from "@unocss/preset-uno";
|
import presetUno from "@unocss/preset-uno";
|
||||||
import fulldevUI from "fulldev-ui/unocss";
|
import { indigo } from "@radix-ui/colors";
|
||||||
|
// import fulldevUI from "fulldev-ui/unocss";
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
injectReset: true,
|
// injectReset: true,
|
||||||
|
theme: {
|
||||||
|
colors: {
|
||||||
|
brand: {
|
||||||
|
"1": indigo.indigo1,
|
||||||
|
"2": indigo.indigo2,
|
||||||
|
"3": indigo.indigo3,
|
||||||
|
"4": indigo.indigo4,
|
||||||
|
"5": indigo.indigo5,
|
||||||
|
"6": indigo.indigo6,
|
||||||
|
"7": indigo.indigo7,
|
||||||
|
"8": indigo.indigo8,
|
||||||
|
"9": indigo.indigo9,
|
||||||
|
"10": indigo.indigo10,
|
||||||
|
"11": indigo.indigo11,
|
||||||
|
"12": indigo.indigo12,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
presets: [
|
presets: [
|
||||||
presetUno,
|
presetUno,
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
fulldevUI,
|
// fulldevUI,
|
||||||
|
presetIcons(),
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue