Follow these steps to get your landing page running:
Make sure you have installed:
- ✅ Node.js 18 or higher (Download)
- ✅ npm (comes with Node.js)
Check versions:
node --version # Should be 18.x or higher
npm --version # Should be 6.x or highercd mega-landing
npm installThis will install all required packages (~2-3 minutes).
npm run devOpen your browser and go to: http://localhost:3000
You should see your landing page! 🎉
- Replace logo at
public/images/logo.png - Update company name in
src/components/layout/Navbar.jsx - Update company name in
src/components/layout/Footer.jsx
Update in these files:
-
src/components/layout/Footer.jsx(lines 15-25) -
src/app/contact/page.js(lines 10-30) -
src/app/layout.js(line 59 - WhatsApp link)
Replace:
Phone: +91 750 6070 157
Email: megaenterprise.info@gmail.com
Address: Plot No. 57, TALOJA, Navi Mumbai
WhatsApp: wa.me/917506070157
- Add brand logos to
public/images/brands/ - Add client logos to
public/images/clients/ - Update image paths in:
src/components/home/BrandsShowcase.jsxsrc/components/home/ClientsShowcase.jsx
- Add product images to
public/images/products/ - Update image URLs in
src/components/home/FeaturedProducts.jsx
File: src/components/home/Hero.jsx
- Update main headline
- Update subtitle
- Update statistics (20+ years, 50+ clients, etc.)
File: src/app/about/page.js
- Update company story
- Update timeline/milestones
- Update values and mission
File: src/app/products/page.js
- Add your actual product categories
- Add real product names and descriptions
- Link to actual product pages (if needed)
File: src/app/layout.js (lines 8-30)
Update:
- Page title
- Meta description
- Keywords
- OpenGraph tags
- Twitter card info
File: src/components/shared/ContactForm.jsx
Currently set to demo mode. To connect to your backend:
// Line 20: Replace this
await new Promise((resolve) => setTimeout(resolve, 2000));
// With your API call:
const response = await fetch('/api/contact', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(data),
});File: src/app/contact/page.js (line 95)
Replace the iframe src with your actual Google Maps embed URL:
- Go to Google Maps
- Search for your address
- Click "Share" → "Embed a map"
- Copy the iframe src URL
To add Google Analytics:
- Create
.env.localfile - Add:
NEXT_PUBLIC_GA_ID=G-XXXXXXXXXX - Uncomment analytics code in
src/app/layout.js
File: tailwind.config.js (lines 6-45)
The current colors are:
- Primary: Blues (#7AB2D3, #4A628A)
- Accent: Greens (#DFF2EB)
To change:
- Find your desired hex colors
- Update the
primarycolor values - Save and refresh browser
File: tailwind.config.js (lines 58-95)
Adjust animation durations, delays, or create new animations.
- Push to GitHub:
git init
git add .
git commit -m "Initial commit"
git remote add origin YOUR_GITHUB_REPO_URL
git push -u origin main- Deploy on Vercel:
- Go to vercel.com
- Click "New Project"
- Import your GitHub repository
- Click "Deploy"
- Done! Your site is live 🎉
- Custom Domain:
- Go to Project Settings → Domains
- Add your domain (e.g., megaenterprise.com)
- Update DNS records as instructed
- Push code to GitHub (same as above)
- Go to netlify.com
- Click "New site from Git"
- Select repository
- Build command:
npm run build - Publish directory:
.next - Deploy!
Solution: Delete node_modules and reinstall
rm -rf node_modules
npm installSolution: Run on different port
npm run dev -- -p 3001Solution:
- Check image paths in
public/images/ - Make sure file names match exactly
- Restart dev server
Solution:
- Check browser console for errors
- Make sure GSAP is imported correctly
- Try disabling browser extensions
- Test on mobile devices - The design is responsive, but always test on real devices
- Optimize images - Use WebP format and compress images before uploading
- Regular backups - Commit changes to GitHub regularly
- Monitor performance - Use Lighthouse in Chrome DevTools
If you encounter issues:
- Check the README.md file
- Search for error messages online
- Contact: megaenterprise.info@gmail.com
Next Steps After Setup:
- Replace all placeholder content
- Add real images
- Test contact form
- Deploy to production
- Set up custom domain
- Submit to Google Search Console
- Set up analytics
Good luck! 🚀