-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
205 lines (191 loc) · 10.8 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/svg/logo_pix8.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Technical Test</title>
</head>
<body>
<div id="app" class="flex flex-col min-h-screen">
<header class="app__masthead border-t-8 border-pink-600 bg-black text-white pt-4">
<div class="max-w-[var(--app-width)] mx-auto">
<h1 class="my-4">
<img src="/svg/logo_placeholder.svg" alt="" />
</h1>
</div>
</header>
<main class="app__main grow">
<section class="w-full mt-0">
<div class="ui__carousel relative w-full">
<ul class="carousel__slider relative w-full h-[420px] md:h-[540px] xl:h-[680px] overflow-hidden">
<li class="carousel__slide hidden c-active:grid c-cue:grid grid-cols-[1fr_minmax(0,_var(--app-width))_1fr] c-cue:absolute c-cue:top-0 relative w-full h-full carousel__slide--active">
<picture class="block overflow-hidden row-span-full col-span-full z-0">
<!--
DEVNOTE: limited imagery unsuitable; ideally you would try to art direct and groom the aspect ratio or compliment with server-side tech to curate imagery on the fly
-->
<img class="object-cover object-center w-full"
src="/img/jason-hawke_1920.jpg"
srcset="
/img/jason-hawke_768.jpg 768w,
/img/jason-hawke_1280.jpg 1280w,
/img/jason-hawke_1920.jpg 1920w"
sizes="100vw"
alt="" />
</picture>
<div class="flex flex-col row-span-full col-span-full xl:col-span-1 xl:col-start-2 z-10 justify-between px-4 xl:px-0">
<header class="relative h-full">
<h2 class="text-4xl md:text-5xl xl:text-6xl text-white text-shadow text-center w-full px-16 my-4 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2">Check out these great deals</h2>
</header>
<div>
<p class="btn-primary float-right my-4"><a href="/">Grab a deal</a></p>
</div>
</div>
</li>
<li class="carousel__slide hidden c-active:grid c-cue:grid grid-cols-[1fr_minmax(0,_var(--app-width))_1fr] c-cue:absolute c-cue:top-0 relative w-full h-full">
<picture class="block overflow-hidden row-span-full col-span-full z-0">
<img class="object-cover object-center w-full"
src="/img/sai-de-silva_1920.jpg"
srcset="
/img/sai-de-silva_768.jpg 768w,
/img/sai-de-silva_1280.jpg 1280w,
/img/sai-de-silva_1920.jpg 1920w"
sizes="100vw"
alt="" />
</svg>
</picture>
<div class="flex flex-col row-span-full col-span-full xl:col-span-1 xl:col-start-2 z-10 justify-between px-4 xl:px-0">
<header class="relative h-full">
<h2 class="text-4xl md:text-5xl xl:text-6xl text-white text-shadow text-center w-full px-16 my-4 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2">A simply irresistible offer</h2>
</header>
<div>
<p class="btn-primary float-right my-4"><a href="/">Check out offers</a></p>
</div>
</div>
</li>
<li class="carousel__slide hidden c-active:grid c-cue:grid grid-cols-[1fr_minmax(0,_var(--app-width))_1fr] c-cue:absolute c-cue:top-0 relative w-full h-full">
<picture class="block overflow-hidden row-span-full col-span-full z-0">
<img class="object-cover object-center w-full"
src="/img/marcus-loke_1920.jpg"
srcset="
/img/marcus-loke_768.jpg 768w,
/img/marcus-loke_1280.jpg 1280w,
/img/marcus-loke_1920.jpg 1920w"
sizes="100vw"
alt="" />
</svg>
</picture>
<div class="flex flex-col row-span-full col-span-full xl:col-span-1 xl:col-start-2 z-10 justify-between px-4 xl:px-0">
<header class="relative h-full">
<h2 class="text-4xl md:text-5xl xl:text-6xl text-white text-shadow text-center w-full px-16 my-4 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2">Amazing savings over the high-street</h2>
</header>
<div>
<p class="btn-primary float-right my-4"><a href="/">Save now</a></p>
</div>
</div>
</li>
<li class="carousel__slide hidden c-active:grid c-cue:grid grid-cols-[1fr_minmax(0,_var(--app-width))_1fr] c-cue:absolute c-cue:top-0 relative w-full h-full">
<picture class="block overflow-hidden row-span-full col-span-full z-0">
<img class="object-cover object-center w-full"
src="/img/ian-talmacs_1920.jpg"
srcset="
/img/ian-talmacs_768.jpg 768w,
/img/ian-talmacs_1280.jpg 1280w,
/img/ian-talmacs_1920.jpg 1920w"
sizes="100vw"
alt="" />
</svg>
</picture>
<div class="flex flex-col row-span-full col-span-full xl:col-span-1 xl:col-start-2 z-10 justify-between px-4 xl:px-0">
<header class="relative h-full">
<h2 class="text-4xl md:text-5xl xl:text-6xl text-white text-shadow text-center w-full px-16 my-4 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2">Great benefits for members</h2>
</header>
<div>
<p class="btn-primary float-right my-4"><a href="/">Learn more</a></p>
</div>
</div>
</li>
</ul>
<button class="carousel__control carousel__control--previous bg-stone-200 text-4xl flex items-center justify-center absolute z-10 left-0 top-1/2 -translate-y-1/2 w-16 h-16 cursor-pointer">←</button>
<button class="carousel__control carousel__control--next bg-stone-200 text-4xl flex items-center justify-center absolute z-10 right-0 top-1/2 -translate-y-1/2 w-16 h-16 cursor-pointer">→</button>
</div>
</section>
<section class="max-w-[var(--app-width)] mx-auto">
<div class="grid grid-cols md:grid-cols-2 xl:grid-cols-3 gap-4 pl-20 md:pl-0">
<div class="product-card">
<picture class="block">
<a class="block relative hover:after:border-[10px] after:border-black after:absolute after:inset-0 hover:scale-105 transform-gpu transition-transform ease-out duration-300"
href="/">
<img class="object-cover object-center h-[320px] w-full"
src="/img/dom-hill_768.jpg"
alt="" />
</a>
</picture>
<p class="btn-primary absolute bottom-4 right-4"><a href="/">Shop now</a></p>
</div>
<div class="product-card">
<picture class="block">
<a class="block relative hover:after:border-[10px] after:border-black after:absolute after:inset-0 hover:scale-105 transform-gpu transition-transform ease-out duration-300"
href="/">
<img class="object-cover object-center h-[320px] w-full"
src="/img/ahmed-carter_768.jpg"
alt="" />
</a>
</picture>
<p class="btn-primary absolute bottom-4 right-4"><a href="/">Shop now</a></p>
</div>
<div class="product-card">
<picture class="block">
<a class="block relative hover:after:border-[10px] after:border-black after:absolute after:inset-0 hover:scale-105 transform-gpu transition-transform ease-out duration-300"
href="/">
<img class="object-cover object-center h-[320px] w-full"
src="/img/tamara-bellis_768.jpg"
alt="" />
</a>
</picture>
<p class="btn-primary absolute bottom-4 right-4"><a href="/">Shop now</a></p>
</div>
<div class="product-card">
<picture class="block overflow-hidden">
<a class="block relative hover:after:border-[10px] after:border-black after:absolute after:inset-0 hover:scale-105 transform-gpu transition-transform ease-out duration-300"
href="/">
<img class="object-cover object-center h-[320px] w-full"
src="/img/jason-hawke_768.jpg"
alt="" />
</a>
</picture>
<p class="btn-primary absolute bottom-4 right-4"><a href="/">Shop now</a></p>
</div>
<div class="product-card">
<picture class="block overflow-hidden">
<a class="block relative hover:after:border-[10px] after:border-black after:absolute after:inset-0 hover:scale-105 transform-gpu transition-transform ease-out duration-300"
href="/">
<img class="object-cover object-center h-[320px] w-full"
src="/img/mattia-occhi_768.jpg"
alt="" />
</a>
</picture>
<p class="btn-primary absolute bottom-4 right-4"><a href="/">Shop now</a></p>
</div>
<div class="product-card">
<picture class="block">
<a class="block relative hover:after:border-[10px] after:border-black after:absolute after:inset-0 hover:scale-105 transform-gpu transition-transform ease-out duration-300" href="/">
<img class="object-cover object-center h-[320px] w-full"
src="/img/sarah-dorweiler_768.jpg"
alt="" />
</a>
</picture>
<p class="btn-primary absolute bottom-4 right-4"><a href="/">Shop now</a></p>
</div>
</div>
</section>
</main>
<footer class="app__footer bg-black text-white">
<div class="max-w-[var(--app-width)] mx-auto">
<p class="text-sm my-4 float-right">© Pix8 Ltd 2012-2023</p>
</div>
</footer>
</div>
<script type="module" src="/main.js"></script>
</body>
</html>