Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Aroma/images/coffee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Aroma/images/cup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Aroma/images/special.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Aroma/images/tea.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 47 additions & 21 deletions Aroma/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,57 @@
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
</head>
<body>
<header>
<nav>
<div class="logo">
<img src="logo-placeholder.png" alt="Aroma Logo">
</div>
<ul class="nav-links">
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#menu">Menu</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
<!-- Dark Mode Toggle Icon (Sun/Moon) -->
<div class="dark-mode-toggle" id="dark-mode-toggle">
<i class="fas fa-sun" id="dark-mode-icon"></i> <!-- Sun Icon by default -->
</div>
</nav>


<nav class="navbar">
<div class="logo">Aroma </div>
<ul class="nav-links">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Menu</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>

<!-- Hero Section -->
<header class="hero">
<div class="content">
<h1 class="fade-in">The Fragrance of Happiness in a Cup</h1>
<p class="fade-in">Where Every Sip Tells a Story</p>
<button class="btn glow-on-hover" id="explore-btn">Discover More</button>
</div>
<div class="steam-container">
<div class="steam steam-1"></div>
<div class="steam steam-2"></div>
<div class="steam steam-3"></div>
<div class="steam steam-4"></div>
</div>
<div class="cup-container">
<img src="images/cup.png" alt="Aroma Pragna Cup" class="cup">
</div>


</header>

<section id="home" class="hero">
<div class="hero-text">
<h1>Welcome to Aroma</h1>
<h5> The Fragrance of Happiness in a Cup.Where Every Sip Tells a Story</h5>
<!-- Featured Section -->
<section class="featured">
<h2>Our Special Brews</h2>
<div class="cards">
<div class="card">
<img src="images/coffee.png" alt="Rich Coffee">
<h3>Rich Coffee</h3>
</div>
<div class="card">
<img src="images/tea.png" alt="Herbal Tea">
<h3>Herbal Tea</h3>
</div>
<div class="card">
<img src="images/special.png" alt="Signature Blends">
<h3>Signature Blends</h3>
</div>
</div>
</section>

<footer>
<p class="copyright">Aroma - Created By Seetha Pragna❤️ | ©
<script>
Expand Down
57 changes: 41 additions & 16 deletions Aroma/script.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,30 @@
document.addEventListener("DOMContentLoaded", () => {
const navLinks = document.querySelectorAll(".nav-links a");
const darkModeToggle = document.getElementById("dark-mode-toggle");
const darkModeIcon = document.getElementById("dark-mode-icon");

// Smooth scrolling
navLinks.forEach(link => {
link.addEventListener("click", (event) => {
event.preventDefault();
const targetSection = document.querySelector(link.getAttribute("href"));

if (targetSection) {
targetSection.scrollIntoView({
behavior: "smooth"
});
}
});
// Scroll effect when clicking "Discover More"
document.getElementById("explore-btn").addEventListener("click", () => {
document.querySelector(".featured").scrollIntoView({ behavior: "smooth" });
});
});

document.getElementById("menu-toggle").addEventListener("click", function () {
document.getElementById("nav-links").classList.toggle("show");
});

const navLinks = document.querySelectorAll(".nav-links a");
const darkModeToggle = document.getElementById("dark-mode-toggle");
const darkModeIcon = document.getElementById("dark-mode-icon");

// Smooth scrolling
navLinks.forEach(link => {
link.addEventListener("click", (event) => {
event.preventDefault();
const targetSection = document.querySelector(link.getAttribute("href"));

if (targetSection) {
targetSection.scrollIntoView({
behavior: "smooth"
});
}

});

// Dark mode toggle
Expand All @@ -32,3 +42,18 @@ document.addEventListener("DOMContentLoaded", () => {
}
});
});

// Dark mode toggle
darkModeToggle.addEventListener("click", () => {
document.body.classList.toggle("dark-mode");
document.querySelector("nav").classList.toggle("dark-mode");
document.querySelector(".hero").classList.toggle("dark-mode");
document.querySelector("footer").classList.toggle("dark-mode");

// Toggle the dark mode icon (sun/moon)
if (document.body.classList.contains("dark-mode")) {
darkModeIcon.src = "moon-icon.png"; // Replace with moon icon for dark mode
} else {
darkModeIcon.src = "sun-icon.png"; // Replace with sun icon for light mode
}
});
Loading