Welcome to TrailHive, a modern and responsive website built using Next.js, Tailwind CSS, and Framer Motion. This project features smooth animations, a sleek design, and a modal for collecting user information, which is then stored in a Notion database.
Check out the live demo: TrailHive
This project began with a Figma file I discovered in the Figma community:
SaaS, Nature Company — Webflow Landing Page Design
I aimed to recreate the desktop design as pixel-perfect as possible. Since the Figma file did not include tablet and mobile versions, I developed the responsive design myself. I also added animations to enhance the user experience and implemented a modal to collect user information, which is sent to Notion.
- Next.js: Server-side rendering and static site generation for improved performance.
- Tailwind CSS: Utility-first CSS framework for rapid and flexible UI development.
- Framer Motion: Advanced animations and transitions for a dynamic user experience.
- Notion: Database integration for storing and managing user information collected through the modal.
To get a copy of the project running on your local machine, follow these steps:
- Node.js (v14 or higher)
- npm or yarn
-
Clone the repository:
git clone https://github.com/yourusername/trailhive.git cd trailhive
-
Install dependencies: npm install
-
Set up Notion integration:
Create a Notion database to store user information.
Obtain Notion API credentials and database ID.
Create a .env file in the root directory and add the following environment variables:
NOTION_API_KEY=your_notion_api_key NOTION_DATABASE_ID=your_notion_database_id Run the development server: npm run dev
Open http://localhost:3000 in your browser to see the project in action.
Animations and Transitions TrailHive uses Framer Motion for smooth animations and transitions. You can customize these animations in the respective components to match your design preferences.
The project is styled with Tailwind CSS. You can extend or modify existing styles in the tailwind.config.js file and add custom CSS classes in the styles directory.
The site features a modal for collecting user information and storing it in a Notion database. Ensure your Notion credentials and database configuration are correctly set in the .env.local file.