-
Notifications
You must be signed in to change notification settings - Fork 3
/
home.html
302 lines (283 loc) · 16.5 KB
/
home.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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
{% load static%}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cafe</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600&family=Oswald:wght@600&display=swap" rel="stylesheet">
<!-- Load FontAwesome -->
<link rel="stylesheet" href="{% static 'css/all.min.css' %}">
<!-- Load Tailwind CSS -->
<link rel="stylesheet" href="{% static 'css/tailwind.css' %}">
<!-- Load Tooplate Antique Cafe CSS -->
<link rel="stylesheet" href="{% static 'css/tooplate-antique-cafe.css' %}">
<!-- Include JavaScript files -->
<script src="{% static 'js/jquery-3.6.0.min.js' %}"></script>
<script src="{% static 'js/jquery.singlePageNav.min.js' %}"></script>
<script src="{% static 'js/parallax.min.js' %}"></script>
</head>
<body>
<!-- Intro -->
<div id="intro" class="parallax-window" data-parallax="scroll" data-image-src="{% static 'img/antique-cafe-bg-01.jpg' %}">
<nav id="tm-nav" class="fixed w-full">
<div class="tm-container mx-auto px-2 md:py-6 text-right">
<button class="md:hidden py-2 px-2" id="menu-toggle"><i class="fas fa-2x fa-bars tm-text-gold"></i></button>
<ul class="mb-3 md:mb-0 text-2xl font-normal flex justify-end flex-col md:flex-row">
<li class="inline-block mb-4 mx-4"><a href="#intro" class="tm-text-gold py-1 md:py-3 px-4">Intro</a></li>
<li class="inline-block mb-4 mx-4"><a href="#menu" class="tm-text-gold py-1 md:py-3 px-4">Menu</a></li>
<li class="inline-block mb-4 mx-4"><a href="#about" class="tm-text-gold py-1 md:py-3 px-4">About</a></li>
<li class="inline-block mb-4 mx-4"><a href="#contact" class="tm-text-gold py-1 md:py-3 px-4">Contact</a></li>
</ul>
</div>
</nav>
<div class="container mx-auto px-2 tm-intro-width">
<div class="sm:pb-60 sm:pt-48 py-20">
<div class="bg-black bg-opacity-70 p-12 mb-5 text-center">
<h1 class="text-white text-5xl tm-logo-font mb-5">Cafe</h1>
<p class="tm-text-gold tm-text-2xl">your daily energy booster</p>
</div>
<div class="bg-black bg-opacity-70 p-10 mb-5">
<p class="text-white leading-8 text-sm font-light">
Welcome to our coffee.
If you have any question, please <a rel="nofollow" href="https://www.tooplate.com/contact" target="_parent">send us a message</a>. </p>
</div>
<div class="text-center">
<div class="inline-block">
<a href="#menu" class="flex justify-center items-center bg-black bg-opacity-70 py-6 px-8 rounded-lg font-semibold tm-text-2xl tm-text-gold hover:text-gray-200 transition">
<i class="fas fa-coffee mr-3"></i>
<span>Let's explore...</span>
</a>
</div>
</div>
</div>
</div>
</div>
<!-- Cafe Menu -->
<!-- Cafe Menu Section -->
<div id="menu" class="parallax-window" data-parallax="scroll" data-image-src="{% static 'img/antique-cafe-bg-02.jpg' %}">
<div class="container mx-auto tm-container py-24 sm:py-48">
<div class="text-center mb-16">
<h2 class="bg-white tm-text-brown py-6 px-12 text-4xl font-medium inline-block rounded-md">What We Offer</h2>
</div>
<div class="flex flex-col lg:flex-row justify-around items-center">
{% for product in sellable_objects %}
<div class="flex-1 m-5 rounded-xl px-4 py-6 sm:px-8 sm:py-10 tm-bg-brown tm-item-container">
<div class="flex items-start mb-6 tm-menu-item">
<div class="ml-3 sm:ml-6">
{% if product.name or product.title or product.product_name or product.item_name or product.label %}
<h3 class="text-lg sm:text-xl mb-2 sm:mb-3 tm-text-yellow">
{% if product.name %}
{{ product.name }}
{% elif product.title %}
{{ product.title }}
{% elif product.product_name %}
{{ product.product_name }}
{% elif product.item_name %}
{{ product.item_name }}
{% elif product.label %}
{{ product.label }}
{% endif %}
</h3>
{% endif %}
{% if product.price or product.cost or product.amount or product.value or product.pricing or product.rate or product.charge %}
<div class="text-white text-md sm:text-lg font-light mb-1">
{% if product.price %}
{{ product.price }}
{% elif product.cost %}
{{ product.cost }}
{% elif product.amount %}
{{ product.amount }}
{% elif product.value %}
{{ product.value }}
{% elif product.pricing %}
{{ product.pricing }}
{% elif product.rate %}
{{ product.rate }}
{% elif product.charge %}
{{ product.charge }}
{% endif %}
</div>
{% endif %}
{% if product.description or product.details or product.info or product.summary or product.overview or product.spec or product.specification %}
<div class="text-white text-md sm:text-lg font-light mb-1">
{% if product.description %}
{{ product.description }}
{% elif product.details %}
{{ product.details }}
{% elif product.info %}
{{ product.info }}
{% elif product.summary %}
{{ product.summary }}
{% elif product.overview %}
{{ product.overview }}
{% elif product.spec %}
{{ product.spec }}
{% elif product.specification %}
{{ product.specification }}
{% endif %}
</div>
{% endif %}
{% if product.quantity or product.amount or product.count or product.number or product.volume or product.total or product.stock %}
<div class="text-white text-md sm:text-lg font-light mb-1">
{% if product.quantity %}
{{ product.quantity }}
{% elif product.amount %}
{{ product.amount }}
{% elif product.count %}
{{ product.count }}
{% elif product.number %}
{{ product.number }}
{% elif product.volume %}
{{ product.volume }}
{% elif product.total %}
{{ product.total }}
{% elif product.stock %}
{{ product.stock }}
{% endif %}
</div>
{% endif %}
{% if product.size or product.dimension or product.length or product.width or product.height or product.measurements %}
<div class="text-white text-md sm:text-lg font-light mb-1">
{% if product.size %}
{{ product.size }}
{% elif product.dimension %}
{{ product.dimension }}
{% elif product.length %}
{{ product.length }}
{% elif product.width %}
{{ product.width }}
{% elif product.height %}
{{ product.height }}
{% elif product.measurements %}
{{ product.measurements }}
{% endif %}
</div>
{% endif %}
{% if product.weight or product.mass or product.heaviness or product.load or product.burden %}
<div class="text-white text-md sm:text-lg font-light mb-1">
{% if product.weight %}
{{ product.weight }}
{% elif product.mass %}
{{ product.mass }}
{% elif product.heaviness %}
{{ product.heaviness }}
{% elif product.load %}
{{ product.load }}
{% elif product.burden %}
{{ product.burden }}
{% endif %}
</div>
{% endif %}
</div>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
<div id="about" class="parallax-window" data-parallax="scroll" data-image-src="{% static 'img/antique-cafe-bg-03.jpg' %}">
<div class="container mx-auto tm-container py-24 sm:py-48">
<div class="tm-item-container sm:ml-auto sm:mr-12 mx-auto sm:px-0 px-4">
<div class="bg-white bg-opacity-80 p-12 pb-14 rounded-xl mb-5">
<h2 class="mb-6 tm-text-green text-4xl font-medium">About our cafe</h2>
<p class="mb-6 text-base leading-8">
Images are taken from Pexels, a great stock photo website. This template used Tailwind CSS. You may modify Antique Cafe template in any way you prefer and use it for your website.
</p>
<p class="text-base leading-8">
If you wish to <a rel="nofollow" href="https://www.tooplate.com/contact" target="_parent">support us</a>, please make a little donation via PayPal. That would be
very helpful. Another way is to tell your friends about Tooplate website. Thank you. </p>
</div>
<a href="#contact" class="inline-block tm-bg-green transition text-white text-xl pt-3 pb-4 px-8 rounded-md">
<i class="far fa-comments mr-4"></i>
Contact
</a>
</div>
</div>
</div>
<div id="contact" class="parallax-window relative" data-parallax="scroll" data-image-src="{% static 'img/antique-cafe-bg-04.jpg' %}">
<div class="container mx-auto tm-container pt-24 pb-48 sm:py-48">
<div class="flex flex-col lg:flex-row justify-around items-center lg:items-stretch">
<div class="flex-1 rounded-xl px-10 py-12 m-5 bg-white bg-opacity-80 tm-item-container">
<h2 class="text-3xl mb-6 tm-text-green">Contact Us</h2>
<p class="mb-6 text-lg leading-8">
Praesent tellus magna, consectetur sit amet volutpat eu, pulvinar vitae sem.
Sed ultrices. bg white 80% alpha. btn #066
</p>
<p class="mb-10 text-lg">
<span class="block mb-2">Tel: <a href="tel:0100200340" class="hover:text-yellow-600 transition">010-020-0340</a></span>
<span class="block">Email: <a href="mailto:[email protected]" class="hover:text-yellow-600 transition">[email protected]</a></span>
</p>
<div class="text-center">
<a href="https://www.google.com/maps" class="inline-block text-white text-2xl pl-10 pr-12 py-6 rounded-lg transition tm-bg-green">
<i class="fas fa-map-marked-alt mr-8"></i>
Open Maps
</a>
</div>
</div>
<div class="flex-1 rounded-xl p-12 pb-14 m-5 bg-black bg-opacity-50 tm-item-container">
<form action="" method="POST" class="text-lg">
<input type="text" name="name" class="input w-full bg-black border-b bg-opacity-0 text-white px-0 py-4 mb-4 tm-border-gold" placeholder="Name" required="" />
<input type="email" name="email" class="input w-full bg-black border-b bg-opacity-0 text-white px-0 py-4 mb-4 tm-border-gold" placeholder="Email" required="" />
<textarea rows="6" name="message" class="input w-full bg-black border-b bg-opacity-0 text-white px-0 py-4 mb-4 tm-border-gold" placeholder="Message..." required=""></textarea>
<div class="text-right">
<button type="submit" class="text-white hover:text-yellow-500 transition">Send it</button>
</div>
</form>
</div>
</div>
<footer class="absolute bottom-0 left-0 w-full">
<div class="text-white container mx-auto tm-container p-8 text-lg flex flex-col md:flex-row justify-between">
<span>Copyright 2024 My Cafe. All rights reserved.</span>
<span class="mt-5 md:mt-0">WEBBY</span>
</div>
</footer>
</div>
</div>
<script src="{% static 'js/jquery-3.6.0.min.js'%}"></script>
<script src="{% static 'js/parallax.min.js'%}"></script>
<script src="{% static 'js/jquery.singlePageNav.min.js'%}"></script>
<script>
function checkAndShowHideMenu() {
if(window.innerWidth < 768) {
$('#tm-nav ul').addClass('hidden');
} else {
$('#tm-nav ul').removeClass('hidden');
}
}
$(function(){
var tmNav = $('#tm-nav');
tmNav.singlePageNav();
checkAndShowHideMenu();
window.addEventListener('resize', checkAndShowHideMenu);
$('#menu-toggle').click(function(){
$('#tm-nav ul').toggleClass('hidden');
});
$('#tm-nav ul li').click(function(){
if(window.innerWidth < 768) {
$('#tm-nav ul').addClass('hidden');
}
});
$(document).scroll(function() {
var distanceFromTop = $(document).scrollTop();
if(distanceFromTop > 100) {
tmNav.addClass('scroll');
} else {
tmNav.removeClass('scroll');
}
});
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
});
</script>
</body>
</html>