Clone the repository
Start by cloning the Sunflower Capital repository to your local machine:Replace
<repository-url> with your actual Git repository URL. If you don’t have access to the repository yet, contact your team administrator.Install dependencies
The project uses npm for package management. Install all required dependencies:package.json:
Core dependencies
Core dependencies
- next (^14.2.14) - React framework with App Router
- react (^18) - UI library
- react-dom (^18) - React DOM renderer
- react-page-scroller (^3.0.1) - Full-page scrolling functionality
- @glidejs/glide (^3.6.2) - Testimonials carousel
Device & analytics
Device & analytics
- react-device-detect (^2.2.3) - Mobile/desktop detection
- ua-parser-js (^1.0.39) - User agent parsing
- @vercel/analytics (^1.5.0) - Vercel Analytics integration
- @next/third-parties (^15.3.1) - Third-party script optimization
Development tools
Development tools
- typescript (^5) - Type safety
- tailwindcss (^3.4.10) - Utility-first CSS
- autoprefixer (^10.4.20) - CSS vendor prefixes
- eslint (^8) - Code linting
- eslint-config-next (14.2.7) - Next.js ESLint config
Start the development server
Once dependencies are installed, start the local development server:http://localhost:3000.
Open browser
Navigate to http://localhost:3000 in your browser
Success! The page auto-updates as you edit files thanks to Fast Refresh.
Project structure
Understand the key directories and files:Verify installation
Test that everything is working correctly:1. Check the hero section
The hero section should display:- “SUNFLOWER CAPITAL” title in Arya font
- Multiple animated sunflower SVGs
- Dark green (#03351A) background
- Breathing animation on the center flower
2. Test scrolling
Scroll down (or use mouse wheel) to navigate through sections:- Hero with animated flowers
- Mission statement on off-white background
- Ethos section with investment philosophy
- Portfolio table with filtering
- Testimonials carousel
- Footer with contact information
3. Test portfolio filtering
On desktop/landscape mode:- Click filter buttons like “AI/ML”, “Fintech”, “Developer”
- Verify the portfolio table updates to show only matching companies
- Click “All” to show all 56+ companies
- Use the dropdown selector to filter by industry
4. Verify responsive behavior
- Desktop (>1024px)
- Tablet (768px-1024px)
- Mobile (<768px)
- Full flower layout visible
- Dot navigation on right side
- Filter buttons displayed horizontally
- Three-column portfolio table
Edit your first page
Let’s make a simple change to verify hot reload works:Build for production
When you’re ready to create a production build:- Compiles TypeScript to JavaScript
- Optimizes React components
- Processes and minifies CSS with Tailwind
- Optimizes images and fonts
- Generates static pages where possible
- Creates optimized bundles
.next/ directory.
Start production server
After building, run the production server locally:http://localhost:3000.
Run linting
Ensure your code follows Next.js best practices:- React Hooks violations
- Accessibility issues
- Next.js-specific anti-patterns
- TypeScript type errors
Common issues
Port 3000 already in use
Port 3000 already in use
If port 3000 is occupied, Next.js will automatically try 3001, 3002, etc. Or specify a custom port:
Module not found errors
Module not found errors
Delete
node_modules and reinstall:TypeScript errors
TypeScript errors
Ensure you’re using Node.js 18+ and TypeScript 5:
Fonts not loading
Fonts not loading
Custom fonts are in Font faces are defined in
public/fonts/. Verify the files exist:src/app/globals.css at lines 20-37.Animations not working
Animations not working
Clear your browser cache and hard reload:
- Chrome/Edge: Ctrl+Shift+R (Cmd+Shift+R on Mac)
- Firefox: Ctrl+F5 (Cmd+Shift+R on Mac)
- Safari: Cmd+Option+R
Environment variables
The project includes Google Analytics. To configure:Vercel Analytics works automatically when deployed to Vercel - no configuration needed.
Next steps
Now that you have the development environment running:Customize styling
Learn how to customize colors, fonts, and animations
Deploy to Vercel
Deploy your site to production with automatic CI/CD
Portfolio component
Explore the portfolio table component and filtering
Architecture overview
Understand the application architecture and design