Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- assets/css/styles.css +191 -0
- assets/js/script.js +34 -0
- file:/tmp/anycoder_media/image_20250824_225115_bcfb9188_image_to_image_result.jpg +1 -0
- index.html +103 -19
assets/css/styles.css
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
* {
|
| 2 |
+
margin: 0;
|
| 3 |
+
padding: 0;
|
| 4 |
+
box-sizing: border-box;
|
| 5 |
+
}
|
| 6 |
+
|
| 7 |
+
body {
|
| 8 |
+
font-family: 'Raleway', sans-serif;
|
| 9 |
+
line-height: 1.6;
|
| 10 |
+
color: #333;
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
+
.container {
|
| 14 |
+
width: 85%;
|
| 15 |
+
max-width: 1100px;
|
| 16 |
+
margin: 0 auto;
|
| 17 |
+
padding: 0 20px;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
h1, h2, h3 {
|
| 21 |
+
font-family: 'Playfair Display', serif;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
h2 {
|
| 25 |
+
font-size: 2.5rem;
|
| 26 |
+
margin-bottom: 20px;
|
| 27 |
+
text-align: center;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
header {
|
| 31 |
+
background: #1a1a1a;
|
| 32 |
+
color: #fff;
|
| 33 |
+
padding: 1rem 0;
|
| 34 |
+
position: fixed;
|
| 35 |
+
width: 100%;
|
| 36 |
+
top: 0;
|
| 37 |
+
left: 0;
|
| 38 |
+
z-index: 100;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
header .container {
|
| 42 |
+
display: flex;
|
| 43 |
+
justify-content: space-between;
|
| 44 |
+
align-items: center;
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
.logo {
|
| 48 |
+
font-family: 'Playfair Display', serif;
|
| 49 |
+
font-size: 1.8rem;
|
| 50 |
+
color: #d4a574;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
nav ul {
|
| 54 |
+
display: flex;
|
| 55 |
+
list-style: none;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
nav ul li a {
|
| 59 |
+
color: #fff;
|
| 60 |
+
text-decoration: none;
|
| 61 |
+
padding: 0.5rem 1rem;
|
| 62 |
+
transition: color 0.3s ease;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
nav ul li a:hover {
|
| 66 |
+
color: #d4a574;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
.hero {
|
| 70 |
+
background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('https://images.unsplash.com/photo-1554118811-1e0d582dbf1e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
|
| 71 |
+
height: 100vh;
|
| 72 |
+
color: #fff;
|
| 73 |
+
display: flex;
|
| 74 |
+
flex-direction: column;
|
| 75 |
+
justify-content: center;
|
| 76 |
+
align-items: center;
|
| 77 |
+
text-align: center;
|
| 78 |
+
padding: 0 20px;
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
.hero h1 {
|
| 82 |
+
font-size: 3.5rem;
|
| 83 |
+
margin-bottom: 1rem;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
.hero p {
|
| 87 |
+
font-size: 1.2rem;
|
| 88 |
+
margin-bottom: 2rem;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
.btn {
|
| 92 |
+
display: inline-block;
|
| 93 |
+
background: #d4a574;
|
| 94 |
+
color: #fff;
|
| 95 |
+
padding: 0.8rem 2rem;
|
| 96 |
+
text-decoration: none;
|
| 97 |
+
border-radius: 30px;
|
| 98 |
+
font-weight: 600;
|
| 99 |
+
transition: background 0.3s ease;
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
.btn:hover {
|
| 103 |
+
background: #b8935f;
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
section {
|
| 107 |
+
padding: 5rem 0;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
.menu {
|
| 111 |
+
background: #f9f9f9;
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
.menu-grid {
|
| 115 |
+
display: grid;
|
| 116 |
+
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
| 117 |
+
gap: 2rem;
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
.menu-item {
|
| 121 |
+
background: #fff;
|
| 122 |
+
padding: 1.5rem;
|
| 123 |
+
border-radius: 10px;
|
| 124 |
+
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
|
| 125 |
+
position: relative;
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
.menu-item h3 {
|
| 129 |
+
margin-bottom: 0.5rem;
|
| 130 |
+
color: #1a1a1a;
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
.price {
|
| 134 |
+
position: absolute;
|
| 135 |
+
top: 1.5rem;
|
| 136 |
+
right: 1.5rem;
|
| 137 |
+
background: #d4a574;
|
| 138 |
+
color: #fff;
|
| 139 |
+
padding: 0.3rem 0.8rem;
|
| 140 |
+
border-radius: 20px;
|
| 141 |
+
font-weight: 600;
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
.about {
|
| 145 |
+
text-align: center;
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
.about p {
|
| 149 |
+
max-width: 800px;
|
| 150 |
+
margin: 0 auto 1.5rem;
|
| 151 |
+
font-size: 1.1rem;
|
| 152 |
+
}
|
| 153 |
+
|
| 154 |
+
.contact {
|
| 155 |
+
background: #1a1a1a;
|
| 156 |
+
color: #fff;
|
| 157 |
+
}
|
| 158 |
+
|
| 159 |
+
.contact h2 {
|
| 160 |
+
color: #fff;
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
+
.contact-info {
|
| 164 |
+
text-align: center;
|
| 165 |
+
line-height: 2;
|
| 166 |
+
}
|
| 167 |
+
|
| 168 |
+
footer {
|
| 169 |
+
background: #0a0a0a;
|
| 170 |
+
color: #fff;
|
| 171 |
+
text-align: center;
|
| 172 |
+
padding: 1.5rem 0;
|
| 173 |
+
}
|
| 174 |
+
|
| 175 |
+
@media (max-width: 768px) {
|
| 176 |
+
header .container {
|
| 177 |
+
flex-direction: column;
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
+
nav ul {
|
| 181 |
+
margin-top: 1rem;
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
.hero h1 {
|
| 185 |
+
font-size: 2.5rem;
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
+
h2 {
|
| 189 |
+
font-size: 2rem;
|
| 190 |
+
}
|
| 191 |
+
}
|
assets/js/script.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Smooth scrolling for navigation links
|
| 2 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 3 |
+
anchor.addEventListener('click', function (e) {
|
| 4 |
+
e.preventDefault();
|
| 5 |
+
|
| 6 |
+
document.querySelector(this.getAttribute('href')).scrollIntoView({
|
| 7 |
+
behavior: 'smooth'
|
| 8 |
+
});
|
| 9 |
+
});
|
| 10 |
+
});
|
| 11 |
+
|
| 12 |
+
// Highlight nav link on scroll
|
| 13 |
+
window.addEventListener('scroll', () => {
|
| 14 |
+
const sections = document.querySelectorAll('section');
|
| 15 |
+
const navLinks = document.querySelectorAll('nav ul li a');
|
| 16 |
+
|
| 17 |
+
let current = '';
|
| 18 |
+
|
| 19 |
+
sections.forEach(section => {
|
| 20 |
+
const sectionTop = section.offsetTop;
|
| 21 |
+
const sectionHeight = section.clientHeight;
|
| 22 |
+
|
| 23 |
+
if (scrollY >= (sectionTop - 200)) {
|
| 24 |
+
current = section.getAttribute('id');
|
| 25 |
+
}
|
| 26 |
+
});
|
| 27 |
+
|
| 28 |
+
navLinks.forEach(link => {
|
| 29 |
+
link.classList.remove('active');
|
| 30 |
+
if (link.getAttribute('href').substring(1) === current) {
|
| 31 |
+
link.classList.add('active');
|
| 32 |
+
}
|
| 33 |
+
});
|
| 34 |
+
});
|
file:/tmp/anycoder_media/image_20250824_225115_bcfb9188_image_to_image_result.jpg
ADDED
|
index.html
CHANGED
|
@@ -1,19 +1,103 @@
|
|
| 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="Cozy Coffee House - Premium coffee and pastries in a welcoming atmosphere">
|
| 7 |
+
<title>Cozy Coffee House</title>
|
| 8 |
+
<link rel="stylesheet" href="assets/css/styles.css">
|
| 9 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 10 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 11 |
+
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Raleway:wght@400;600&display=swap" rel="stylesheet">
|
| 12 |
+
</head>
|
| 13 |
+
<body>
|
| 14 |
+
<header>
|
| 15 |
+
<div class="container">
|
| 16 |
+
<div class="logo">Cozy Coffee</div>
|
| 17 |
+
<nav>
|
| 18 |
+
<ul>
|
| 19 |
+
<li><a href="#home">Home</a></li>
|
| 20 |
+
<li><a href="#menu">Menu</a></li>
|
| 21 |
+
<li><a href="#about">About</a></li>
|
| 22 |
+
<li><a href="#contact">Contact</a></li>
|
| 23 |
+
</ul>
|
| 24 |
+
</nav>
|
| 25 |
+
</div>
|
| 26 |
+
</header>
|
| 27 |
+
|
| 28 |
+
<section id="home" class="hero">
|
| 29 |
+
<div class="container">
|
| 30 |
+
<h1>Welcome to Cozy Coffee</h1>
|
| 31 |
+
<p>Where every cup tells a story</p>
|
| 32 |
+
<img src="https://huggingface.co/datasets/akhaliq/anycoder-media/resolve/main/image/20250824_225333_386f5b9a_image_to_image_result.jpg" alt="full cup of coffee" style="max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0;" loading="lazy" />
|
| 33 |
+
<a href="#menu" class="btn">Explore Our Menu</a>
|
| 34 |
+
</div>
|
| 35 |
+
</section>
|
| 36 |
+
|
| 37 |
+
<section id="menu" class="menu">
|
| 38 |
+
<div class="container">
|
| 39 |
+
<h2>Our Menu</h2>
|
| 40 |
+
<div class="menu-grid">
|
| 41 |
+
<div class="menu-item">
|
| 42 |
+
<h3>Espresso</h3>
|
| 43 |
+
<p>Rich and bold shot of pure coffee</p>
|
| 44 |
+
<span class="price">$2.50</span>
|
| 45 |
+
</div>
|
| 46 |
+
<div class="menu-item">
|
| 47 |
+
<h3>Cappuccino</h3>
|
| 48 |
+
<p>Espresso with steamed milk and foam</p>
|
| 49 |
+
<span class="price">$3.75</span>
|
| 50 |
+
</div>
|
| 51 |
+
<div class="menu-item">
|
| 52 |
+
<h3>Latte</h3>
|
| 53 |
+
<p>Smooth espresso with steamed milk</p>
|
| 54 |
+
<span class="price">$4.25</span>
|
| 55 |
+
</div>
|
| 56 |
+
<div class="menu-item">
|
| 57 |
+
<h3>Cold Brew</h3>
|
| 58 |
+
<p>Smooth and refreshing cold coffee</p>
|
| 59 |
+
<span class="price">$4.00</span>
|
| 60 |
+
</div>
|
| 61 |
+
<div class="menu-item">
|
| 62 |
+
<h3>Mocha</h3>
|
| 63 |
+
<p>Espresso with chocolate and milk</p>
|
| 64 |
+
<span class="price">$4.50</span>
|
| 65 |
+
</div>
|
| 66 |
+
<div class="menu-item">
|
| 67 |
+
<h3>Americano</h3>
|
| 68 |
+
<p>Espresso with hot water</p>
|
| 69 |
+
<span class="price">$3.00</span>
|
| 70 |
+
</div>
|
| 71 |
+
</div>
|
| 72 |
+
</div>
|
| 73 |
+
</section>
|
| 74 |
+
|
| 75 |
+
<section id="about" class="about">
|
| 76 |
+
<div class="container">
|
| 77 |
+
<h2>About Us</h2>
|
| 78 |
+
<p>Founded in 2010, Cozy Coffee House has been serving the community with premium coffee and delicious pastries. We source our beans directly from sustainable farms and roast them in-house to ensure the freshest flavors in every cup.</p>
|
| 79 |
+
<p>Visit us for your morning pick-me-up, a business meeting, or simply to relax in our warm and welcoming atmosphere.</p>
|
| 80 |
+
</div>
|
| 81 |
+
</section>
|
| 82 |
+
|
| 83 |
+
<section id="contact" class="contact">
|
| 84 |
+
<div class="container">
|
| 85 |
+
<h2>Visit Us</h2>
|
| 86 |
+
<div class="contact-info">
|
| 87 |
+
<p><strong>Address:</strong> 123 Coffee Street, Bean City</p>
|
| 88 |
+
<p><strong>Hours:</strong> Mon-Fri 6am-8pm, Sat-Sun 7am-9pm</p>
|
| 89 |
+
<p><strong>Phone:</strong> (555) 123-4567</p>
|
| 90 |
+
<p><strong>Email:</strong> hello@cozycoffee.com</p>
|
| 91 |
+
</div>
|
| 92 |
+
</div>
|
| 93 |
+
</section>
|
| 94 |
+
|
| 95 |
+
<footer>
|
| 96 |
+
<div class="container">
|
| 97 |
+
<p>© 2023 Cozy Coffee House. All rights reserved.</p>
|
| 98 |
+
</div>
|
| 99 |
+
</footer>
|
| 100 |
+
|
| 101 |
+
<script src="assets/js/script.js"></script>
|
| 102 |
+
</body>
|
| 103 |
+
</html>
|