forked from zero-to-mastery/JS_Fun_Practice
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
114 lines (97 loc) · 1.71 KB
/
Copy pathindex.css
File metadata and controls
114 lines (97 loc) · 1.71 KB
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
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: inherit;
}
:root {
--color-primary: #356F13;
}
html {
font-size: 62.5%; /*1rem = 10px*/
}
body {
box-sizing: border-box;
font-family: 'Arimo', sans-serif;
}
p {
color: #356F13;
}
.header {
height: 100vh;
position: relative;
padding-top: 2rem;
padding-bottom: 15rem;
display: flex;
flex-flow: column;
justify-content: space-between;
align-items: center;
}
.header::after {
content: "";
background-image: url("https://images.unsplash.com/photo-1515041219749-89347f83291a?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1267&q=80");
background-size: cover;
background-position: top;
opacity: 0.2;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: -1;
}
.header__heading {
color: var(--color-primary);
font-size: 2rem;
text-align: center;
padding: 2rem;
animation: .4s ease-out slideInFromLeft;
}
@keyframes slideInFromLeft {
0% {
opacity: 0;
transform: translateX(-10rem);
}
80% {
transform: translateX(1rem);
}
100% {
opacity: 1;
transform: translate(0);
}
}
.header__box {
color: #555;
font-size: 1.8rem;
}
.header__box-text {
padding-bottom: 2rem;
}
.header__heading-2 {
padding-bottom: 1.5rem;
}
.btn,
.btn:link,
.btn:visited {
border-radius: 100px;
border: none;
padding: 1.5rem;
background-color: var(--color-primary);
cursor: pointer;
transition: all .2s;
font-size: 1.8rem;
color: #fff;
outline: none;
}
.btn:hover {
transform: translateY(-3px);
box-shadow: 0 1rem 2rem rgba(0,0,0, .5);
}
.btn:active {
transform: translateY(-1px);
box-shadow: 0 .5rem 1rem rgba(0,0,0, .2);
}
.header__link {
text-decoration: none;
}