Skip to content

Commit c22b1c0

Browse files
author
Ivan Ivanov
committed
add header
1 parent 794cdbb commit c22b1c0

File tree

2 files changed

+65
-2
lines changed

2 files changed

+65
-2
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<div id="loading"></div>
1515

1616
<header role="banner">
17-
17+
<h1>JS.Next Reference</h1>
1818
</header>
1919

2020
<main role="main">
@@ -23,7 +23,7 @@
2323
</main>
2424

2525
<footer role="contentinfo">
26-
26+
2727
</footer>
2828

2929
<script src="./scripts/jquery.min.js"></script>

styles/main.css

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ html {
1010
body {
1111
background: rgb(46, 46, 44);
1212
color: rgb(248, 220, 61);
13+
border-top: 1em solid rgb(248, 220, 61);
14+
}
15+
16+
::selection {
17+
color: white;
18+
background: rgb(248, 220, 61);
1319
}
1420

1521
#loading {
@@ -20,6 +26,63 @@ body {
2026
background-size: 100% 100%;
2127
}
2228

29+
[role="banner"] h1,
30+
[role="main"] h2 {
31+
font-weight: 700;
32+
text-transform: uppercase;
33+
}
34+
35+
[role="banner"] {
36+
margin: 0 auto;
37+
max-width: 1500px;
38+
text-align: center;
39+
}
40+
41+
[role="banner"] h1 {
42+
font-size: 2.8em;
43+
letter-spacing: -0.03em;
44+
line-height: 0.9;
45+
text-transform: uppercase;
46+
color: white;
47+
text-transform: uppercase;
48+
background: -webkit-linear-gradient(white, rgb(248, 220, 61));
49+
-webkit-background-clip: text;
50+
-webkit-text-fill-color: transparent;
51+
52+
transition: font-size 0.5s;
53+
}
54+
55+
@media (min-width: 320px) {
56+
[role="banner"] h1 {
57+
font-size: 3.6em;
58+
}
59+
}
60+
61+
@media (min-width: 420px) {
62+
[role="banner"] h1 {
63+
font-size: 4.8em;
64+
}
65+
}
66+
67+
@media (min-width: 580px) {
68+
[role="banner"] h1 {
69+
font-size: 5.6em;
70+
}
71+
}
72+
73+
@media (min-width: 650px) {
74+
[role="banner"] h1 {
75+
font-size: 6.2em;
76+
}
77+
}
78+
79+
80+
@media (min-width: 850px) {
81+
[role="banner"] h1 {
82+
font-size: 7.5em;
83+
}
84+
}
85+
2386
[role="main"] {
2487
margin: 0 auto;
2588
max-width: 850px;

0 commit comments

Comments
 (0)