Skip to content

Commit 9701cf3

Browse files
committed
2 parents b184cdd + cf55158 commit 9701cf3

20 files changed

Lines changed: 141 additions & 68 deletions

css/main.css

Lines changed: 52 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
--form-color: #f5fff0;
99
--button-color: white;
1010
--red: rgb(192 15 15);
11+
--back-color: white;
1112

1213
/* Основные размеры */
1314
--font-size: 16px;
@@ -69,7 +70,7 @@ h1 {
6970
background-color: var(--back-color);
7071
}
7172

72-
.visited{
73+
.visited {
7374
width: 100%;
7475
height: 100%;
7576
font-size: var(--table-font);
@@ -79,7 +80,7 @@ h1 {
7980
opacity: 0.9 !important;
8081
}
8182

82-
.hover{
83+
.hover {
8384
background-color: var(--form-color);
8485
}
8586

@@ -111,25 +112,6 @@ button[type="button"]:hover {
111112
transition: var(--transit);
112113
}
113114

114-
.back-button {
115-
position: absolute;
116-
top: 20px;
117-
left: 20px;
118-
background: var(--primary-color);
119-
color: var(--button-color);
120-
padding: 10px 20px;
121-
border: none;
122-
border-radius: var(--border-radius);
123-
cursor: pointer;
124-
text-decoration: none;
125-
transition: background-color 0.3s ease-in-out;
126-
}
127-
128-
.back-button:hover {
129-
background: var(--secondary-color);
130-
border: 2px solid var(--text-color);
131-
}
132-
133115
form {
134116
text-align: center;
135117
width: 50%;
@@ -287,3 +269,52 @@ input[type="submit"]:hover {
287269
font-size: var(--table-font);
288270
color: var(--red);
289271
}
272+
273+
.header-buttons {
274+
display: flex;
275+
flex-direction: row;
276+
justify-content: space-between;
277+
align-items: center;
278+
position: fixed;
279+
top: 0;
280+
left: 0;
281+
right: 0;
282+
padding: 0 20px;
283+
height: 60px;
284+
background: var(--back-color);
285+
border-bottom: var(--border);
286+
z-index: 1000;
287+
}
288+
289+
.back-button,
290+
#theme {
291+
display: flex;
292+
justify-content: center;
293+
align-items: center;
294+
min-width: 120px;
295+
background: var(--primary-color);
296+
color: var(--button-color);
297+
width: max-content;
298+
height: 80%;
299+
border: none;
300+
border-radius: var(--border-radius);
301+
cursor: pointer;
302+
text-decoration: none;
303+
transition: background-color 0.3s ease-in-out;
304+
font-size: var(--font-size);
305+
transition: var(--transit);
306+
}
307+
308+
.back-button:hover,
309+
#theme:hover {
310+
background: var(--secondary-color);
311+
border: 2px solid var(--text-color);
312+
}
313+
314+
.back-button {
315+
margin-right: auto; /* Прижимает к левому краю */
316+
}
317+
318+
#theme {
319+
margin-left: auto; /* Прижимает к правому краю */
320+
}

css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@
8989
width: 100%;
9090
height: 100%;
9191
cursor: pointer;
92-
}
92+
}

css/zad6.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
#correct-answer {
5858
position: absolute !important;
59-
top: 20px !important;
59+
top: 60px !important;
6060
right: 20px !important;
6161
padding: 10px 20px !important;
6262
width: 180px !important;

css/zad7.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
#correct-answer {
5858
position: absolute !important;
59-
top: 20px !important;
59+
top: 60px !important;
6060
right: 20px !important;
6161
padding: 10px 20px !important;
6262
width: 180px !important;

index.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414

1515
<body>
1616
<h1>Конференция по булевым функциям. <br />Команда WW.</h1>
17+
<div class="header-buttons">
18+
<button class="theme" id="theme"></button>
19+
</div>
1720
<div class="button-container">
1821
<!-- <button id="open-settings">
1922
<span class="material-symbols-outlined">settings</span>
@@ -25,7 +28,6 @@ <h1>Конференция по булевым функциям. <br />Кома
2528
<span class="material-symbols-outlined">signal_cellular_alt</span>
2629
</button> -->
2730
</div>
28-
<script src="js/index.js">
29-
</script>
31+
<script src="js/index.js"></script>
3032
</body>
3133
</html>

js/zad6.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const notyf = new Notyf({
22
duration: 3000,
33
position: {
4-
x: 'right',
4+
x: 'center',
55
y: 'top'
66
},
77
types: [

js/zad7.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const notyf = new Notyf({
22
duration: 3000,
33
position: {
4-
x: 'right',
4+
x: 'center',
55
y: 'top'
66
},
77
types: [

zadania/zad1.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@
1212
<title>Задача 1</title>
1313
</head>
1414
<body>
15-
<header>
16-
<a href="../zads.html" class="back-button">Назад на главную</a>
17-
</header>
15+
<div class="header-buttons">
16+
<button onclick="location.href='../zads.html'" class="back-button">
17+
К задачам
18+
</button>
19+
<button class="theme" id="theme"></button>
20+
</div>
1821
<h1>На вход — число n, на выход — булева функция от n аргументов.</h1>
1922
<form id="form">
2023
<label for="n">Введите количество элементов</label>

zadania/zad10.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@
1313
</head>
1414

1515
<body>
16-
<header>
17-
<a href="../zads.html" class="back-button">Назад на главную</a>
18-
</header>
16+
<div class="header-buttons">
17+
<button onclick="location.href='../zads.html'" class="back-button">
18+
К задачам
19+
</button>
20+
<button class="theme" id="theme"></button>
21+
</div>
1922
<h1>Игра: Предполные классы б.ф.</h1>
2023
<form id="form">
2124
<button id="generate-vector" type="button">

zadania/zad11.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,12 @@
88
<title>Задача 11</title>
99
</head>
1010
<body>
11-
<header>
12-
<a href="../zads.html" class="back-button">Назад на главную</a>
13-
</header>
11+
<div class="header-buttons">
12+
<button onclick="location.href='../zads.html'" class="back-button">
13+
К задачам
14+
</button>
15+
<button class="theme" id="theme"></button>
16+
</div>
1417
<h1>Игра: Полные системы б.ф.</h1>
1518
<form id="form">
1619
<button id="generate-vector" type="button">

0 commit comments

Comments
 (0)