Skip to content

Latest commit

Β 

History

History
82 lines (68 loc) Β· 2.46 KB

File metadata and controls

82 lines (68 loc) Β· 2.46 KB

katokdoes.art

This project is also has an Eleventy version - see 11ty version

If you wanna try this repo in work, follow these steps:

Bun:

bun i && bun dev

npm:

npm i && npm run dev

πŸš€ Project Structure

/
β”œβ”€β”€ dist
β”œβ”€β”€ public
β”‚   └── styles
β”‚       β”œβ”€β”€ themes
β”‚       β”‚   β”œβ”€β”€ dark.css
β”‚       β”‚   └── light.css
β”‚       β”œβ”€β”€ default-layout.css
β”‚       β”œβ”€β”€ fonts.css
β”‚       β”œβ”€β”€ global.css
β”‚       β”œβ”€β”€ index.css
β”‚       └── switcher.css
β”œβ”€β”€ src
β”‚   β”œβ”€β”€ components
β”‚   β”‚   β”œβ”€β”€ ExperienceCard.astro
β”‚   β”‚   └── ThemeSwitcher.astro
β”‚   β”œβ”€β”€ data
β”‚   β”‚   β”œβ”€β”€ en
β”‚   β”‚   β”‚   └── experience.json
β”‚   β”‚   └── ru
β”‚   β”‚       └── experience.json
β”‚   β”œβ”€β”€ layouts
β”‚   β”‚   └── Layout.astro
β”‚   β”œβ”€β”€ pages
β”‚   β”‚   β”œβ”€β”€ experience
β”‚   β”‚   β”‚   β”œβ”€β”€ ru
β”‚   β”‚   β”‚   β”‚   └── index.mdx
β”‚   β”‚   β”‚   └── index.mdx
β”‚   β”‚   β”œβ”€β”€ ru
β”‚   β”‚   β”‚   └── index.mdx
β”‚   β”‚   └── index.mdx
β”‚   β”œβ”€β”€ scripts
β”‚   β”‚   └── index.js
β”‚   └── env.d.ts
β”œβ”€β”€ CNAME
β”œβ”€β”€ README.md
β”œβ”€β”€ astro.config.mjs
β”œβ”€β”€ bun.lockb
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ package.json
└── tsconfig.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
bun i Installs dependencies
bun dev Starts local dev server at localhost:4321
bun run build Build your production site to ./dist/
bun preview Preview your build locally, before deploying
bun astro ... Run CLI commands like astro add, astro check
bun astro -- --help Get help using the Astro CLI