dorukeray / astro-website

Dorkodu's enhanced website template built with Astro framework.

Home Page:https://dorkodu.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dorkodu's Astro Template

A minimalist website template with Astro.

Ideal for portfolios, blogs, landing pages or personal websites.

Used: React, TypeScript, Mantine UI, MDX, Partytown, Sitemap

πŸ§‘β€πŸš€ Seasoned astronaut? Delete this file. Have fun!

just-the-basics

πŸš€ Project Structure

Inside of your Astro project, you'll see the following folders and files:

/
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ images/
β”‚   β”‚   └── example.png
β”‚   β”œβ”€β”€ fonts/
β”‚   β”‚   └── Font.ttf
β”‚   └── favicon.svg
β”‚   └── robots.txt
β”‚   └── site.webmanifest
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   └── Header.astro
β”‚   β”‚   └── Footer.astro
β”‚   β”‚   └── Hero.astro
β”‚   β”‚   └── Card.astro
β”‚   β”œβ”€β”€ layouts/
β”‚   β”‚   └── Layout.astro
β”‚   β”œβ”€β”€ styles/
β”‚   β”‚   └── theme.ts
β”‚   β”‚   └── index.css
β”‚   β”‚   └── index.css.ts
β”‚   β”‚   └── Layout.css.ts
β”‚   β”œβ”€β”€ pages/
β”‚   β”‚    └── index.astro
β”‚   β”‚    └── about.astro
β”‚   β”œβ”€β”€ env.d.ts
β”‚   β”œβ”€β”€ postcss.config.js
β”‚   β”œβ”€β”€ site.config.ts
β”‚   └──
└── 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.

Nothing special about src/components/, just where we like to put our 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
pnpm install Installs dependencies
pnpm dev Starts local dev server at localhost:4321
pnpm build Build your production site to ./dist/
pnpm preview Preview your build locally, before deploying
pnpm astro ... Run CLI commands like astro add, astro check
pnpm astro -- --help Get help using the Astro CLI

πŸ‘€ Want to learn more?

Feel free to check Astro's documentation.

About

Dorkodu's enhanced website template built with Astro framework.

https://dorkodu.com


Languages

Language:Astro 42.9%Language:TypeScript 35.6%Language:MDX 15.6%Language:JavaScript 5.8%