-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
322 lines (309 loc) · 17.4 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
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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Frontend Mentor | Sunnyside agency landing page</title>
<link
rel="icon"
type="image/png"
sizes="32x32"
href="./images/favicon-32x32.png"
/>
<link href="./dist/styles.css" rel="stylesheet" />
<script
defer
src="https://unpkg.com/alpinejs@3.10.2/dist/cdn.min.js"
></script>
</head>
<body class="bg-beige">
<section
id="top"
class="h-[28rem] bg-image-header bg-cover bg-center bg-no-repeat px-6 text-white md:h-[40rem] md:bg-image-header-desktop md:px-12"
>
<header class="relative flex items-center justify-between py-6 md:py-10">
<a href="/">
<svg viewBox="0 0 124 24" class="h-4 md:h-6">
<path
d="M5.857 18.708c1.638 0 2.995-.36 4.07-1.08 1.075-.721 1.613-1.769 1.613-3.144-.083-1.855-1.464-3.246-4.144-4.173l-1.44-.597c-.314-.1-.538-.198-.67-.298a.45.45 0 01-.198-.373c0-.414.273-.62.819-.62.678 0 1.182.347 1.513 1.043l3.698-1.044c-.893-2.22-2.614-3.329-5.162-3.329-1.522 0-2.788.398-3.797 1.193C1.15 7.08.645 8.116.645 9.39c0 .398.058.766.174 1.106.116.34.29.638.521.894.232.257.455.48.67.671.215.19.488.369.82.534.33.166.582.286.756.36.174.075.41.162.707.261l.422.15 1.49.546c.363.133.6.244.707.335a.449.449 0 01.16.36c0 .431-.404.647-1.215.647-1.191 0-1.903-.53-2.134-1.59L0 14.509c.463 2.8 2.416 4.2 5.857 4.2zm11.636 0c1.638 0 2.845-.63 3.623-1.888v1.615h5.112V5.366h-5.112v7.156c0 1.474-.505 2.21-1.514 2.21-1.026 0-1.539-.736-1.539-2.21V5.366h-5.112v7.653c0 3.793 1.514 5.69 4.542 5.69zm16.103-.273V11.28c0-1.475.504-2.212 1.513-2.212 1.026 0 1.54.737 1.54 2.212v7.155h5.111v-7.652c0-3.793-1.513-5.69-4.541-5.69-1.638 0-2.846.63-3.623 1.888V5.366h-5.113v13.069h5.113zm15.383 0V11.28c0-1.475.504-2.212 1.514-2.212 1.025 0 1.538.737 1.538 2.212v7.155h5.113v-7.652c0-3.793-1.514-5.69-4.542-5.69-1.638 0-2.846.63-3.623 1.888V5.366h-5.113v13.069h5.113zM64.958 24l8.289-18.634H67.91l-2.532 6.684-2.258-6.684h-5.584l5.435 11.802L59.944 24h5.014zm13.67-5.292c1.638 0 2.995-.36 4.07-1.08 1.076-.721 1.614-1.769 1.614-3.144-.083-1.855-1.465-3.246-4.145-4.173l-1.44-.597c-.314-.1-.537-.198-.67-.298a.45.45 0 01-.198-.373c0-.414.273-.62.819-.62.678 0 1.183.347 1.514 1.043l3.698-1.044c-.894-2.22-2.614-3.329-5.162-3.329-1.522 0-2.788.398-3.797 1.193-1.01.795-1.514 1.83-1.514 3.105 0 .398.058.766.173 1.106.116.34.29.638.522.894.231.257.455.48.67.671.215.19.488.369.819.534.33.166.583.286.757.36.173.075.41.162.707.261l.422.15 1.489.546c.364.133.6.244.707.335a.449.449 0 01.161.36c0 .431-.405.647-1.216.647-1.19 0-1.902-.53-2.134-1.59l-3.723.844c.464 2.8 2.416 4.2 5.857 4.2zm9.8-14.137c.91 0 1.613-.215 2.11-.646.495-.43.744-.977.744-1.64 0-.678-.24-1.23-.72-1.651C90.082.21 89.371 0 88.428 0c-.943 0-1.655.211-2.135.634-.48.422-.72.973-.72 1.652 0 .662.249 1.209.745 1.64.497.43 1.2.645 2.11.645zm2.556 13.864V5.366H85.87v13.069h5.113zm7.74.273c1.737 0 2.977-.63 3.722-1.888v1.615h5.112V.472h-5.112v6.534c-.745-1.275-1.985-1.913-3.723-1.913-1.753 0-3.214.642-4.38 1.926-1.166 1.283-1.75 2.91-1.75 4.882 0 1.97.584 3.598 1.75 4.882 1.166 1.283 2.627 1.925 4.38 1.925zm1.39-3.9c-.729 0-1.312-.274-1.75-.82-.439-.547-.658-1.243-.658-2.087 0-.845.215-1.54.645-2.087.447-.547 1.034-.82 1.762-.82s1.311.273 1.75.82c.438.546.657 1.242.657 2.087 0 .844-.219 1.54-.657 2.087-.439.546-1.022.82-1.75.82zm16.698 3.9c2.597 0 4.624-.754 6.08-2.26l-2.11-2.833c-1.042.845-2.217 1.267-3.524 1.267-.992 0-1.799-.224-2.42-.67-.62-.448-.93-.879-.93-1.293h9.604c.083-.298.124-.687.124-1.167 0-2.054-.674-3.677-2.022-4.87-1.349-1.193-3.073-1.789-5.175-1.789-2.25 0-4.028.671-5.335 2.013-1.307 1.341-1.961 2.956-1.961 4.844 0 1.938.69 3.549 2.072 4.833 1.382 1.283 3.247 1.925 5.597 1.925zm2.208-8.149h-5.112c.033-.613.298-1.08.794-1.404.496-.323 1.084-.484 1.762-.484.678 0 1.266.165 1.762.497.497.331.761.795.794 1.391z"
fill="currentColor"
fill-rule="nonzero"
/>
</svg>
</a>
<div x-data="{ open: false }" class="md:hidden">
<button @click="open = !open">
<img src="./images/icon-hamburger.svg" alt="Mobile Menu" />
</button>
<div
x-show="open"
x-transition
@click.outside="open = false"
class="absolute inset-x-0 top-16 before:ml-auto before:block before:h-0 before:w-0 before:translate-x-4 before:translate-y-4 before:rotate-45 before:border-b-[36px] before:border-r-[36px] before:border-b-white before:border-r-transparent"
>
<nav class="flex flex-col items-center bg-white py-6 shadow-md">
<a href="#" class="py-3 px-3 text-gray-darker/70">About</a>
<a href="#" class="py-3 px-3 text-gray-darker/70">Services</a>
<a href="#" class="py-3 px-3 text-gray-darker/70">Projects</a>
<a
href="#"
class="mt-4 rounded-full bg-yellow py-3 px-3 font-headings text-sm uppercase tracking-wider text-gray-darkest"
>
Contact
</a>
</nav>
</div>
</div>
<nav class="hidden md:flex md:items-center md:gap-6">
<a href="#" class="text-white hover:underline">About</a>
<a href="#" class="text-white hover:underline">Services</a>
<a href="#" class="text-white hover:underline">Projects</a>
<a
href="#"
class="rounded-full bg-white px-5 py-3 font-headings text-sm uppercase text-gray-darkest transition hover:bg-opacity-50 hover:text-white"
>
Contact
</a>
</nav>
</header>
<h1
class="mt-10 text-center text-4xl font-black uppercase leading-tight tracking-widest md:text-5xl"
>
We are creatives
</h1>
<a href="#transform" class="mx-auto mt-14 block w-fit">
<img src="./images/icon-arrow-down.svg" alt="Arrow Down" />
</a>
</section>
<section
id="transform"
class="flex flex-col md:flex-row-reverse md:items-center"
>
<div class="aspect-square md:w-1/2">
<img
src="./images/mobile/image-transform.jpg"
alt="Transform your brand Image"
class="h-full w-full object-cover md:hidden"
/>
<img
src="./images/desktop/image-transform.jpg"
alt="Transform your brand Image"
class="hidden h-full w-full object-cover md:block"
/>
</div>
<div
class="flex flex-col items-center gap-6 px-6 py-10 md:w-1/2 md:items-start lg:px-32"
>
<h2 class="text-3xl font-black text-gray-darkest md:text-4xl">
Transform your brand
</h2>
<p class="text-gray-darker">
We are a full-service creative agency specializing in helping brands
grow fast. Engage your clients through compelling visuals that do most
of the marketing for you.
</p>
<a
href="#stand-out"
class="highlight highlight-yellow relative w-32 text-center"
>
<span
class="relative font-headings text-sm font-black uppercase text-gray-darkest/95"
>
Learn more
</span>
</a>
</div>
</section>
<section id="stand-out" class="flex flex-col md:flex-row md:items-center">
<div class="aspect-square md:w-1/2">
<img
src="./images/mobile/image-stand-out.jpg"
alt="Stand out to the right audience image"
class="h-full w-full object-cover md:hidden"
/>
<img
src="./images/mobile/image-stand-out.jpg"
alt="Stand out to the right audience image"
class="hidden h-full w-full object-cover md:block"
/>
</div>
<div
class="flex flex-col items-center gap-6 px-6 py-10 md:w-1/2 md:items-start lg:px-32"
>
<h2 class="text-3xl font-black text-gray-darkest md:text-4xl">
Stand out to the right audience
</h2>
<p class="text-gray-darker">
Using a collaborative formula of designers, researchers,
photographers, videographers, and copywriters, we’ll build and extend
your brand in digital places.
</p>
<a
href="#graphic-design"
class="highlight highlight-red relative w-32 text-center"
>
<span
class="relative font-headings text-sm font-black uppercase text-gray-darkest/95"
>
Learn more
</span>
</a>
</div>
</section>
<div class="md:grid md:grid-cols-2">
<section
id="graphic-design"
class="flex flex-col gap-6 bg-image-graphic-design bg-cover bg-top bg-no-repeat px-6 pt-[90%] pb-12 text-center md:bg-image-graphic-design-desktop md:px-36 md:pt-[55%]"
>
<h2 class="text-2xl font-black text-green md:text-3xl">
Graphic design
</h2>
<p class="text-sm text-green">
Great design makes you memorable. We deliver artwork that underscores
your brand message and captures potential clients’ attention.
</p>
</section>
<section
id="photography"
class="flex flex-col gap-6 bg-image-photography bg-cover bg-top bg-no-repeat px-6 pt-[90%] pb-12 text-center md:bg-image-photography-desktop md:px-36 md:pt-[55%]"
>
<h2 class="text-2xl font-black text-blue md:text-3xl">Photography</h2>
<p class="text-sm text-blue">
Increase your credibility by getting the most stunning, high-quality
photos that improve your business image.
</p>
</section>
</div>
<section id="testimonials" class="px-6 py-12 md:px-36 md:py-32">
<h2
class="text-center text-sm uppercase tracking-widest text-gray-darkest/50 md:text-base"
>
Client testimonials
</h2>
<div class="mt-12 grid gap-6 md:grid-cols-3 md:gap-8">
<figure class="flex flex-col items-center gap-6 md:gap-8">
<img
src="./images/image-emily.jpg"
alt="Emily R."
class="h-16 w-16 rounded-full"
/>
<blockquote class="text-center text-gray-darker">
We put our trust in Sunnyside and they delivered, making sure our
needs were met and deadlines were always hit.
</blockquote>
<figcaption class="flex flex-col items-center gap-2">
<span class="font-headings text-lg font-black">Emily R.</span>
<span class="text-xs text-gray-darkest/50">Marketing Director</span>
</figcaption>
</figure>
<figure class="flex flex-col items-center gap-6 md:gap-8">
<img
src="./images/image-thomas.jpg"
alt="Thomas S."
class="h-16 w-16 rounded-full"
/>
<blockquote class="text-center text-gray-darker">
Sunnyside’s enthusiasm coupled with their keen interest in our
brand’s success made it a satisfying and enjoyable experience.
</blockquote>
<figcaption class="flex flex-col items-center gap-2">
<span class="font-headings text-lg font-black">Thomas S.</span>
<span class="text-xs text-gray-darkest/50">
Chief Operating Officer
</span>
</figcaption>
</figure>
<figure class="flex flex-col items-center gap-6 md:gap-8">
<img
src="./images/image-jennie.jpg"
alt="Jennie F."
class="h-16 w-16 rounded-full"
/>
<blockquote class="text-center text-gray-darker">
Incredible end result! Our sales increased over 400% when we worked
with Sunnyside. Highly recommended!
</blockquote>
<figcaption class="flex flex-col items-center gap-2">
<span class="font-headings text-lg font-black">Jennie F.</span>
<span class="text-xs text-gray-darkest/50">Business Owner</span>
</figcaption>
</figure>
</div>
</section>
<section class="grid grid-cols-2 md:hidden">
<img
src="./images/mobile/image-gallery-milkbottles.jpg"
alt="Milk Bottles"
/>
<img src="./images/mobile/image-gallery-orange.jpg" alt="Orange" />
<img src="./images/mobile/image-gallery-cone.jpg" alt="Cone" />
<img
src="./images/mobile/image-gallery-sugar-cubes.jpg"
alt="Sugar Cubes"
/>
</section>
<section class="hidden md:grid md:grid-cols-4">
<img
src="./images/desktop/image-gallery-milkbottles.jpg"
alt="Milk Bottles"
/>
<img src="./images/desktop/image-gallery-orange.jpg" alt="Orange" />
<img src="./images/desktop/image-gallery-cone.jpg" alt="Cone" />
<img
src="./images/desktop/image-gallery-sugar-cubes.jpg"
alt="Sugar Cubes"
/>
</section>
<footer class="bg-green-light px-6 py-12 text-green-dark">
<div class="flex flex-col items-center">
<svg viewBox="0 0 124 24" class="h-4 md:h-6">
<path
d="M5.857 18.708c1.638 0 2.995-.36 4.07-1.08 1.075-.721 1.613-1.769 1.613-3.144-.083-1.855-1.464-3.246-4.144-4.173l-1.44-.597c-.314-.1-.538-.198-.67-.298a.45.45 0 01-.198-.373c0-.414.273-.62.819-.62.678 0 1.182.347 1.513 1.043l3.698-1.044c-.893-2.22-2.614-3.329-5.162-3.329-1.522 0-2.788.398-3.797 1.193C1.15 7.08.645 8.116.645 9.39c0 .398.058.766.174 1.106.116.34.29.638.521.894.232.257.455.48.67.671.215.19.488.369.82.534.33.166.582.286.756.36.174.075.41.162.707.261l.422.15 1.49.546c.363.133.6.244.707.335a.449.449 0 01.16.36c0 .431-.404.647-1.215.647-1.191 0-1.903-.53-2.134-1.59L0 14.509c.463 2.8 2.416 4.2 5.857 4.2zm11.636 0c1.638 0 2.845-.63 3.623-1.888v1.615h5.112V5.366h-5.112v7.156c0 1.474-.505 2.21-1.514 2.21-1.026 0-1.539-.736-1.539-2.21V5.366h-5.112v7.653c0 3.793 1.514 5.69 4.542 5.69zm16.103-.273V11.28c0-1.475.504-2.212 1.513-2.212 1.026 0 1.54.737 1.54 2.212v7.155h5.111v-7.652c0-3.793-1.513-5.69-4.541-5.69-1.638 0-2.846.63-3.623 1.888V5.366h-5.113v13.069h5.113zm15.383 0V11.28c0-1.475.504-2.212 1.514-2.212 1.025 0 1.538.737 1.538 2.212v7.155h5.113v-7.652c0-3.793-1.514-5.69-4.542-5.69-1.638 0-2.846.63-3.623 1.888V5.366h-5.113v13.069h5.113zM64.958 24l8.289-18.634H67.91l-2.532 6.684-2.258-6.684h-5.584l5.435 11.802L59.944 24h5.014zm13.67-5.292c1.638 0 2.995-.36 4.07-1.08 1.076-.721 1.614-1.769 1.614-3.144-.083-1.855-1.465-3.246-4.145-4.173l-1.44-.597c-.314-.1-.537-.198-.67-.298a.45.45 0 01-.198-.373c0-.414.273-.62.819-.62.678 0 1.183.347 1.514 1.043l3.698-1.044c-.894-2.22-2.614-3.329-5.162-3.329-1.522 0-2.788.398-3.797 1.193-1.01.795-1.514 1.83-1.514 3.105 0 .398.058.766.173 1.106.116.34.29.638.522.894.231.257.455.48.67.671.215.19.488.369.819.534.33.166.583.286.757.36.173.075.41.162.707.261l.422.15 1.489.546c.364.133.6.244.707.335a.449.449 0 01.161.36c0 .431-.405.647-1.216.647-1.19 0-1.902-.53-2.134-1.59l-3.723.844c.464 2.8 2.416 4.2 5.857 4.2zm9.8-14.137c.91 0 1.613-.215 2.11-.646.495-.43.744-.977.744-1.64 0-.678-.24-1.23-.72-1.651C90.082.21 89.371 0 88.428 0c-.943 0-1.655.211-2.135.634-.48.422-.72.973-.72 1.652 0 .662.249 1.209.745 1.64.497.43 1.2.645 2.11.645zm2.556 13.864V5.366H85.87v13.069h5.113zm7.74.273c1.737 0 2.977-.63 3.722-1.888v1.615h5.112V.472h-5.112v6.534c-.745-1.275-1.985-1.913-3.723-1.913-1.753 0-3.214.642-4.38 1.926-1.166 1.283-1.75 2.91-1.75 4.882 0 1.97.584 3.598 1.75 4.882 1.166 1.283 2.627 1.925 4.38 1.925zm1.39-3.9c-.729 0-1.312-.274-1.75-.82-.439-.547-.658-1.243-.658-2.087 0-.845.215-1.54.645-2.087.447-.547 1.034-.82 1.762-.82s1.311.273 1.75.82c.438.546.657 1.242.657 2.087 0 .844-.219 1.54-.657 2.087-.439.546-1.022.82-1.75.82zm16.698 3.9c2.597 0 4.624-.754 6.08-2.26l-2.11-2.833c-1.042.845-2.217 1.267-3.524 1.267-.992 0-1.799-.224-2.42-.67-.62-.448-.93-.879-.93-1.293h9.604c.083-.298.124-.687.124-1.167 0-2.054-.674-3.677-2.022-4.87-1.349-1.193-3.073-1.789-5.175-1.789-2.25 0-4.028.671-5.335 2.013-1.307 1.341-1.961 2.956-1.961 4.844 0 1.938.69 3.549 2.072 4.833 1.382 1.283 3.247 1.925 5.597 1.925zm2.208-8.149h-5.112c.033-.613.298-1.08.794-1.404.496-.323 1.084-.484 1.762-.484.678 0 1.266.165 1.762.497.497.331.761.795.794 1.391z"
fill="currentColor"
fill-rule="nonzero"
/>
</svg>
<nav class="mt-8 flex justify-between gap-4">
<a href="#" class="text-sm">About</a>
<a href="#" class="text-sm">Services</a>
<a href="#" class="text-sm">Projects</a>
<a href="#" class="text-sm">Contact</a>
</nav>
<ul class="mt-16 flex gap-6">
<li>
<a href="#">
<img src="./images/icon-facebook.svg" alt="Facebook" />
</a>
</li>
<li>
<a href="#">
<img src="./images/icon-instagram.svg" alt="Instagram" />
</a>
</li>
<li>
<a href="#">
<img src="./images/icon-twitter.svg" alt="Twitter" />
</a>
</li>
<li>
<a href="#">
<img src="./images/icon-pinterest.svg" alt="Pinterest" />
</a>
</li>
</ul>
</div>
</footer>
<!-- prettier-ignore -->
<div class="text-xs text-gray-darker text-center py-2 px-6">
Challenge by
<a
href="https://www.frontendmentor.io?ref=challenge"
target="_blank"
class="underline"
>
Frontend Mentor
</a>.
Coded by <a href="https://ap2.dev" class="underline">Andrew</a>.
</div>
</body>
</html>