This is the repository for my portfolio (version 2). I have created this portfolio with create-astro and published it to Github Pages. A live demo can be viewed here.
All functionality has been built of November 23rd, 2022. I have plans to add more micro-interactions and projects in the future, such as improving a11y, adding parallax scrolling for mobile, and adding more intro page transitions.
Features:
- โ Tailwind CSS for styling
- โ Themeable Dark mode
- โ 100/100 Lighthouse performance
- โ SEO-friendly with canonical URLs
- โ OpenGraph data for social media sharing
- โ Sitemap support
- โ Responsive support (layout, images, typography)
- โ Astro Prettier setup
Inside of the Astro project, you'll see the following folders and files:
โโโ public/
โโโ src/
โย ย โโโ assets/ # Images for the website
โย ย โโโ components/ # File used for DOM rendering
โย ย โโโ icons/ # Icons for the website
โย ย โโโ layouts/ # Shared layout for the website
โย ย โโโ pages/ # Main page
โย ย โโโ styles/ # Theme css with light and dark mode
โโโ .prettierrc.json # Lint styles config file
โโโ astro.config.mjs # Astro config tools file
โโโ package-lock.json # Npm package manager file
โโโ package.json # Npm package manager file
โโโ README.md - This file.
โโโ tailwind.config.cjs # Tailwind config file
โโโ tsconfig.json # Typescript config
Astro looks for .astro
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.
Clone the repository before running in development mode: git clone [email protected]:jun-low/portfolio-v2.git
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 |
This theme is based off of the lovely Bear Blog and Astro Moon Landing.