Skip to content

A clean and modern landing page for a fictional mobile app called EcoTrack, which helps users reduce their carbon footprint by tracking daily habits

License

Notifications You must be signed in to change notification settings

ProximaD/ecotrack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

EcoTrack Landing Page

React Tailwind CSS JavaScript Lucide Icons Framer Motion

🌱 A modern, responsive landing page for the EcoTrack carbon footprint tracking app

Built with React.js and Tailwind CSS, featuring clean design and smooth animations


πŸ“‹ Table of Contents

🌟 About The Project

EcoTrack Landing Page is a modern, responsive website designed to showcase a fictional mobile app that helps users track and reduce their carbon footprint. The landing page features a clean design, smooth animations, and comprehensive sections including hero, features, testimonials, and more.

✨ Key Highlights

  • 🎨 Modern Design: Clean, professional UI with engaging gradients and animations
  • πŸ“± Fully Responsive: Optimized for desktop, tablet, and mobile devices
  • ⚑ Fast Performance: Built with modern React practices and optimized components
  • πŸ”§ Easy to Customize: Modular component structure for easy modifications
  • 🌍 Eco-Themed: Green color palette and sustainability-focused content

πŸš€ Features

  • Responsive Navigation with mobile hamburger menu
  • Hero Section with animated phone mockup and call-to-action buttons
  • Features Grid showcasing app capabilities
  • How It Works section with step-by-step process
  • Customer Testimonials with star ratings
  • Statistics Section with impressive numbers
  • Download CTA for iOS and Android
  • Professional Footer with links and branding
  • Smooth Scrolling navigation between sections
  • Hover Effects and micro-animations throughout

πŸ›  Tech Stack

  • Frontend Framework: React.js 18.2.0
  • Styling: Tailwind CSS 3.3.0
  • Icons: Lucide React
  • Build Tool: Create React App
  • Package Manager: npm
  • Development: ES6+ JavaScript

🏁 Getting Started

Prerequisites

Make sure you have the following installed on your system:

  • Node.js (version 14 or higher)
  • npm or yarn package manager
  • Git for version control

Installation

  1. Clone the repository

    git clone https://github.com/yourusername/ecotrack-landing.git
    cd ecotrack-landing
  2. Install dependencies

    npm install
  3. Start the development server

    npm start
  4. Open your browser

    Navigate to http://localhost:3000 to view the application.

Quick Setup Alternative

If you want to start from scratch:

# Create a new React app
npx create-react-app ecotrack-landing
cd ecotrack-landing

# Install required dependencies
npm install -D tailwindcss postcss autoprefixer
npm install lucide-react

# Initialize Tailwind CSS
npx tailwindcss init -p

# Start development server
npm start

πŸ“ Project Structure

ecotrack-landing/
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ index.html
β”‚   └── favicon.ico
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ Navbar.jsx          # Navigation component
β”‚   β”‚   β”œβ”€β”€ Hero.jsx            # Hero section
β”‚   β”‚   β”œβ”€β”€ Features.jsx        # Features grid
β”‚   β”‚   β”œβ”€β”€ HowItWorks.jsx      # Process explanation
β”‚   β”‚   β”œβ”€β”€ Testimonials.jsx    # Customer reviews
β”‚   β”‚   β”œβ”€β”€ Stats.jsx           # Statistics section
β”‚   β”‚   β”œβ”€β”€ CTA.jsx             # Call-to-action
β”‚   β”‚   └── Footer.jsx          # Footer component
β”‚   β”œβ”€β”€ App.js                  # Main app component
β”‚   β”œβ”€β”€ App.css                 # Custom styles
β”‚   β”œβ”€β”€ index.css               # Tailwind imports
β”‚   └── index.js                # App entry point
β”œβ”€β”€ package.json
β”œβ”€β”€ tailwind.config.js          # Tailwind configuration
β”œβ”€β”€ postcss.config.js           # PostCSS configuration
└── README.md

πŸ’» Usage

Running the Development Server

npm start

Runs the app in development mode. Open http://localhost:3000 to view it in the browser. The page will reload if you make edits.

Building for Production

npm run build

Builds the app for production to the build folder. It correctly bundles React in production mode and optimizes the build for the best performance.

Running Tests

npm test

Launches the test runner in the interactive watch mode.

🎨 Customization

Changing Colors

The project uses a green-themed color palette. To customize colors, modify the Tailwind classes in the components:

// Current green theme
className="bg-green-500 hover:bg-green-600"

// Change to blue theme
className="bg-blue-500 hover:bg-blue-600"

Updating Content

  1. Hero Section: Edit src/components/Hero.jsx
  2. Features: Modify the features array in src/components/Features.jsx
  3. Testimonials: Update testimonials data in src/components/Testimonials.jsx
  4. Statistics: Change stats in src/components/Stats.jsx

Adding New Sections

  1. Create a new component in src/components/
  2. Import and add it to src/App.js
  3. Update navigation links if needed

Custom Styling

Add custom CSS to src/App.css or use Tailwind's @apply directive for reusable styles:

.custom-button {
  @apply bg-green-500 text-white px-6 py-3 rounded-full hover:bg-green-600 transition-colors;
}

πŸš€ Deployment

Deploy to Vercel

  1. Install Vercel CLI

    npm i -g vercel
  2. Deploy

    npm run build
    vercel --prod

Deploy to Netlify

  1. Build the project

    npm run build
  2. Drag and drop the build folder to Netlify Drop

Deploy to GitHub Pages

  1. Install gh-pages

    npm install --save-dev gh-pages
  2. Add deploy scripts to package.json

    "scripts": {
      "predeploy": "npm run build",
      "deploy": "gh-pages -d build"
    }
  3. Deploy

    npm run deploy

πŸ“± Responsive Breakpoints

The design is optimized for the following breakpoints:

  • Mobile: < 768px
  • Tablet: 768px - 1024px
  • Desktop: > 1024px

🀝 Contributing

Contributions are welcome! Here's how you can help:

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Contribution Guidelines

  • Follow the existing code style and structure
  • Write clear commit messages
  • Test your changes thoroughly
  • Update documentation if needed
  • Ensure responsive design is maintained

πŸ“Š Performance

The landing page is optimized for performance:

  • βœ… Lighthouse Score: 90+ on all metrics
  • βœ… Mobile Friendly: Fully responsive design
  • βœ… Fast Loading: Optimized images and code splitting
  • βœ… SEO Ready: Semantic HTML structure
  • βœ… Accessible: WCAG compliance

πŸ”§ Available Scripts

In the project directory, you can run:

  • npm start - Runs the development server
  • npm test - Launches the test runner
  • npm run build - Builds the app for production
  • npm run eject - Ejects from Create React App (one-way operation)

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ‘€ Contact

Your Name - Sandra Lavenda

Project Link: https://github.com/ProximaD/ecotrack

Live Demo: https://ecotrack-ewzw.vercel.app/

πŸ™ Acknowledgments


Made with ❀️ and 🌱 for a sustainable future

Star ⭐ this repo if you found it helpful!

About

A clean and modern landing page for a fictional mobile app called EcoTrack, which helps users reduce their carbon footprint by tracking daily habits

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published