alvarlaigna / astro-portfolio

A free template for creating portfolio website using Astro 2.0 and Tailwind CSS.

Home Page:https://astro-fe-portfolio.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ’« This is a free template to make your portfolio website using Astro 4.0 + Tailwind CSS.

Dark mode

Dark mode

Light mode

Light mode

Lighthouse report

Lighthouse report

Table of Contents

Demo

πŸ“Œ https://astro-fe-portfolio.netlify.app/

Features

βœ”οΈ Integration with Tailwind CSS (@astrojs/tailwind) supporting Dark mode.

βœ”οΈ Uses the following integrations:

  • @astrojs/mdx
  • @astrojs/image
  • @astrojs/tailwind - with prettier class sorting plugin
  • @astro-icon
  • @astro-seo
  • @astro-navbar

βœ”οΈ(@Playwright) e2e tests are setted up.

πŸ”œ Blog with frontmatter (title, description, author, date, image, tags) and RSS feed, sitemap and robots.txt

πŸ”œ 404 error page

Project Structure

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

/
β”œβ”€β”€ public/
β”‚   └── favicon.ico
|   β”œβ”€β”€ hero.png
|   └── ...
β”œβ”€β”€ src/
|   β”œβ”€β”€ assets/
|   |   β”œβ”€β”€ images/
β”‚   β”‚   |   β”œβ”€β”€ hero.png
|   |   |   └── ...
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ ui/
β”‚   β”‚   |   β”œβ”€β”€ BackToTop.astro
|   |   |   └── ...
β”‚   β”‚   β”œβ”€β”€ About.astro
β”‚   β”‚   β”œβ”€β”€ Contact.astro
|   |   └── ...
β”‚   β”œβ”€β”€ content/
β”‚   β”‚   β”œβ”€β”€ projects/
β”‚   β”‚   β”‚   β”œβ”€β”€ project-1.md
β”‚   β”‚   β”‚   β”œβ”€β”€ project-1.md
β”‚   β”‚   β”‚   └── ...
β”‚   β”‚   β””-- config.ts
β”‚   β”œβ”€β”€ layouts/
β”‚   β”‚   β”œβ”€β”€ Layout.astro
β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   β”œβ”€β”€ index.astro
β”‚   β”œβ”€β”€ tests/
β”‚   β”‚   β”œβ”€β”€ index.spec.ts
β”œβ”€β”€ package.json
β”œβ”€β”€ astro.config.mjs
└── ...

Astro looks for .astro, .md or .mdx files in the src/pages/ directory. Each page is exposed as a route based on its file name.

src/components/ is where we put any Astro components and similarly src/layouts/ for layouts.

Images can be placed in src/images/.

Blog and documentation content are created as collections of Markdown or MDX files in src/content.

Any static assets, eg. images, can be placed in the public/ directory.

Commands

All commands are run from the root of the project, from a terminal:

Command Action
yarn Installs dependencies
yarn dev Starts local dev server at localhost:3000
yarn build Build your production site to ./dist/
yarn preview Preview your build locally, before deploying
yarn astro ... Run CLI commands like astro add, astro preview
yarn astro --help Get help using the Astro CLI
yarn test:e2e Run Playwright tests

Contributing

If you have any idea, suggestions or find any bugs, feel free to open a discussion, an issue or create a pull request. That would be very useful for all of us and we would be happy to listen and take action.

Credits

Assets designed by (Freepik)[www.freepik.com].

About

A free template for creating portfolio website using Astro 2.0 and Tailwind CSS.

https://astro-fe-portfolio.netlify.app/


Languages

Language:Astro 64.7%Language:TypeScript 28.5%Language:JavaScript 6.8%