-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
319 lines (282 loc) · 6.82 KB
/
Copy pathstyle.css
File metadata and controls
319 lines (282 loc) · 6.82 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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
@font-face {
font-family: "JetBrains Mono";
src: url("src/JetBrains_Mono/JetBrainsMono-Medium.ttf");
}
/* Устанавливаю основной шрифт и цвет фона страницы */
body {
font-family: "JetBrains Mono";
text-align: center;
padding: 0;
background-color: #222526;
display: flex;
flex-direction: column;
min-height: 100vh; /* Высота экрана */
margin: 0;
z-index: 1;
}
/* Настраиваю шапку */
header {
z-index: 1;
background-color: #353a3e;
color: white;
padding: 5px;
border-bottom-right-radius: 20px;
border-bottom-left-radius: 20px;
text-align: center;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
header h1, p {
margin: 1px;
color: #bfbfbf;
}
header h1 {
margin-right: 20px;
font-size: 70px;
margin-top: 10px;
text-shadow: 3px 11px 0px wheat;
}
/* Контейнер для центрирования заголовка и иконок */
.header-content {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px; /* Отступы между элементами */
position: relative;
}
.buttons {
margin-top: 10px;
margin-right: 1500px;
display: flex;
align-items: center;
justify-content: left;
gap: 50px;
}
.about_me {
display: inline-block;
box-sizing: border-box;
outline: none;
border: 1px solid #4c4f54;
border-radius: 50px;
height: 46px;
line-height: 46px;
font-size: 20px;
font-weight: 600;
width: 200px;
text-decoration: none;
color: white;
font-family: "JetBrains Mono";
background-color: transparent;
box-shadow: 0 4px 6px rgb(65 132 144 / 10%), 0 1px 3px rgb(0 0 0 / 8%);
cursor: pointer;
user-select: none;
appearance: none;
touch-action: manipulation;
vertical-align: top;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about_me:focus-visible {
border: 1px solid #4c51f9;
outline: none;
}
.about_me:hover {
transform: translateY(-1px) scale(1); /* Поднимаем на 10px */
box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.3); /* Добавляем тень */
}
.about_me:active {
background-color: #808080;
}
.contacts {
display: inline-block;
box-sizing: border-box;
outline: none;
border: 1px solid #4c4f54;
border-radius: 50px;
height: 46px;
line-height: 46px;
font-size: 20px;
font-weight: 600;
width: 200px;
text-decoration: none;
color: white;
font-family: "JetBrains Mono";
background-color: transparent;
box-shadow: 0 4px 6px rgb(65 132 144 / 10%), 0 1px 3px rgb(0 0 0 / 8%);
cursor: pointer;
user-select: none;
appearance: none;
touch-action: manipulation;
vertical-align: top;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contacts:focus-visible {
border: 1px solid #4c51f9;
outline: none;
}
.contacts:hover {
transform: translateY(-1px) scale(1); /* Поднимаем на 10px */
box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.3); /* Добавляем тень */
}
.contacts:active {
background-color: #808080;
}
/* Настраиваю блок с проектами */
main h3 {
font-weight: 500;
text-align: center;
font-size: 55px;
margin-top: 10px;
margin-bottom: 1px;
color: #838282;
z-index: 1;
}
.project h3 {
margin: 0;
text-align: unset;
}
.project a {
font-size: 20px;
position: relative;
color: gray;
text-decoration: none;
cursor: pointer;
}
.aproject:after {
content: "";
display: block;
position: absolute;
right: 0;
bottom: -3px;
width: 0;
height: 2px; /* Высота линии */
background-color: gray; /* Цвет подчеркивания при исчезании линии*/
transition: width 0.5s; /* Время эффекта */
}
.aproject:hover:after {
content: "";
width: 100%;
display: block;
position: absolute;
left: 0;
bottom: -3px;
height: 2px; /* Высота линии */
background-color: gray; /* Цвет подчеркивания при появлении линии*/
transition: width 0.5s; /* Время эффекта */
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(50px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.project {
position: relative;
opacity: 0; /* Скрываем изначально */
animation: slideUp 1s ease-out forwards;
margin: 20px auto;
padding: 20px;
text-align: center;
max-width: 600px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 20px;
background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), var(--bg-image);
background-size: 100%;
background-position: center 5%;
color: #4c4f54;
border: solid;
transition: transform 0.3s ease, box-shadow 0.3s ease;
z-index: 1;
}
.project:hover {
transform: translateY(-10px) scale(20); /* Поднимаем на 10px */
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8); /* Добавляем тень */
}
/* Настраиваю "подвал" сайта */
footer {
margin-top: auto;
padding: 15px;
background-color:#353a3e;
color: white;
z-index: 1;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
}
/* Modal Styles */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 2; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
opacity: 0;
transition: opacity 0.3s ease;
}
/* Modal Content */
.modal-content {
background-color: rgba(0, 0, 0, 0.4);
margin: 15% auto; /* 15% from the top and centered */
padding: 20px;
border: 2px solid #888;
width: fit-content; /* Could be more or less, depending on screen size */
text-align: center;
border-radius: 10px;
position: relative;
}
/* Close Button */
.close-button {
color: #aaa;
position: absolute;
top: 10px;
right: 25px;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}
.close-button:hover,
.close-button:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
/* Modal animation classes */
.modal.show {
opacity: 1;
}
@media(max-width: 992px){
header h1, p {
font-size: 80px;
}
footer p {
font-size: 40px;
}
.about_me {
font-size: 50px;
width: 300px;
height: 80px;
}
.social-icons {
top: 40px;
}
.social-icons img {
width: 100px;
height: 100px;
}
.project {
max-width: 800px;
padding: 50px;
border-radius: 50px;
}
.project a {
font-size: 50px;
}
.project h3 {
font-size: 70px;
font-weight: bolder;
}
}