-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
204 lines (200 loc) · 3.78 KB
/
style.css
File metadata and controls
204 lines (200 loc) · 3.78 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: system-ui;
list-style: none;
}
.hero{
background: url(./home.png.png) no-repeat;
background-color: grey;
min-height: 100vh;
background-size: cover;
background-position: center;
position: relative;
}
.hero nav{
position: fixed;
top: 0;
right: 0;
width: 70%;
padding: 10px 25px;
display: flex;
align-items: center;
justify-content: space-between;
}
nav ul{
display: flex;
gap: 2rem;
padding: 10px 25px;
background-color: white;
border-radius: 1em;
}
nav ul a{
text-decoration: none;
font-size: 1em;
font-weight: bold;
color: black;
}
nav ul a:hover{
border-block-end-style: 2px solid black;
}
nav button{
padding: 2px 25px;
background-color: white;
color: black;
font-weight: bold;
border-radius: 8rem;
margin-right: 10px;
border: none;
cursor: pointer;
}
nav button:nth-child(2){
background-color: grey;
color: white;
}
nav button:hover{
box-shadow: inset 0 0 20px grey;
}
.content{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 500px;
text-align: center;
}
.content img{
width: 200px;
height: 200px;
border-radius: 50%;
border: 5px solid white;
}
.content h1{
font-size: 3rem;
color: white;
}
.content p{
font-size: 1rem;
font-weight: bold;
color: black;
background-color: rgb(225, 225, 225, 0.3);
backdrop-filter: blur(20px);
padding: 3px 5px;
border-radius: 3px;
}
aside{
max-width: 30%;
min-height: 100vh;
padding: 10px 5px;
background-color: rgb(0, 0, 0, 0.2);
backdrop-filter: blur(5px);
position: fixed;
top: 3%;
left: 0;
box-shadow: -8px 0 16px rgb(225, 225, 225, 0.3);
border-radius: 5rem;
}
aside h1{
background-color: rgb(225, 225, 225, 0.3);
padding: 14px 10px;
border-radius: .5rem;
color: white;
}
aside li{
padding: 15px 20px;
border-block-start: 1px solid black;
border-block-end: 1px solid grey;
cursor: pointer;
transition: .5s;
}
aside li:hover{
padding: 15px 45px;
}
aside a{
color: white;
margin-left: 10px;
text-decoration: none;
}
aside a i{
margin-right: 30px;
font-size: 2rem;
}
/* Media Queries for responsiveness */
@media (max-width: 1200px) {
.hero nav {
width: 90%;
}
.content {
width: 70%;
}
}
@media (max-width: 992px) {
nav ul {
flex-direction: column;
gap: 1rem;
}
nav ul a {
font-size: 0.9em;
}
.content {
width: 80%;
}
}
@media (max-width: 768px) {
.hero nav {
width: 100%;
padding: 10px;
}
nav ul {
width: 100%;
padding: 5px;
gap: 0.5rem;
}
nav button {
padding: 2px 15px;
margin-right: 5px;
}
.content {
width: 90%;
}
.content h1 {
font-size: 2rem;
}
.content img {
width: 150px;
height: 150px;
}
}
@media (max-width: 576px) {
.hero nav {
flex-direction: column;
align-items: flex-start;
}
nav ul {
width: 100%;
flex-direction: column;
padding: 0;
}
nav ul a {
padding: 10px;
text-align: center;
width: 100%;
}
nav button {
width: 100%;
margin: 5px 0;
}
.content {
width: 100%;
padding: 10px;
}
aside {
max-width: 100%;
padding: 10px;
border-radius: 0;
}
aside li {
padding: 10px;
}
}