A modern, professional website for Physics and Mathematics tutoring services for Grades 10, 11, and 12.
- Modern Design: Dark theme with beautiful gradients and animations
- Fully Responsive: Works perfectly on desktop, tablet, and mobile
- Easy to Customize: All content in one config file
- Fast Performance: Built with Vite for optimal loading speed
- SEO Ready: Proper meta tags and semantic HTML
my-app/
├── src/
│ ├── sections/ # Page sections
│ │ ├── Navigation.tsx
│ │ ├── Hero.tsx
│ │ ├── About.tsx
│ │ ├── Subjects.tsx
│ │ ├── Resources.tsx
│ │ ├── Testimonials.tsx
│ │ ├── FAQ.tsx
│ │ ├── Contact.tsx
│ │ └── Footer.tsx
│ ├── config.ts # ⭐ ALL CONTENT HERE - Easy to edit
│ ├── App.tsx
│ └── index.css
├── dist/ # Build output (for deployment)
├── index.html
└── package.json
Edit src/config.ts to customize all website content:
export const siteConfig = {
name: "Your Academy Name",
tutor: {
name: "Your Name",
title: "Your Qualifications",
bio: "Your bio...",
},
contact: {
phone: "Your Phone",
email: "Your Email",
},
// ... more options
};npm installnpm run devnpm run build- Go to GitHub and create a new repository
- Name it
your-username.github.io(for user site) or any name (for project site)
# Initialize git (if not already done)
git init
# Add all files
git add .
# Commit
git commit -m "Initial commit"
# Add remote (replace with your repo URL)
git remote add origin https://github.com/your-username/your-repo.git
# Push
git push -u origin main- Go to your repository on GitHub
- Click Settings → Pages
- Under "Source", select GitHub Actions
Create .github/workflows/deploy.yml:
name: Deploy to GitHub Pages
on:
push:
branches: [main]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4Add base to your vite.config.ts:
export default defineConfig({
base: '/your-repo-name/', // Replace with your repo name
plugins: [react()],
// ...
});For user sites (username.github.io), use:
base: '/',Push the workflow file:
git add .
git commit -m "Add GitHub Actions workflow"
git pushYour site will be live at https://your-username.github.io/your-repo-name/
Edit src/index.css:
:root {
--primary: 217 91% 60%; /* Change primary color */
--background: 222 47% 6%; /* Change background */
}- Create a new file in
src/sections/ - Import and add it to
App.tsx
- Place images in
public/folder - Reference them in config:
tutor: {
image: "/your-image.jpg",
}- Framework: React + TypeScript
- Build Tool: Vite
- Styling: Tailwind CSS
- UI Components: shadcn/ui
- Icons: Lucide React
- Navigation - Sticky header with smooth scroll
- Hero - Animated intro with stats
- About - Tutor profile and highlights
- Subjects - Physics & Maths details
- Resources - Study materials showcase
- Testimonials - Student reviews carousel
- FAQ - Accordion with common questions
- Contact - Form and contact info
- Footer - Links and social media
MIT License - feel free to use for your tutoring business!
For issues or questions, please open an issue on GitHub. "# sciencegalore.github.io"
