A modern, interactive landing page celebrating the art and science of tea. Built with React, Vite, Tailwind CSS, and GSAP for seamless animations and a responsive user experience.
https://tea-theory.vercel.app/
- Dynamic Animations: Smooth scroll-triggered reveals and transitions powered by GSAP.
- Responsive Design: Mobile-first layout using Tailwind CSS and react-responsive breakpoints.
- Thematic Sections: Explore tea history, brewing guides, flavor profiles, and more.
- Easy Content Management: Centralized data in the
constants
folder for effortless updates.
- Framework: React 19 with Vite for lightning-fast builds and HMR
- Styling: Tailwind CSS utility-first framework
- Animations: GSAP (GreenSock Animation Platform)
- Responsiveness: react-responsive for breakpoint handling
- Tooling: ESLint, Prettier, Vite, npm
Tea-Theory/
├── constants/ # Static data: sections, text content, image paths
├── public/ # Static assets (images, favicon)
│ └── images/ # Tea-related assets
├── src/
│ ├── components/ # Reusable UI components
│ │ ├── Header.jsx
│ │ ├── Section.jsx
│ │ └── Footer.jsx
│ ├── App.jsx # Root application component
│ ├── main.jsx # Entry point
│ └── index.css # Base styles & Tailwind imports
├── index.html # HTML template
├── tailwind.config.js # Tailwind configuration
├── vite.config.js # Vite build config
├── .gitignore
└── package.json # Dependencies & scripts
- Node.js v18 or higher
- npm v8 or higher
-
Clone the repo
git clone https://github.com/pranav89624/Tea-Theory.git cd Tea-Theory
-
Install dependencies
npm install
-
Run locally
npm run dev
Open
http://localhost:5173
in your browser. -
Build for production
npm run build npm run preview
- Content Updates: Edit static data in
constants/
for sections and images. - Styling Tweaks: Modify Tailwind classes or extend the config in
tailwind.config.js
. - Animation Adjustments: Fine-tune GSAP timelines in component files.
- Fork the repo
- Create a new branch (
git checkout -b feature/YourFeature
) - Commit your changes (
git commit -m 'Add your feature'
) - Push to the branch (
git push origin feature/YourFeature
) - Open a Pull Request