-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
178 lines (174 loc) · 6.74 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>MrsB - The Phuket Restaurant with Fire & Spirit, and the warmth of home.</title>
<link type="text/css" rel="stylesheet" href="src/style.scss" />
<!-- <script type="module" src="/src/main.ts"></script> -->
<style>
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap");
</style>
</head>
<body>
<header>
<a class="logo" href="/"><img src="/img/logo.png" /></a>
<a
class="menu_button"
href="https://www.mrs-b.com/wp-content/uploads/2022/01/MrsB-Specimen-Menu-Jan-22.docx"
target="_blank"
>Menu</a
>
</header>
<section class="first_screen">
<video autoplay loop muted playsinline poster="/img/cover.jpeg">
<source src="/video/fire.mp4" type="video/mp4" />
</video>
<div class="title">
<h1>Fire & Spirit</h1>
<p>Western craft, local produce and a raw wood grill</p>
</div>
</section>
<section class="slider">
<div class="center">
<div class="carousel">
<ul class="scroll" scroll-behavior="smooth">
<li class="scroll-item-outer">
<div id="slide-0" class="scroll-item">
<div class="text">
<h2>Simple Pleasures</h2>
<p>Affordable food and drink made with passion and craft, served in a convivial atmosphere</p>
</div>
<img src="/slider/00.jpeg" />
</div>
</li>
<li class="scroll-item-outer">
<div id="slide-1" class="scroll-item">
<div class="text">
<h2>Simple Pleasures</h2>
<p>Affordable food and drink made with passion and craft, served in a convivial atmosphere</p>
</div>
<img src="/slider/01.jpeg" />
</div>
</li>
<li class="scroll-item-outer">
<div id="slide-2" class="scroll-item">
<div class="text">
<h2>Simple Pleasures</h2>
<p>Affordable food and drink made with passion and craft, served in a convivial atmosphere</p>
</div>
<img src="/slider/02.jpeg" />
</div>
</li>
<li class="scroll-item-outer">
<div id="slide-3" class="scroll-item">
<div class="text">
<h2>Simple Pleasures</h2>
<p>Affordable food and drink made with passion and craft, served in a convivial atmosphere</p>
</div>
<img src="/slider/03.jpeg" />
</div>
</li>
<li class="scroll-item-outer">
<div id="slide-4" class="scroll-item">
<div class="text">
<h2>Simple Pleasures</h2>
<p>Affordable food and drink made with passion and craft, served in a convivial atmosphere</p>
</div>
<img src="/slider/04.jpeg" />
</div>
</li>
<li class="scroll-item-outer">
<div id="slide-5" class="scroll-item">
<div class="text">
<h2>Simple Pleasures</h2>
<p>Affordable food and drink made with passion and craft, served in a convivial atmosphere</p>
</div>
<img src="/slider/05.jpeg" />
</div>
</li>
<li class="scroll-item-outer">
<div id="slide-6" class="scroll-item">
<div class="text">
<h2>Simple Pleasures</h2>
<p>Affordable food and drink made with passion and craft, served in a convivial atmosphere</p>
</div>
<img src="/slider/06.jpeg" />
</div>
</li>
<li class="scroll-item-outer">
<div id="slide-7" class="scroll-item">
<div class="text">
<h2>Simple Pleasures</h2>
<p>Affordable food and drink made with passion and craft, served in a convivial atmosphere</p>
</div>
<img src="/slider/07.jpeg" />
</div>
</li>
</ul>
</div>
</div>
<ul class="navigate">
<li> </li>
<li> </li>
<li> </li>
</ul>
</section>
<!-- <section class="barmen">
<div class="text">
<h2>Simple Pleasures</h2>
<p>Affordable food and drink made with passion and craft, served in a convivial atmosphere</p>
</div>
</section> -->
<section class="map">
<div class="text">
<div class="group">
<p>19/1 Lagoon Road, Cherngtalay, Thalang<br />Phuket, 83110 Thailand</p>
<p>
E <a href="mailto:[email protected]">[email protected]</a><br />T
<a href="tel:+66 (0) 93 586 9828">+66 (0) 93 586 9828</a>
</p>
<p>OPENING HOURS</p>
<p>Monday – Saturday<br />from 5pm</p>
<a href="https://goo.gl/maps/Fa6zktsRWp33mSCJ9" target="_blank" class="map-link" role="button"
>Open in Google Maps
<svg x="0px" y="0px" viewBox="0 0 14 9.8" class="map-icon">
<style type="text/css">
.st0 {
fill: #6e7c7c;
}
</style>
<polygon
class="st0"
points="9.41,0 8.68,0.68 12.16,4.4 0,4.4 0,5.4 12.16,5.4 8.68,9.12 9.41,9.8 14,4.9 "
></polygon>
</svg>
</a>
</div>
</div>
<a href="https://goo.gl/maps/Fa6zktsRWp33mSCJ9" target="_blank" class="map-link" role="button"
><img src="img/map.jpeg" class="map-img"
/></a>
</section>
<script>
// for (item of document.getElementsByClassName("scroll-item")) {
// item.addEventListener("dblclick", (e) => {
// console.dir(e.target);
// e.target.classList.toggle('fill')
// });
// }
// .classList.toggle('large')
const carousel = document.getElementsByClassName("scroll")[0];
let slidesCount = Math.round(carousel.scrollWidth / carousel.offsetWidth)
let slideScrollWidth = carousel.scrollWidth / slidesCount
let interval = setInterval(() => {
if (carousel.scrollLeft + slideScrollWidth > carousel.scrollWidth) {
carousel.scrollLeft = 0
} else {
carousel.scrollLeft += slideScrollWidth
}
}, 3000)
document.getElementsByClassName("scroll")[0].offsetWidth;
</script>
</body>
</html>