Compare commits
No commits in common. 'main' and 'master' have entirely different histories.
@ -1,7 +1,54 @@
|
|||||||
# The Clog
|
# Astro Starter Kit: Basics
|
||||||
|
|
||||||
Add blog content to `src/content`.
|
```sh
|
||||||
|
npm create astro@latest -- --template basics
|
||||||
|
```
|
||||||
|
|
||||||
Preview locally with `pnpm dev`.
|
[](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics)
|
||||||
|
[](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/basics)
|
||||||
|
[](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/basics/devcontainer.json)
|
||||||
|
|
||||||
To deploy, run `pnpm run build` then `wrangler pages deploy`.
|
> 🧑🚀 **Seasoned astronaut?** Delete this file. Have fun!
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## 🚀 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).
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
---
|
|
||||||
<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>
|
|
@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
import Text from 'fulldev-ui/components/Text.astro';
|
||||||
|
---
|
||||||
|
<Text contrast={true}><slot /></Text>
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
---
|
|
||||||
<div class="max-w-3xl">
|
|
||||||
<slot />
|
|
||||||
</div>
|
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
---
|
|
||||||
<div class="flex flex-col items-center justify-center">
|
|
||||||
<slot />
|
|
||||||
</div>
|
|
@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
|
|
||||||
---
|
|
||||||
<div class={`flex flex-row justify-between ${Astro.props.class||''}`}>
|
|
||||||
<slot name="left" />
|
|
||||||
<slot name="right" />
|
|
||||||
</div>
|
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
---
|
|
||||||
<div class="flex flex-row gap-3 items-center justify-start">
|
|
||||||
<slot />
|
|
||||||
</div>
|
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
---
|
|
||||||
<h1 class="text-4xl font-bold text-brand-1">
|
|
||||||
<slot />
|
|
||||||
</h1>
|
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
---
|
|
||||||
<a class="text-brand underline-dotted" href={Astro.props.href}>
|
|
||||||
<slot />
|
|
||||||
</a>
|
|
@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
---
|
|
||||||
<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,32 +1,12 @@
|
|||||||
import { defineConfig, presetIcons } from "unocss";
|
import { defineConfig } from "unocss";
|
||||||
import presetUno from "@unocss/preset-uno";
|
import presetUno from "@unocss/preset-uno";
|
||||||
import { indigo } from "@radix-ui/colors";
|
import fulldevUI from "fulldev-ui/unocss";
|
||||||
// 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