Cadbury Homepage
This project is a Cadbury-themed homepage, showcasing the brand’s essence with a responsive, visually rich interface. It features modern web design elements, multimedia integration, and a focus on user experience.
Table of Contents
Features
General
- Responsive Design: Adapts seamlessly to desktop, tablet, and mobile screen sizes.
- Modern Aesthetic: Uses gradients, animations, and high-quality imagery.
- Brand Integration: Fully themed around Cadbury’s branding and promotional campaigns.
Key Sections
- Header
- Background video for a dynamic first impression.
- Logo and a navigation bar with dropdown menus for
About, Explore, and Products.
- Search functionality and a mobile-responsive hamburger menu.
- Hero Section
- Highlights Cadbury’s “Secret Santa” campaign with a bold heading, descriptive text, and a prominent call-to-action button.
- New Creations
- Showcases new Cadbury products with scrollable cards featuring hover animations.
- Promotions
- Engages users with visually appealing promotional banners for seasonal events like Christmas gifts and competitions.
- Cadbury Brands
- Interactive cards linking to individual brand pages like Dairy Milk, Twirl, and Bournville.
- Social Media Stories
- Displays Instagram-like image cards with hover effects.
- Footer
- Social media icons, links to terms and policies, and a Mondelez International logo.
Technologies Used
Frontend
- HTML5: Semantic structure, including
<header>, <nav>, <section>, and <footer> tags.
- CSS3:
- Flexbox for layout and alignment.
- Media queries for responsiveness.
- Custom animations (e.g., hover effects, sliding transitions).
External Libraries
- Font Awesome: For social media icons and dropdown arrows.
- Google Fonts:
Lora and Open Sans fonts for a clean, modern look.
Code Overview
HTML Highlights
- Header:
- Integrated a
<video> element as a background.
- Dropdown menus with a hover-triggered
dropdown-content div.
- Responsive logo and mobile navigation.
- Main Content:
- Card-based layout for product listings and brand highlights.
- Embedded promotional videos and animated banners.
- Footer:
- Divided into a
footer-top (logo and social links) and footer-bottom (legal links and copyright).
CSS Highlights
- Global Styles:
- Box model normalization with
* { margin: 0; padding: 0; box-sizing: border-box; }.
body styling with custom fonts and overflow management.
- Hero Section:
- Large gradient-styled text for headings.
- Button hover effects with transitions.
- Cards:
scroll-snap-type for horizontal scrolling in product listings.
- Hover effects to scale cards and enhance visual feedback.
- Media Queries:
- Breakpoints for devices at
1024px, 768px, and 480px.
- Adjustments for font sizes, padding, and layout reflows on smaller screens.
- Custom Scrollbar:
- Styled horizontal scrollbar for the cards section.
- Animations:
@keyframes for sliding cards.
- Hover-triggered transformations for buttons, cards, and images.
Live Demo
Explore the live demo here: Cadbury Homepage
Setup Instructions
- Clone the repository:
```bash
git clone
cd cadbury-homepage