IndoTravi is a fully responsive travel website built with React and styled using Tailwind CSS. It features reusable components, dynamic icons, and a sleek modern design to provide a seamless user experience.
This project was bootstrapped with Create React App.
- Responsive Design: Works flawlessly on desktops, tablets, and mobile devices.
- Tailwind CSS: Fast and efficient styling with a utility-first CSS framework.
- Reusable Components: Modular and maintainable code architecture.
- Dynamic Icons: Icons from Heroicons and React Icons for enhanced design.
- Interactive Footer: Newsletter subscription with validation and social media links.
Ensure you have the following installed:
- Node.js (v14 or later)
- npm (v6 or later)
-
Clone the repository:
git clone https://github.com/your-username/IndoTravi.git
-
Navigate to the project directory:
cd IndoTravi
-
Install dependencies:
npm install
-
Set up Tailwind CSS:
-
Install Tailwind CSS via npm:
npm install -D tailwindcss postcss autoprefixer
-
Generate the
tailwind.config.js
file:npx tailwindcss init
-
Configure the
tailwind.config.js
file to scan your project for classes:module.exports = { content: ['./src/**/*.{js,jsx,ts,tsx}', './public/index.html'], theme: { extend: {}, }, plugins: [], };
-
Add Tailwind's base, components, and utilities styles to the
src/index.css
file:@tailwind base; @tailwind components; @tailwind utilities;
-
-
Install Heroicons:
npm install @heroicons/react
-
Install React Icons:
npm install react-icons
-
Start the development server:
npm start
Open http://localhost:3000 in your browser to view the application.
In the project directory, you can run:
Runs the app in development mode.Open http://localhost:3000 to view it in your browser.
Launches the test runner in the interactive watch mode.See more about running tests.
Builds the app for production to the build
folder.It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified, and filenames include hashes.Your app is ready to be deployed!
See more about deployment.
Note: This is a one-way operation. Once you eject
, you cannot go back!
This command will remove the single build dependency from your project and copy all configuration files into your project. Use this if you need full control over the build tools.
IndoTravi/
├── public/
│ ├── index.html
│ └── favicon.ico
├── src/
│ ├── assets/ # Static assets (images, icons, etc.)
│ ├── components/ # Reusable React components
│ ├── pages/ # Page-level components
│ ├── utils/ # Utility functions and constants
│ ├── App.js # Main App component
│ └── index.js # Entry point
├── package.json
└── README.md
- React: Frontend framework
- Tailwind CSS: Utility-first CSS framework
- Heroicons: Free, open-source SVG icon set
- React Icons: Additional icons for enhanced UI
- Learn more about React here.
- Learn more about Tailwind CSS here.
- Learn about the Create React App here.
This project is licensed under the MIT License. Feel free to use and modify it as per your needs.