Official website for the IEEE Stanford Student Branch.
Note: This site was migrated from static HTML/CSS/JS to React with static site generation in November 2025. The original static site is preserved in the
legacybranch for reference.
- React 18 - UI framework
- React Router - Client-side routing
- Vite - Build tool and dev server
- Tailwind CSS - Utility-first styling
- PostCSS - CSS processing
- Node.js 20+ and npm
# Clone the repository
git clone https://github.com/mljoshi/IEEE_Stanford_Website.git
cd IEEE_Stanford_Website
# Install dependencies
npm install
# Start development server
npm run devVisit http://localhost:5173 to see the site.
npm run dev- Start development server with hot reloadnpm run build- Build for production (outputs todist/)npm run preview- Preview production build locallynpm run format- Format code with Prettier
npm run buildThis creates a dist/ folder with:
- Static HTML files for each route (
/team/index.html, etc.) - Bundled and minified JavaScript/CSS in
/assets/ - All images and static assets copied from
public/
Upload the contents of dist/ to your web server via FTP/SFTP.
For Stanford hosting:
- Connect to Stanford's server via Cyberduck
- Upload all files from
dist/to your web root (afs/ir/group/ieee/WWW) - Ensure
.htaccessis uploaded for proper routing
The .htaccess file enables clean URLs (/team instead of /#/team) on Apache servers.
├── public/ # Static assets (images, etc.)
│ ├── img/
│ └── ieee.png
├── src/
│ ├── components/ # Reusable React components
│ │ ├── Nav.jsx
│ │ └── OfficerCard.jsx
│ ├── pages/ # Route pages
│ │ ├── Home.jsx
│ │ ├── Team.jsx
│ │ ├── Events.jsx
│ │ ├── Resources.jsx
│ │ └── Contact.jsx
│ ├── styles/ # CSS files
│ │ └── index.css
│ ├── App.jsx # Main app component
│ └── main.jsx # Entry point
├── scripts/
│ └── prerender.js # Generates static HTML for routes
├── dist/ # Production build output
├── legacy/ # Original static site (archived)
└── vite.config.js # Vite configuration
- ✅ Responsive design
- ✅ Client-side routing with clean URLs
- ✅ Static site generation for SEO
- ✅ Optimized production builds
- ✅ IntersectionObserver animations for event cards
Contact the branch leadership or submit a pull request with improvements.