Welcome to the Cafen Coffee React Template! This template is designed to help you quickly set up a modern and responsive coffee shop website. Below, you'll find instructions on how to set up, customize, and understand the third-party libraries used in this project.
- Fully responsive design
- Modern UI/UX
- Easy customization
- Built with React.js
- Integration with popular third-party libraries
Ensure you have the following installed:
-
Clone the repository:
git clone https://github.com/injamulhaquesomrat/cafen-coffee.git cd cafen-coffee
-
Install dependencies:
npm install # or yarn install
-
Start the development server:
npm start # or yarn start
-
Open your browser and navigate to
http://localhost:5173
.
- Navigate to the
src/components
directory. - Edit the respective component files (e.g.,
Header.js
,Menu.js
,Footer.js
) to update text, images, or links.
- All styles are located in the
src/styles
directory. - Modify the
index.css
or component-specific styles to customize the design.
- Create a new component in the
src/pages
directory. - Add a route for the new page in
src/App.js
.
- Add your font files to the
public/fonts
directory. - Update the
index.css
file to include the font-face declarations:@font-face { font-family: 'CustomFont'; src: url('/fonts/CustomFont.woff2') format('woff2'), url('/fonts/CustomFont.woff') format('woff'); font-weight: normal; font-style: normal; }
- Use the custom font in your components:
body { font-family: 'CustomFont', sans-serif; }
- Open the
src/styles/theme.css
file. - Modify the CSS variables to update the theme colors:
:root { --primary-color: #6b4e16; --secondary-color: #f4e1d2; --accent-color: #d4a373; }
This project leverages several third-party libraries to enhance functionality and streamline development:
-
React Router
- Used for handling routing in the application.
- Enables navigation between different pages without reloading the browser.
- Documentation: React Router
-
Splide.js
- A lightweight, flexible slider/carousel library.
- Used for creating responsive and touch-friendly sliders.
- Documentation: Splide.js
-
React Helmet
- A library for managing the document head.
- Allows you to dynamically set meta tags, titles, and other head elements.
- Documentation: React Helmet
-
React Icons
- Provides a collection of popular icons as React components.
- Makes it easy to integrate icons into your application.
- Documentation: React Icons
-
Yet Another React Lightbox
- A modern and customizable lightbox library for React.
- Used for displaying images or galleries in an overlay.
- Documentation: Yet Another React Lightbox
-
Build the project:
npm run build # or yarn build
-
Deploy the
build
folder to your hosting provider (e.g., Netlify, Vercel).
Check out the live demo of the Cafen Coffee React Template: Live Demo
If you encounter any issues or have questions, feel free to open an issue on the GitHub repository.
Thank you for using the Cafen Coffee React Template!