A modern, responsive landing page for SweetBite Bakery built with React and Vite. Features a beautiful image slider, product categories, and dark mode support.
Visit the live application: https://thalesmar.github.io/SweetBite-Bakery-Fresh-Cakes-Pastries-Sandwiches/
- 🎨 Modern UI Design - Clean and professional bakery-themed interface
- 📱 Fully Responsive - Optimized for desktop, tablet, and mobile devices
- 🖼️ Image Slider - Interactive hero section with multiple cake images and dot navigation
- 🌓 Dark Mode - Toggle between light and dark themes
- 🍪 Product Categories - Showcase different bakery items (cakes, bread, cookies, sandwiches)
- ⚡ Fast Performance - Built with Vite for lightning-fast development and builds
- 🎯 Smooth Animations - CSS transitions and hover effects throughout
- Node.js (v14 or higher)
- npm or yarn
- Clone the repository
git clone <repository-url>
cd sweetbite-landing- Install dependencies
npm install- Start the development server
npm run dev- Open your browser and navigate to
http://localhost:5173
npm run buildThe optimized production files will be in the dist folder.
- React - UI library
- Vite - Build tool and dev server
- CSS3 - Styling with custom properties
- JavaScript (ES6+) - Modern JavaScript features
sweetbite-landing/
├── src/
│ ├── assets/ # Images and static files
│ ├── Components/ # React components
│ │ ├── Navbar.jsx
│ │ ├── Hero.jsx
│ │ ├── About.jsx
│ │ ├── ProductCategories.jsx
│ │ ├── ProductCard.jsx
│ │ └── Footer.jsx
│ ├── App.jsx # Main app component
│ ├── App.css # Global styles
│ ├── index.css # Root styles and CSS variables
│ └── main.jsx # Entry point
├── index.html # HTML template
├── package.json # Dependencies and scripts
└── vite.config.js # Vite configuration
- Interactive image slider with 6 cake images
- Dot navigation for slide control
- Call-to-action buttons
- Fully responsive layout
- Sticky navigation with scroll effect
- Dark mode toggle
- Smooth scrolling to sections
- Product category showcase
- Grid layout with icons
- Hover effects
- Featured product display
- Image and description layout
The hero section includes a custom-built image slider with:
- Multiple cake images
- Click-to-navigate dots
- Smooth transitions
- Responsive design
Toggle between light and dark themes with persistent storage using localStorage.
Breakpoints:
- Desktop: 1024px+
- Tablet: 768px - 1023px
- Mobile: < 768px
npm run dev- Start development servernpm run build- Build for productionnpm run preview- Preview production build locallynpm run lint- Run ESLint
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
Edit CSS variables in src/index.css:
:root {
--primary-color: #d78c00;
--bg: #fff;
--font: #333;
--transition-speed: 0.3s;
}Replace images in src/assets/ folder with your own bakery images.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License.
Thales
- React team for the amazing library
- Vite team for the blazing-fast build tool
- All contributors and supporters
Made with ❤️ for SweetBite Bakery