A modern, fast, and accessible portfolio website built with Astro, showcasing my projects and blog posts.
🌐 Live Site: https://cj-tomlin.github.io
- ⚡ Lightning Fast - Built with Astro for optimal performance
- 🎨 Modern Design - Clean, professional UI with StarwindUI components
- 🌙 Dark Mode - Automatic theme switching with system preference detection
- 📱 Fully Responsive - Optimized for all devices and screen sizes
- ♿ Accessible - WCAG compliant with proper ARIA labels and keyboard navigation
- 🔍 SEO Optimized - Complete meta tags, Open Graph, Twitter cards, and structured data
- 📄 Content Management - Blog posts and projects managed with Astro Content Collections
- 🎭 Smooth Animations - Page load transitions and hover effects
- 🗺️ Sitemap & Robots.txt - Automatic generation for search engines
Inside of your Astro project, you'll see the following folders and files:
/
├── .github/
│ └── workflows/
│ └── deploy.yml # GitHub Actions deployment
├── public/
│ ├── favicon.svg # Site favicon
│ ├── og-image.jpg # Social media preview image
│ └── robots.txt # Search engine crawling rules
├── src/
│ ├── components/
│ │ ├── starwind/ # StarwindUI components
│ │ ├── BlogPostCard.astro # Reusable blog post card
│ │ ├── ProjectCard.astro # Reusable project card
│ │ ├── InfiniteScroll.astro # Infinite scroll component
│ │ ├── Navbar.astro # Navigation component
│ │ ├── ThemeToggle.astro # Dark/light mode toggle
│ │ └── SEO.astro # SEO meta tags component
│ ├── content/
│ │ ├── blog/ # Blog post markdown files
│ │ ├── projects/ # Project markdown files
│ │ └── config.ts # Content collections schema
│ ├── layouts/
│ │ └── Layout.astro # Base page layout
│ ├── pages/
│ │ ├── api/ # API endpoints for infinite scroll
│ │ ├── blog/ # Blog pages
│ │ ├── index.astro # Homepage
│ │ ├── projects.astro # Projects listing
│ │ └── 404.astro # 404 error page
│ └── styles/
│ ├── global.css # Global styles and animations
│ └── starwind.css # StarwindUI theme configuration
├── astro.config.mjs # Astro configuration
├── tailwind.config.cjs # Tailwind CSS configuration
└── tsconfig.json # TypeScript configuration
- Astro - Static site generator with partial hydration
- Tailwind CSS - Utility-first CSS framework
- StarwindUI - Component library for consistent UI
- TypeScript - Type-safe JavaScript
- MDX - Markdown with JSX for rich content
- GitHub Actions - Automated deployment to GitHub Pages
-
Clone the repository
git clone https://github.com/cj-tomlin/cj-tomlin.github.io.git cd cj-tomlin.github.io -
Install dependencies
npm install
-
Start development server
npm run dev
-
Open your browser Navigate to
http://localhost:4321
| Command | Description |
|---|---|
npm run dev |
Start development server |
npm run build |
Build for production |
npm run preview |
Preview production build |
npm run astro check |
Check for TypeScript errors |
- Create a new
.mdfile insrc/content/blog/ - Add frontmatter with title, excerpt, publishDate, and tags
- Write your content in Markdown
- Create a new
.mdfile insrc/content/projects/ - Add frontmatter with title, description, link, and tags
- Describe your project in Markdown
The site automatically deploys to GitHub Pages via GitHub Actions when you push to the main branch.