A stunning, interactive website dedicated to celebrating the mathematical constant π (pi). This site features beautiful visualizations, historical timelines, and interesting facts about pi, making mathematics more accessible and engaging for everyone.
Visit the live site at: https://mmmpi.com
- 🎨 Beautiful, responsive design with smooth animations
- 📜 Interactive timeline of pi's history
- 🔢 Fascinating facts about pi
- 🎯 Interactive visualizations
- 📱 Mobile-friendly layout
- 💰 Optional AdSense integration
- Node.js (v14 or higher)
- npm (v6 or higher)
- Clone the repository:
git clone https://github.com/jebalert/pi-tribute.git
cd pi-tribute- Install dependencies:
npm install-
Set up environment variables:
- Copy
.env.exampleto.env - If you want to use AdSense, update the following variables in
.env:VITE_ADSENSE_CLIENT_ID=your-ad-client-id VITE_ADSENSE_SLOT=your-ad-slot - If you don't want to use AdSense, you can leave these variables empty
- Copy
-
Start the development server:
npm run dev- Build for production:
npm run buildThis site is automatically deployed using GitHub Pages and is accessible at https://mmmpi.com.
To deploy manually:
- Go to the "Actions" tab in the GitHub repository
- Select the "Deploy to GitHub Pages" workflow
- Click "Run workflow"
The site is configured to use a custom domain (mmmpi.com) with HTTPS enabled. The configuration includes:
- Custom domain configuration in GitHub Pages settings
- CNAME file in the public directory
- DNS records pointing to GitHub Pages servers
- Automatic HTTPS certificate provisioning through GitHub Pages
- React 18
- TypeScript
- Vite
- Emotion (Styled Components)
- Framer Motion
- GSAP
- React Intersection Observer
The site uses Emotion for styling. You can customize the colors, layouts, and animations by modifying the styled components in each component file.
Update the content in the following files:
src/components/Timeline.tsx- Historical timelinesrc/components/Facts.tsx- Interesting facts about pisrc/components/Visualizations.tsx- Interactive visualizations
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to the mathematical community for preserving and advancing our understanding of π
- Special thanks to all the mathematicians throughout history who contributed to our knowledge of pi
Joseph Benfante - @jebalert
Project Link: https://github.com/jebalert/pi-tribute