๐ซ This is a free template to make your portfolio website using Astro 2.0 + Tailwind CSS.
๐ https://astro-fe-portfolio.netlify.app/
โ๏ธ 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
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.
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 |
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.
Assets designed by (Freepik)[www.freepik.com].