Portfolio Website - Astro

Just change src/data/info.ts to get your personal portfolio.
Portfolio template for Developers!
π Project Structure
Inside of your Astro project, youβll see the following folders and files:
/
βββ public/
β βββ robots.txt
β βββ favicon.ico
βββ src/
β βββ components/
β β βββ home/
| | βββ general/
| | βββ Header.astro
| | βββ Footer.astro
| | βββ ...
β βββ data/
β βββ layouts/
β | |ββ Layout.astro
β | βββ ...
β βββ pages/
β | βββ peojects/
β | | |ββ [slug].astro
| | | βββ index.asro
β | βββ index.astro
| | βββ 404.astro
β βββ posts/
| | βββ post-slug-1.md
| | βββ ...
β βββ styles/
β | |ββ custom-styles.css
β | |ββ fonts.css
β | βββ styles.css
β βββ types/
β βββ utils/
βββ 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.
Any blogs or casestudies can be placed in the src/posts directory.
Your personal data would be go on src/data 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: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?
Feel free to check Astro documentation or jump into Astro Discord server.