Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- index.html +61 -19
- script.js +9 -0
- styles.css +83 -0
index.html
CHANGED
|
@@ -1,19 +1,61 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
</
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<meta name="description" content="Welcome to Bean & Brew Coffee Shop">
|
| 7 |
+
<title>Bean & Brew Coffee Shop</title>
|
| 8 |
+
<link rel="stylesheet" href="styles.css">
|
| 9 |
+
</head>
|
| 10 |
+
<body>
|
| 11 |
+
<header>
|
| 12 |
+
<div class="logo">Bean & Brew</div>
|
| 13 |
+
<nav>
|
| 14 |
+
<ul>
|
| 15 |
+
<li><a href="#menu">Menu</a></li>
|
| 16 |
+
<li><a href="#about">About</a></li>
|
| 17 |
+
<li><a href="#contact">Contact</a></li>
|
| 18 |
+
</ul>
|
| 19 |
+
</nav>
|
| 20 |
+
</header>
|
| 21 |
+
<main>
|
| 22 |
+
<section class="hero">
|
| 23 |
+
<h1>Artisan Coffee, Crafted Daily</h1>
|
| 24 |
+
<p>Experience the perfect blend of flavor and atmosphere</p>
|
| 25 |
+
<div class="video-container">
|
| 26 |
+
<video controls autoplay muted loop playsinline style="max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; display: block;" onloadstart="this.style.backgroundColor='#f0f0f0'" onerror="this.style.display='none'; console.error('Video failed to load')"><source src="https://huggingface.co/datasets/akhaliq/anycoder-media/resolve/main/video/20250824_172218_a5e3bd97_text_to_video_result.mp4" type="video/mp4" /><p style="text-align: center; color: #666;">Your browser does not support the video tag.</p></video>
|
| 27 |
+
</div>
|
| 28 |
+
</section>
|
| 29 |
+
<section id="menu" class="menu">
|
| 30 |
+
<h2>Our Coffee</h2>
|
| 31 |
+
<div class="menu-items">
|
| 32 |
+
<div class="menu-item">
|
| 33 |
+
<h3>Espresso</h3>
|
| 34 |
+
<p>Rich and bold</p>
|
| 35 |
+
</div>
|
| 36 |
+
<div class="menu-item">
|
| 37 |
+
<h3>Cappuccino</h3>
|
| 38 |
+
<p>Creamy perfection</p>
|
| 39 |
+
</div>
|
| 40 |
+
<div class="menu-item">
|
| 41 |
+
<h3>Cold Brew</h3>
|
| 42 |
+
<p>Smooth and refreshing</p>
|
| 43 |
+
</div>
|
| 44 |
+
</div>
|
| 45 |
+
</section>
|
| 46 |
+
<section id="about" class="about">
|
| 47 |
+
<h2>About Us</h2>
|
| 48 |
+
<p>Founded in 2023, Bean & Brew is dedicated to bringing you the finest coffee experience using locally roasted beans and traditional brewing methods.</p>
|
| 49 |
+
</section>
|
| 50 |
+
<section id="contact" class="contact">
|
| 51 |
+
<h2>Visit Us</h2>
|
| 52 |
+
<p>123 Coffee Lane, Brew City</p>
|
| 53 |
+
<p>Open Daily: 7am - 8pm</p>
|
| 54 |
+
</section>
|
| 55 |
+
</main>
|
| 56 |
+
<footer>
|
| 57 |
+
<p>© 2023 Bean & Brew. All rights reserved.</p>
|
| 58 |
+
</footer>
|
| 59 |
+
<script src="script.js"></script>
|
| 60 |
+
</body>
|
| 61 |
+
</html>
|
script.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
document.querySelectorAll('nav ul li a').forEach(anchor => {
|
| 2 |
+
anchor.addEventListener('click', function (e) {
|
| 3 |
+
e.preventDefault();
|
| 4 |
+
const targetId = this.getAttribute('href');
|
| 5 |
+
document.querySelector(targetId).scrollIntoView({
|
| 6 |
+
behavior: 'smooth'
|
| 7 |
+
});
|
| 8 |
+
});
|
| 9 |
+
});
|
styles.css
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
* {
|
| 2 |
+
margin: 0;
|
| 3 |
+
padding: 0;
|
| 4 |
+
box-sizing: border-box;
|
| 5 |
+
}
|
| 6 |
+
body {
|
| 7 |
+
font-family: Arial, sans-serif;
|
| 8 |
+
line-height: 1.6;
|
| 9 |
+
color: #333;
|
| 10 |
+
}
|
| 11 |
+
header {
|
| 12 |
+
display: flex;
|
| 13 |
+
justify-content: space-between;
|
| 14 |
+
align-items: center;
|
| 15 |
+
padding: 1rem 5%;
|
| 16 |
+
background-color: #4a2c2a;
|
| 17 |
+
color: white;
|
| 18 |
+
}
|
| 19 |
+
.logo {
|
| 20 |
+
font-size: 1.5rem;
|
| 21 |
+
font-weight: bold;
|
| 22 |
+
}
|
| 23 |
+
nav ul {
|
| 24 |
+
display: flex;
|
| 25 |
+
list-style: none;
|
| 26 |
+
}
|
| 27 |
+
nav ul li {
|
| 28 |
+
margin-left: 1.5rem;
|
| 29 |
+
}
|
| 30 |
+
nav ul li a {
|
| 31 |
+
color: white;
|
| 32 |
+
text-decoration: none;
|
| 33 |
+
}
|
| 34 |
+
.hero {
|
| 35 |
+
background-color: #a67c52;
|
| 36 |
+
color: white;
|
| 37 |
+
text-align: center;
|
| 38 |
+
padding: 4rem 1rem;
|
| 39 |
+
}
|
| 40 |
+
.hero h1 {
|
| 41 |
+
font-size: 2.5rem;
|
| 42 |
+
margin-bottom: 1rem;
|
| 43 |
+
}
|
| 44 |
+
section {
|
| 45 |
+
padding: 3rem 5%;
|
| 46 |
+
}
|
| 47 |
+
.menu-items {
|
| 48 |
+
display: flex;
|
| 49 |
+
flex-wrap: wrap;
|
| 50 |
+
gap: 2rem;
|
| 51 |
+
margin-top: 1.5rem;
|
| 52 |
+
}
|
| 53 |
+
.menu-item {
|
| 54 |
+
flex: 1 1 200px;
|
| 55 |
+
background-color: #f5f5f5;
|
| 56 |
+
padding: 1.5rem;
|
| 57 |
+
border-radius: 5px;
|
| 58 |
+
text-align: center;
|
| 59 |
+
}
|
| 60 |
+
.about, .contact {
|
| 61 |
+
background-color: #f0f0f0;
|
| 62 |
+
}
|
| 63 |
+
h2 {
|
| 64 |
+
margin-bottom: 1rem;
|
| 65 |
+
color: #4a2c2a;
|
| 66 |
+
}
|
| 67 |
+
footer {
|
| 68 |
+
text-align: center;
|
| 69 |
+
padding: 1rem;
|
| 70 |
+
background-color: #333;
|
| 71 |
+
color: white;
|
| 72 |
+
}
|
| 73 |
+
@media (max-width: 768px) {
|
| 74 |
+
header {
|
| 75 |
+
flex-direction: column;
|
| 76 |
+
}
|
| 77 |
+
nav ul {
|
| 78 |
+
margin-top: 1rem;
|
| 79 |
+
}
|
| 80 |
+
.hero h1 {
|
| 81 |
+
font-size: 2rem;
|
| 82 |
+
}
|
| 83 |
+
}
|