forked from Netcentric/web-performance-challenge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
195 lines (182 loc) · 12.7 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
<!DOCTYPE html lang="en">
<html>
<head>
<style>
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}table{border-collapse:collapse;border-spacing:0}.no-scroll{height:100%;overflow-y:hidden}.visually-hidden{position:absolute;position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.screenreader-text{position:absolute;left:-999px;width:1px;height:1px;top:auto}.screenreader-text:focus{color:#000;background-color:#fff;display:inline-block;height:auto;width:auto;margin:auto;left:0;padding:5px}:root{--color-black:#000;--color-dark-gray:#4a4a4a;--color-gray:#dbdbdb;--color-light-gray:#f5f5f5;--color-white:#fff;--color-green:#7ed31f;--background-color:#0D6392;--text-color:var(--color-white);--font-xlarge:35px;--font-large:18px;--font-base:16px;--font-small:13px;--line-height:1.2;--line-height-large:1.5;--spacing-large:50px;--spacing-medium:30px;--spacing-small:20px;--spacing-xsmall:15px}body{font-family:'Alegreya',serif}.main__advertising{background-color:var(--color-light-gray);padding:30px 100px;display:flex;justify-content:space-around;min-height:270px}.main__content{padding:30px;margin:auto;max-width:1200px}.main__news{text-align:center;height:30px}.main__hero{height:400px;display:grid;grid-template-columns:2fr 1fr;grid-template-rows:repeat(2,1fr);grid-column-gap:20px;grid-row-gap:10px}.main__carousel{position:relative}.main__content img{width:100%}.div1{grid-area:1 / 1 / 3 / 2}.div2{grid-area:1 / 2 / 2 / 3}.div3{grid-area:2 / 2 / 3 / 3}.main__teasers{align-items:center;display:flex;justify-content:space-between}.main__section{margin-bottom:30px}.main__video{display:flex;justify-content:space-between}@font-face{font-family:'Alegreya';font-style:normal;font-weight:400;src:local(''),url(fonts/alegreya-v29-latin-regular.woff2) format('woff2'),url(fonts/alegreya-v29-latin-regular.woff) format('woff'),url(fonts/alegreya-v29-latin-regular.ttf) format('truetype'),url('fonts/alegreya-v29-latin-regular.svg#Alegreya') format('svg')}@font-face{font-family:'Alegreya';font-style:normal;font-weight:900;src:local(''),url(fonts/alegreya-v29-latin-900.woff2) format('woff2'),url(fonts/alegreya-v29-latin-900.woff) format('woff'),url(fonts/alegreya-v29-latin-900.ttf) format('truetype'),url('fonts/alegreya-v29-latin-900.svg#Alegreya') format('svg')}.header__base{background:var(--background-color);color:var(--text-color)}.header__content{align-items:center;display:flex;justify-content:space-between;margin:auto;padding:0 30px;max-width:1200px}.header__image{width:250px}.navigation__list{display:flex}.navigation__link{color:var(--text-color);font-size:1.25em;margin:0 4px;padding:4px;text-decoration:none}.navigation__link:hover{color:var(--text-color)}.logo__svg{display:block}.hero__teaser{position:relative;height:100%;overflow:hidden;background-color:var(--background-color)}.hero__teaserText{position:absolute;left:5%;top:60%;max-width:80%;font-size:25px;font-weight:700;color:#fff}.cookieLayer__base{position:fixed;bottom:0;left:0;right:0;color:var(--color-white);background-color:var(--background-color);padding:20px;text-align:center;z-index:2;box-shadow:0 5px 3px -2px #e4e4e4}.cookieLayer__base--hidden{display:none}.cookieLayer__title{font-size:25px;margin-bottom:10px}.cookieLayer__disclaimer{font-size:10px;color:var(--color-gray)}
</style>
<link rel="stylesheet" media='screen and (max-width: 750px)' href='styles/mobile.css' />
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />
<link rel="preload" as="image" href="logo.svg" media="(max-width: 750px)">
<link rel="preload" as="image" href="assets/bite.webp" media="(min-width: 751px)">
<script>
// advertisment mock
const initAd = () => {
const adSpace = document.querySelector('.main__advertising');
const gif = '<div style="width:400px;max-width:100%;"><div style="height:0;padding-bottom:52.4%;position:relative;"><iframe width="500" height="262" style="position:absolute;top:0;left:0;width:100%;height:100%;" frameBorder="0" src="https://imgflip.com/embed/6wy03z"></iframe></div></div>';
setTimeout(() => adSpace.innerHTML = gif, 3000);
};
window.addEventListener('load', () => {
initAd();
});
</script>
<title>The Rum Diary</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, minimum-scale=1.0" />
</head>
<body>
<div id="cookie-notice"></div>
<a id='skip-nav' class='skiplinks__base screenreader-text' href='#main-content'>
Skip to Content
</a>
<header class="header__base">
<div class="header__content">
<a class="header__logo" href="#">
<img
class="header__image"
src="./logo.svg"
alt="The Rum Diary"
height="130"
width="250">
</a>
<nav class="header__navigation">
<ul class="navigation__list">
<li class="navigation__item">
<a class="navigation__link" href="#">
Articles
</a>
</li>
<li class="navigation__item">
<a class="navigation__link" href="#">
About
</a>
</li>
<li class="navigation__item">
<a class="navigation__link" href="#">
Contact
</a>
</li>
</ul>
</nav>
</div>
</header>
<main class="main__base" id="main-content">
<div class="main__advertising"></div>
<h1 class="main__title visually-hidden" id="page-title">The Rum Diary Homepage</h1>
<div class="main__content" role="main">
<div class="main__news main__section">
<p id="breaking-news" width="100%" direction="left" style="line-height: 30px;background-color: darkred;color: white;"></p>
</div>
<section class="main__hero main__section">
<a class="hero__teaser div1" href="fake-link.html" aria-label="Local restaurants finally optimising time to first bite">
<img
src="assets/bite.webp"
alt="Person taking a bite of taco">
<div class="hero__teaserText">Local restaurants finally optimising time to first bite</div>
</a>
<a class="hero__teaser div2" href="fake-link.html" aria-label="Top 10 waterfalls to analyse this week">
<img
src="https://images.unsplash.com/photo-1432405972618-c60b0225b8f9?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&h=400&q=70"
class="hero__img"
alt="Waterfall in the woods">
<div class="hero__teaserText">Top 10 waterfalls to analyse this week</div>
</a>
<a class="hero__teaser div3" href="fake-link.html" aria-label="Bouncing rates increased signifincantly last week">
<img
src="https://images.unsplash.com/photo-1646271912756-44f11896cfea?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=393q=70"
class="hero__img"
alt="Child jumping on a trampoline">
<div class="hero__teaserText">Bouncing rates increased signifincantly last week</div>
</a>
</section>
<link rel="stylesheet" href="styles/components/teaser.css" />
<section class="main__teasers main__section">
<h2 class="visually-hidden">News</h2>
<ul class="teaser__list">
<li class="teaser__item">
<article class="teaser__base">
<h3 class="teaser__title"><a href="/mock-link-to-article.html">First Party</a></h3>
<img
src="https://images.unsplash.com/photo-1631857455684-a54a2f03665f?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=355&q=70"
class="teaser__image"
alt="Many cakes on a table"
loading="lazy">
<p class="teaser__text"></p>
</article>
</li>
<li class="teaser__item">
<article class="teaser__base">
<h3 class="teaser__title"><a href="/mock-link-to-article.html">Second Party</a></h3>
<img
src="https://images.unsplash.com/photo-1519671482749-fd09be7ccebf?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=355&q=70"
class="teaser__image"
alt="People toasting with wine glasses"
loading="lazy">
<p class="teaser__text"></p>
</article>
</li>
<li class="teaser__item">
<article class="teaser__base">
<h3 class="teaser__title"><a href="/mock-link-to-article.html">Third Party</a></h3>
<img
src="https://images.unsplash.com/photo-1496024840928-4c417adf211d?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=355&q=70"
class="teaser__image"
alt="People throwing color powder in a disco club"
loading="lazy">
<p class="teaser__text"></p>
</article>
</li>
</ul>
</section>
<section class="main__weather main__section">
<h2 class="visually-hidden">Weather forecast</h2>
<div id="ww_26333c1387725" v='1.3' loc='auto' a='{"t":"responsive","lang":"en","ids":[],"font":"Arial","sl_ics":"one","sl_sot":"celsius","cl_bkg":"#0288D1","cl_font":"#FFFFFF","cl_cloud":"#FFFFFF","cl_persp":"#FFFFFF","cl_sun":"#FFC107","cl_moon":"#FFC107","cl_thund":"#FF5722","sl_tof":"5","cl_odd":"#0000000a"}'><a href="https://weatherwidget.org/ja/" id="ww_26333c1387725_u" target="_blank">天気 ホームページ 埋め込み</a> weatherwidget.org</div><script async src="https://app1.weatherwidget.org/js/?id=ww_26333c1387725"></script>
</section>
<link rel="stylesheet" href="styles/components/video.css" />
<section class="main__video main__section">
<h2 class="visually-hidden">Video and feedback form</h2>
<div class="video__base" id="player">
<img class="video__placeholder"
src="assets/video-placeholder.webp"
alt="Play video about Lighthouses"
width=560
height=315
tabindex=0
loading="lazy">
</div>
<link rel="stylesheet" href="styles/components/form.css" />
<form class="form__base">
<div class="form__intro">Something about lighthouses, describing point of the video we are putting here to prove how awesome they really are, no.</div>
<div class="from__control">
<label for="name" class="form__label">Name:</label>
<input id="name" type="text" autocomplete="name">
</div>
<div class="from__control">
<label for="text" class="form__label">Please share with us why do you think lighthouses are awesome: </label><br>
<textarea id="text"></textarea>
</div>
<button class="from__button" type="submit" onclick="alert('Submitting using way too much JavaScript...')">Submit</button>
</form>
</section>
</div>
</main>
<link rel="stylesheet" href="styles/components/disclaimer.css" />
<aside class="disclaimer__base">
<p class="disclaimer__text">
This site is made for the purpose of web performance and accessibility testing challeng and it is full of bad practices on purpose.
</p>
</aside>
<link rel="stylesheet" href="styles/components/footer.css" />
<footer class="footer__base">
<div class="footer__content">
<ul class="footer__menu">
<li><a href="fake-link.html" class="footer__link">About Us</a></li>
<li><a href="https://www.netcentric.biz/legal/imprint.html" class="footer__link">Imprint</a></li>
<li><a href="https://www.netcentric.biz/legal/privacy.html" class="footer__link">Privacy</a></li>
</ul>
<div class="footer__sponsor">Powered by <a href="https://www.netcentric.biz/" class="footer__link">Cognizant Netcentric</a></div>
</div>
</footer>
<script src="script/app.js" defer></script>
<script src="script/a11y.js" defer></script>
<script src="script/video.js" defer></script>
</body>