akhaliq HF Staff commited on
Commit
687017a
·
verified ·
1 Parent(s): c7c98b1

Upload folder using huggingface_hub

Browse files
Files changed (3) hide show
  1. assets/css/styles.css +238 -0
  2. assets/js/script.js +42 -0
  3. index.html +103 -19
assets/css/styles.css ADDED
@@ -0,0 +1,238 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ * {
2
+ margin: 0;
3
+ padding: 0;
4
+ box-sizing: border-box;
5
+ }
6
+
7
+ body {
8
+ font-family: 'Poppins', sans-serif;
9
+ color: #333;
10
+ line-height: 1.6;
11
+ }
12
+
13
+ .container {
14
+ width: 100%;
15
+ max-width: 1200px;
16
+ margin: 0 auto;
17
+ padding: 0 20px;
18
+ }
19
+
20
+ header {
21
+ background: #3e2723;
22
+ color: white;
23
+ padding: 1rem 0;
24
+ position: fixed;
25
+ width: 100%;
26
+ top: 0;
27
+ z-index: 100;
28
+ }
29
+
30
+ header .container {
31
+ display: flex;
32
+ justify-content: space-between;
33
+ align-items: center;
34
+ }
35
+
36
+ .logo {
37
+ display: flex;
38
+ flex-direction: column;
39
+ align-items: flex-start;
40
+ }
41
+
42
+ .logo h1 {
43
+ font-size: 1.8rem;
44
+ font-weight: 700;
45
+ }
46
+
47
+ .logo span {
48
+ font-size: 1rem;
49
+ font-weight: 300;
50
+ margin-top: -5px;
51
+ }
52
+
53
+ nav ul {
54
+ display: flex;
55
+ list-style: none;
56
+ }
57
+
58
+ nav ul li {
59
+ margin-left: 25px;
60
+ }
61
+
62
+ nav ul li a {
63
+ color: white;
64
+ text-decoration: none;
65
+ font-weight: 400;
66
+ transition: color 0.3s;
67
+ }
68
+
69
+ nav ul li a:hover {
70
+ color: #d7ccc8;
71
+ }
72
+
73
+ #home {
74
+ background: linear-gradient(rgba(62, 39, 35, 0.8), rgba(62, 39, 35, 0.8)), url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
75
+ background-size: cover;
76
+ background-position: center;
77
+ height: 100vh;
78
+ display: flex;
79
+ align-items: center;
80
+ justify-content: center;
81
+ text-align: center;
82
+ color: white;
83
+ }
84
+
85
+ .hero h2 {
86
+ font-size: 3rem;
87
+ margin-bottom: 1rem;
88
+ font-weight: 700;
89
+ }
90
+
91
+ .hero p {
92
+ font-size: 1.2rem;
93
+ margin-bottom: 2rem;
94
+ max-width: 600px;
95
+ margin-left: auto;
96
+ margin-right: auto;
97
+ }
98
+
99
+ button {
100
+ background: #6f4e37;
101
+ color: white;
102
+ border: none;
103
+ padding: 12px 30px;
104
+ font-size: 1rem;
105
+ cursor: pointer;
106
+ border-radius: 5px;
107
+ transition: background 0.3s;
108
+ }
109
+
110
+ button:hover {
111
+ background: #8b6b4e;
112
+ }
113
+
114
+ section {
115
+ padding: 80px 0;
116
+ }
117
+
118
+ h2 {
119
+ text-align: center;
120
+ font-size: 2.5rem;
121
+ margin-bottom: 3rem;
122
+ color: #3e2723;
123
+ }
124
+
125
+ .menu-items {
126
+ display: grid;
127
+ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
128
+ gap: 30px;
129
+ }
130
+
131
+ .menu-item {
132
+ background: #f5f5f5;
133
+ padding: 25px;
134
+ border-radius: 8px;
135
+ text-align: center;
136
+ transition: transform 0.3s;
137
+ }
138
+
139
+ .menu-item:hover {
140
+ transform: translateY(-10px);
141
+ }
142
+
143
+ .menu-item h3 {
144
+ font-size: 1.5rem;
145
+ margin-bottom: 10px;
146
+ color: #3e2723;
147
+ }
148
+
149
+ .menu-item p {
150
+ margin-bottom: 15px;
151
+ }
152
+
153
+ .menu-item span {
154
+ font-weight: 600;
155
+ font-size: 1.2rem;
156
+ color: #6f4e37;
157
+ }
158
+
159
+ #about {
160
+ background: #f9f9f9;
161
+ }
162
+
163
+ #about p {
164
+ text-align: center;
165
+ max-width: 800px;
166
+ margin: 0 auto;
167
+ font-size: 1.1rem;
168
+ }
169
+
170
+ .contact-info {
171
+ display: flex;
172
+ justify-content: space-around;
173
+ flex-wrap: wrap;
174
+ gap: 40px;
175
+ }
176
+
177
+ .contact-info div {
178
+ text-align: center;
179
+ min-width: 250px;
180
+ }
181
+
182
+ .contact-info h3 {
183
+ font-size: 1.5rem;
184
+ margin-bottom: 15px;
185
+ color: #3e2723;
186
+ }
187
+
188
+ footer {
189
+ background: #3e2723;
190
+ color: white;
191
+ text-align: center;
192
+ padding: 20px 0;
193
+ }
194
+
195
+ @media (max-width: 768px) {
196
+ header .container {
197
+ flex-direction: column;
198
+ }
199
+
200
+ nav ul {
201
+ margin-top: 15px;
202
+ }
203
+
204
+ nav ul li {
205
+ margin: 0 10px;
206
+ }
207
+
208
+ .hero h2 {
209
+ font-size: 2rem;
210
+ }
211
+
212
+ section {
213
+ padding: 60px 0;
214
+ }
215
+
216
+ h2 {
217
+ font-size: 2rem;
218
+ }
219
+ }
220
+
221
+ .notification {
222
+ position: fixed;
223
+ bottom: 20px;
224
+ right: 20px;
225
+ background: #6f4e37;
226
+ color: white;
227
+ padding: 15px 25px;
228
+ border-radius: 5px;
229
+ box-shadow: 0 5px 15px rgba(0,0,0,0.2);
230
+ transform: translateY(100px);
231
+ opacity: 0;
232
+ transition: all 0.3s ease;
233
+ }
234
+
235
+ .notification.show {
236
+ transform: translateY(0);
237
+ opacity: 1;
238
+ }
assets/js/script.js ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ document.addEventListener('DOMContentLoaded', function() {
2
+ // Smooth scrolling for navigation links
3
+ const navLinks = document.querySelectorAll('nav a[href^="#"]');
4
+ navLinks.forEach(link => {
5
+ link.addEventListener('click', function(e) {
6
+ e.preventDefault();
7
+ const targetId = this.getAttribute('href');
8
+ const targetSection = document.querySelector(targetId);
9
+
10
+ window.scrollTo({
11
+ top: targetSection.offsetTop - 80,
12
+ behavior: 'smooth'
13
+ });
14
+ });
15
+ });
16
+
17
+ // Order button functionality
18
+ const orderBtn = document.getElementById('order-btn');
19
+ orderBtn.addEventListener('click', function() {
20
+ showNotification('Your order will be ready soon!');
21
+ document.getElementById('menu').scrollIntoView({ behavior: 'smooth', block: 'start' });
22
+ });
23
+
24
+ // Notification system
25
+ function showNotification(message) {
26
+ // Check if notification already exists
27
+ let notification = document.querySelector('.notification');
28
+
29
+ if (!notification) {
30
+ notification = document.createElement('div');
31
+ notification.className = 'notification';
32
+ document.body.appendChild(notification);
33
+ }
34
+
35
+ notification.textContent = message;
36
+ notification.classList.add('show');
37
+
38
+ setTimeout(() => {
39
+ notification.classList.remove('show');
40
+ }, 3000);
41
+ }
42
+ });
index.html CHANGED
@@ -1,19 +1,103 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 Haven Coffee - Premium coffee experience in the heart of the city">
7
+ <title>Cozy Haven Coffee</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=Poppins:wght@300;400;600;700&display=swap" rel="stylesheet">
12
+ </head>
13
+ <body>
14
+ <header>
15
+ <div class="container">
16
+ <div class="logo">
17
+ <h1>Cozy Haven</h1>
18
+ <span>Coffee</span>
19
+ </div>
20
+ <nav>
21
+ <ul>
22
+ <li><a href="#home">Home</a></li>
23
+ <li><a href="#menu">Menu</a></li>
24
+ <li><a href="#about">About</a></li>
25
+ <li><a href="#contact">Contact</a></li>
26
+ </ul>
27
+ </nav>
28
+ </div>
29
+ </header>
30
+
31
+ <section id="home">
32
+ <div class="container">
33
+ <div class="hero">
34
+ <h2>Experience Coffee Perfection</h2>
35
+ <p>Handcrafted beverages with the finest beans from around the world</p>
36
+ <img src="https://huggingface.co/datasets/akhaliq/anycoder-media/resolve/main/image/20250824_231605_51c4573a_generated_image_0.jpg" alt="coffee in a cup" style="max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0;" loading="lazy" />
37
+ <button id="order-btn">Order Now</button>
38
+ </div>
39
+ </div>
40
+ </section>
41
+
42
+ <section id="menu">
43
+ <div class="container">
44
+ <h2>Our Menu</h2>
45
+ <div class="menu-items">
46
+ <div class="menu-item">
47
+ <h3>Espresso</h3>
48
+ <p>Strong and bold shot of pure coffee</p>
49
+ <span>$2.50</span>
50
+ </div>
51
+ <div class="menu-item">
52
+ <h3>Cappuccino</h3>
53
+ <p>Espresso with steamed milk foam</p>
54
+ <span>$3.75</span>
55
+ </div>
56
+ <div class="menu-item">
57
+ <h3>Latte</h3>
58
+ <p>Smooth espresso with creamy steamed milk</p>
59
+ <span>$4.25</span>
60
+ </div>
61
+ <div class="menu-item">
62
+ <h3>Americano</h3>
63
+ <p>Espresso with hot water</p>
64
+ <span>$3.00</span>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ </section>
69
+
70
+ <section id="about">
71
+ <div class="container">
72
+ <h2>About Us</h2>
73
+ <p>Founded in 2010, Cozy Haven Coffee is dedicated to bringing you the finest coffee experience. Our beans are ethically sourced and roasted in-house to ensure maximum freshness and flavor in every cup.</p>
74
+ </div>
75
+ </section>
76
+
77
+ <section id="contact">
78
+ <div class="container">
79
+ <h2>Visit Us</h2>
80
+ <div class="contact-info">
81
+ <div>
82
+ <h3>Location</h3>
83
+ <p>123 Coffee Street</p>
84
+ <p>Brew City, BC 12345</p>
85
+ </div>
86
+ <div>
87
+ <h3>Hours</h3>
88
+ <p>Monday-Friday: 6am-8pm</p>
89
+ <p>Weekend: 7am-9pm</p>
90
+ </div>
91
+ </div>
92
+ </div>
93
+ </section>
94
+
95
+ <footer>
96
+ <div class="container">
97
+ <p>&copy; 2023 Cozy Haven Coffee. All rights reserved.</p>
98
+ </div>
99
+ </footer>
100
+
101
+ <script src="assets/js/script.js"></script>
102
+ </body>
103
+ </html>