A modern React application built with Tailwind CSS, featuring a beautiful and responsive design with component-based architecture.
- β‘ Vite - Lightning fast build tool and development server
- βοΈ React 18 - Latest React with hooks and modern features
- π¨ Tailwind CSS - Utility-first CSS framework for rapid UI development
- π± Responsive Design - Mobile-first approach with beautiful UI components
- π§ ESLint - Code linting and formatting
- π― TypeScript Ready - TypeScript support included
- ποΈ Component Architecture - Modular and reusable components
- π¨ Custom Design System - Pre-configured color palette and components
Before you begin, ensure you have the following installed:
- Node.js (version 16.0 or higher)
- npm (version 7.0 or higher) or yarn (version 1.22 or higher)
You can check your versions by running:
node --version
npm --versionFollow these step-by-step instructions to set up the project:
If you have the project files, navigate to the project directory:
cd salar-react-appInstall all required dependencies using npm:
npm installOr if you prefer yarn:
yarn installRun the development server:
npm run devOr with yarn:
yarn devThe application will be available at http://localhost:3000
Open your web browser and navigate to http://localhost:3000 to see the application running.
salar-react-app/
βββ public/ # Static assets
βββ src/
β βββ components/ # React components
β β βββ Header.jsx # Navigation header
β β βββ Hero.jsx # Hero section
β β βββ Features.jsx # Features showcase
β β βββ Footer.jsx # Footer component
β βββ App.jsx # Main App component
β βββ main.jsx # Application entry point
β βββ index.css # Global styles and Tailwind imports
βββ index.html # HTML template
βββ package.json # Dependencies and scripts
βββ tailwind.config.js # Tailwind CSS configuration
βββ postcss.config.js # PostCSS configuration
βββ vite.config.js # Vite configuration
βββ .eslintrc.cjs # ESLint configuration
βββ README.md # Project documentation
npm run dev- Start the development servernpm run build- Build the application for productionnpm run preview- Preview the production build locallynpm run lint- Run ESLint to check for code issues
- Responsive navigation with mobile menu
- Clean and modern design
- Smooth hover effects
- Interactive counter demonstration
- Call-to-action buttons
- Responsive typography
- Grid layout showcasing app features
- Icon-based feature cards
- Hover effects and animations
- Social media links
- Quick navigation
- Technology stack information
The project includes a custom Tailwind configuration with:
- Custom Color Palette: Primary blue color scheme
- Custom Fonts: Inter font family
- Component Classes: Pre-built button and card styles
- Responsive Design: Mobile-first approach
The project includes custom component classes in src/index.css:
.btn-primary- Primary button styling.btn-secondary- Secondary button styling.card- Card component styling
- Create a new file in the
src/components/directory - Import and use the component in
App.jsx - Style using Tailwind CSS classes
Edit the tailwind.config.js file to customize the color palette:
theme: {
extend: {
colors: {
primary: {
// Your custom colors
}
}
}
}- Create new components for your pages
- Add routing (consider using React Router)
- Update the navigation in the Header component
To create a production build:
npm run buildThe built files will be in the dist/ directory. You can preview the production build locally with:
npm run previewThis application supports all modern browsers:
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Port already in use:
# Kill the process using port 3000
npx kill-port 3000
# Or use a different port
npm run dev -- --port 3001Dependencies not installing:
# Clear npm cache
npm cache clean --force
# Delete node_modules and package-lock.json
rm -rf node_modules package-lock.json
# Reinstall
npm installBuild errors:
# Check for linting errors
npm run lint
# Fix auto-fixable issues
npm run lint -- --fixIf you encounter any issues or have questions:
- Check the troubleshooting section above
- Search existing issues in the repository
- Create a new issue with detailed information
Once you have the application running:
- Explore the different components in the
src/components/directory - Try modifying the Hero component's counter functionality
- Customize the color scheme in
tailwind.config.js - Add your own components and features
Happy coding! π