-
Notifications
You must be signed in to change notification settings - Fork 0
/
products.html
257 lines (226 loc) · 7.24 KB
/
products.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Products - Valge Kõrvits</title>
<link rel="stylesheet" href="styles.css">
<!-- Add Font Awesome CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<style>
/* Adjust position of social icons */
.social-icons {
position: fixed;
top: 20px;
right: 20px;
}
.social-icons a {
color: #fff; /* White */
text-decoration: none;
font-size: 18px; /* Adjust size as needed */
margin-left: 10px;
}
.social-icons a:hover {
color: #CF7C38; /* Soft pastel orange */
}
/* Whole Page Background */
body {
background-color: #000; /* Black */
color: #fff; /* White */
}
/* Header and Navigation */
header {
background-color: #000; /* Black */
color: #fff; /* White */
padding: 20px;
text-align: center;
position: relative; /* Add this to position logo */
}
.logo {
position: absolute;
top: 20px;
left: 20px;
width: 50px; /* Adjust size as needed */
height: auto;
}
nav {
background-color: #000000; /* Orange */
padding: 10px 0;
text-align: center;
border-bottom: 2px solid #000; /* Black */
}
nav a {
color: #333;
text-decoration: none;
margin: 0 15px;
padding: 5px 10px;
border-radius: 5px;
transition: background-color 0.3s;
}
nav a:hover {
background-color: #CF7C38; /* Soft pastel orange */
}
/* Footer */
footer {
background-color: #000; /* Black */
color: #fff; /* White */
text-align: center;
padding: 20px;
position: fixed;
width: 100%;
bottom: 0;
transition: transform 0.3s ease;
transform: translateY(100%);
}
footer.visible {
transform: translateY(0%);
}
footer a {
color: #fff; /* White */
text-decoration: none;
margin: 0 10px;
}
footer a:hover {
text-decoration: underline;
}
/* Product Section */
.product-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
}
.product {
padding: 10px;
background-color: #000; /* Black */
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.product h3 {
color: #ff7e5f; /* Soft pastel orange */
}
.product p {
color: #fff; /* White */
}
.product img {
max-width: 100%;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* Google Translate Button */
#google_translate_element {
position: fixed;
top: 30px;
right: 30px;
z-index: 9999; /* Ensure it appears on top */
}
</style>
</head>
<body>
<header>
<div class="container">
<img src="logo.png" alt="Logo" class="logo"> <!-- Add logo here -->
<h1></h1>
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="Menu.html">Menu</a></li>
<li><a href="Catering.html">Catering</a></li>
<li><a href="products.html">Pop-up Coffee</a></li>
<li><a href="events.html">Events</a></li>
<li><a href="shop.html">Exibition-Shop</a></li>
<li><a href="orders.html">Orders</a></li>
<li><a href="contact.html">Contact</a></li>
</nav>
<!-- Social Icons -->
<div class="social-icons">
<a href="https://www.facebook.com/valgekorvits/?locale=et_EE" target="_blank"><i class="fab fa-facebook-f"></i></a>
<a href="https://www.instagram.com/valgekorvits/" target="_blank"><i class="fab fa-instagram"></i></a>
<!-- Button -->
<a href="https://fienta.com/et/o/valgekorvits" target="_blank"><img src="fienta_logo.png" alt="Fienta Logo" style="width: 15px; height: 15px; margin-left: 10px;"></a>
</div>
<!-- Google Translate Button -->
</div>
<div id="google_translate_element" style="float: right; margin-right: 20px;"></div>
</div>
<footer>
<!-- Footer content goes here -->
</footer>
<!-- JavaScript for Google Translate -->
<script type="text/javascript">
// Function to initialize Google Translate
function googleTranslateElementInit() {
// Get the saved language preference from localStorage
var selectedLanguage = localStorage.getItem('selectedLanguage');
// Initialize Google Translate with the saved language or default to English
new google.translate.TranslateElement({
pageLanguage: selectedLanguage || 'en'
}, 'google_translate_element');
}
// Function to save the selected language in localStorage
function saveSelectedLanguage(selectedLanguage) {
localStorage.setItem('selectedLanguage', selectedLanguage);
}
</script>
<!-- Include Google Translate API script -->
<script type="text/javascript" src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</body>
</html>
<!-- Google Translate Functionality -->
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en'}, 'google_translate_element');
}
</script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</header>
<section id="products">
<div class="container">
<h2>Our Products</h2>
<div class="product-grid">
<div class="product">
<img src="placeholder.jpg" alt="Espresso">
<h3>Espresso</h3>
<p>Price: $<span class="price"></span></p>
</div>
<div class="product">
<img src="placeholder.jpg" alt="Cappuccino">
<h3>Cappuccino</h3>
<p>Price: $<span class="price"></span></p>
</div>
<div class="product">
<img src="placeholder.jpg" alt="Latte">
<h3>Latte</h3>
<p>Price: $<span class="price"></span></p>
</div>
<div class="product">
<img src="placeholder.jpg" alt="Mocha">
<h3>Mocha</h3>
<p>Price: $<span class="price"></span></p>
</div>
<div class="product">
<img src="placeholder.jpg" alt="Tea">
<h3>Tea</h3>
<p>Price: $<span class="price"></span></p>
</div>
<div class="product">
<img src="placeholder.jpg" alt="Pastries">
<h3>Pastries</h3>
<p>Price: $<span class="price"></span></p>
</div>
<div class="product">
<img src="placeholder.jpg" alt="Breakfast">
<h3>Breakfast</h3>
<p>Price: $<span class="price"></span></p>
</div>
</div>
</div>
</section>
<footer>
<div class="container">
<p>© 2024 Valge Kõrvits. All rights reserved.</p>
</div>
</footer>
\
<script src="scripts.js"></script>
</body>
</html>