Google Flights Clone Development

Faizi

Faizi Ashfar

Google Flights Clone

A beautiful and modern Google Flights clone built with React, featuring a responsive design and smooth animations.

Features

šŸ›©ļø Modern flight search interface
✨ Beautiful gradient backgrounds and animations
šŸ“± Fully responsive design
šŸ” Advanced search functionality
šŸŽØ Tailwind CSS styling
šŸ“Š Mock flight data for demonstration

Getting Started

Prerequisites

Node.js (version 14 or higher)
npm or yarn

Installation

Clone the repository or navigate to the project directory
Install dependencies:
npm install
Start the development server:
npm start

Project Structure

src/
ā”œā”€ā”€ components/
│ ā”œā”€ā”€ GoogleFlightsClone.js # Main application component
│ ā”œā”€ā”€ SearchForm.js # Flight search form
│ ā”œā”€ā”€ FlightCard.js # Individual flight display
│ └── LoadingComponent.js # Loading states
ā”œā”€ā”€ data/
│ └── mockData.js # Mock flight and airport data
ā”œā”€ā”€ App.js # Root component
ā”œā”€ā”€ index.js # Application entry point
└── index.css # Global styles and Tailwind imports

Technologies Used

React 18 - Modern React with hooks
Tailwind CSS - Utility-first CSS framework
Lucide React - Beautiful icons
Create React App - Development environment

Customization

Adding Real API Integration

Replace the mock data in src/data/mockData.js with actual API calls:
// Example API integration
const searchFlights = async (searchData) => {
const response = await fetch('/api/flights/search', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify(searchData)
});
const data = await response.json();
return data.flights;
};

Styling

The application uses Tailwind CSS. You can customize the design by modifying the classes in the component files or extending the Tailwind configuration in tailwind.config.js.

Available Scripts

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

Contributing

Feel free to submit issues and enhancement requests!

License

This project is open source and available under the MIT License.
Like this project

Posted Sep 28, 2025

Developed a Google Flights clone using React and Tailwind CSS.