-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnewtab.html
49 lines (45 loc) · 1.24 KB
/
newtab.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
<!DOCTYPE html>
<html>
<head>
<title>New Tab</title>
<link rel="icon" href="icon_128.png" type="image/x-icon" />
<link rel="stylesheet" href="normalize.css">
<style>
h1 {
font-size: 120px;
font-family: 'Helvetica Neue', 'Arial', sans-serif;
font-weight: 900;
text-align: center;
text-shadow: 0 0 6px #000000;
color: white;
}
body {
background: #C02425; /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #F0CB35, #C02425); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #F0CB35, #C02425); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
.container {
display: flex;
height: 100vh;
align-items: center;
justify-content: center;
}
@media (max-width: 900px) {
h1 {
font-size: 80px;
}
}
@media (max-width: 600px) {
h1 {
font-size: 64px;
}
}
</style>
</head>
<body>
<div class="container">
<h1><span id="name"></span> is<br><span id="age"></span><br>years old</h1>
</div>
<script src="counter.js"></script>
</body>
</html>