-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
148 lines (128 loc) · 2.65 KB
/
style.css
File metadata and controls
148 lines (128 loc) · 2.65 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
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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--text: 1.5rem;
--head: calc(1rem + 5vw);
--bg-color: #f6b93b;
}
body {
font-family: "Poppins", sans-serif;
}
.hero-section {
min-height: 100vh;
background: url("/pexels-photo-1580267.jpeg");
background-repeat: no-repeat;
background-size: cover;
background-position: center;
position: relative;
z-index: 2;
animation: slide 1s ease-in-out;
}
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
height: 10vh;
padding: 0rem 1.5rem;
color: white;
transform: translateY(-100%);
animation: movedown 850ms ease-in 1s forwards;
}
@keyframes movedown {
from {
transform: translateY(-100%);
}
to {
transform: translateY(0%);
}
}
.navbar ul {
list-style: none;
}
.navbar ul li {
display: inline-block;
margin-left: 3rem;
font-size: var(--text);
}
.navbar ul li a {
text-decoration: none;
color: white;
border-bottom: 2px solid transparent;
}
.navbar ul li a:hover {
border-bottom: 2px solid var(--bg-color);
color: #000000;
}
.hero-text {
color: white;
height: 90vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
.hero-text {
color: white;
height: 90vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
@keyframes slide {
from {
transform: translateX(-100%);
}
to {
transform: translateX(0%);
}
}
.hero-text::before {
content: "";
position: absolute;
width: 100%;
height: 100%;
background: black;
z-index: -1;
top: 0;
opacity: 0.6;
}
.hero-text a {
color: white;
background: var(--bg-color);
font-weight: 900;
font-size: var(--text);
padding: 0.8rem 1rem;
margin: 0.8rem auto;
display: block;
text-decoration: none;
transition: opacity 250ms linear;
}
.hero-text a:hover {
opacity: 0.8;
}
.hero-text h2 {
font-size: var(--head);
}
.navbar h2:hover{
color: black;
border-bottom: 2px solid var(--bg-color);
}
.hero-text p {
font-size: 3rem;
}
.hero-text h2:hover{
color: #f6b93b;
}
.hero-text p:hover{
color: #f6b93b;
}
.hero-text a:hover{
color: black;
border-radius: 50px;
}