-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
153 lines (126 loc) · 2.15 KB
/
Copy pathmain.css
File metadata and controls
153 lines (126 loc) · 2.15 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
149
150
151
152
153
@import url("https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&display=swap");
* {
padding: 0px;
margin: 0px;
box-sizing: border-box;
}
:root {
--White: #f0f0f0;
--Red: #f9004d;
--padding: 50px;
}
body {
font-family: "Karla", serif;
font-optical-sizing: auto;
font-style: normal;
background-image: url(./assets/codergirl.jpg);
background-size: cover;
background-repeat: no-repeat;
background-position: top;
height: 100vh;
color: var(--White);
}
/* HEADER SECTION */
/* Header */
header {
/* background-color: red; */
padding: var(--padding);
}
/* nav */
nav {
display: flex;
justify-content: space-between;
/* background-color: green; */
}
/* nav - logo */
h1 {
letter-spacing: -2px;
font-weight: 400;
font-size: 30px;
}
.redText {
color: var(--Red);
}
/* nav - menu */
ul {
display: flex;
gap: 60px;
}
ul li {
list-style-type: none;
}
ul li a {
text-decoration: none;
color: var(--White);
}
ul li a:hover {
color: var(--Red);
}
/* nav - buttons */
nav div {
display: flex;
gap: 40px;
}
nav div button {
color: var(--White);
border: none;
cursor: pointer;
}
nav div button:hover {
color: var(--Red);
}
.login {
background-color: transparent;
}
.register {
background-color: black;
padding-inline: 20px;
border-radius: 5px;
}
@media screen and (max-width: 640px) {
ul,
.userButtonsContainer {
display: none;
}
}
@media screen and (min-width: 640px) {
.mobileMenu {
display: none;
}
}
/* MAIN SECTION */
main {
padding: var(--padding);
}
.hero div {
display: flex;
flex-direction: column;
gap: 10px;
max-width: 550px;
margin-top: 20px;
}
h2 {
font-size: 55px;
letter-spacing: -2px;
font-weight: 700;
}
p {
font-size: 14px;
}
.hero button {
width: 80px;
padding: 8px 0px;
font-size: 13px;
font-weight: 700;
border-radius: 5px;
border: none;
margin-top: 6px;
}
@media screen and (max-width: 640px) {
h2 {
font-size: 40px;
}
p {
font-size: 13px;
}
}