From ad446c1129bbe481a08219e958cd9c52c0d2c7eb Mon Sep 17 00:00:00 2001 From: Jakob Ornysh Date: Tue, 8 Apr 2025 17:49:41 +0500 Subject: [PATCH 1/6] 1 --- index.html | 9 ++++++++- styles.css | 30 ++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 846cf93..6bca683 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,14 @@ - +
+
+ +
+
+ +
+
\ No newline at end of file diff --git a/styles.css b/styles.css index e69de29..0f337f1 100644 --- a/styles.css +++ b/styles.css @@ -0,0 +1,30 @@ +.logo-container { + display: flex; + gap: 20px; + margin: 20px; +} + +.logo-box { + width: 100px; + height: 100px; + border: 1px solid #ccc; + display: flex; + justify-content: center; + align-items: center; + overflow: hidden; + position: relative; +} + +.logo { + max-width: 100%; + max-height: 100%; + object-fit: contain; +} + +.logo-2 { + transform: scale(0.9); +} + +.logo-5 { + transform: scale(0.85); +} \ No newline at end of file From 277272126fa29841f529154a518fbc509f932412 Mon Sep 17 00:00:00 2001 From: ElizavetaShikhova Date: Tue, 8 Apr 2025 17:54:12 +0500 Subject: [PATCH 2/6] second task done --- index.html | 11 +++++++++++ styles.css | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/index.html b/index.html index 6bca683..2f20203 100644 --- a/index.html +++ b/index.html @@ -14,6 +14,17 @@ + + + \ No newline at end of file diff --git a/styles.css b/styles.css index 0f337f1..1ae1ae7 100644 --- a/styles.css +++ b/styles.css @@ -27,4 +27,50 @@ .logo-5 { transform: scale(0.85); +} + + +.modal-overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.5); + display: flex; + justify-content: center; + align-items: center; + z-index: 1000; +} + +.modal { + position: relative; + width: 640px; + background-color: white; + border-radius: 5px; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); + padding: 20px; +} + +.modal-close { + position: absolute; + top: 10px; + right: 10px; + font-size: 24px; + border: none; + background: none; + cursor: pointer; + padding: 0; + line-height: 1; + width: 30px; + height: 30px; + border-radius: 50%; +} + +.modal-close:hover { + background-color: #f0f0f0; +} + +.modal-content { + max-width: 100%; } \ No newline at end of file From 418945f697d4b10249a6f5050aef3ec1b941a91f Mon Sep 17 00:00:00 2001 From: Jakob Ornysh Date: Tue, 8 Apr 2025 18:00:18 +0500 Subject: [PATCH 3/6] 3-4 --- index.html | 7 +++++++ index.js | 6 +++++- styles.css | 37 ++++++++++++++++++++++++++++++++++++- 3 files changed, 48 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 2f20203..74835e5 100644 --- a/index.html +++ b/index.html @@ -21,6 +21,13 @@ diff --git a/index.js b/index.js index dd50919..7ac3f5c 100644 --- a/index.js +++ b/index.js @@ -4,4 +4,8 @@ const element = document.querySelector('.myElement'); element.style.color = 'red'; element.style.width = '300px'; -*/ \ No newline at end of file +*/ + + +const element = document.querySelector('.progress-fill'); +element.style.width = '100%'; \ No newline at end of file diff --git a/styles.css b/styles.css index 1ae1ae7..cf37d2a 100644 --- a/styles.css +++ b/styles.css @@ -29,7 +29,6 @@ transform: scale(0.85); } - .modal-overlay { position: fixed; top: 0; @@ -73,4 +72,40 @@ .modal-content { max-width: 100%; +} + +.progress-container { + margin-top: 20px; + width: 100%; +} + +.progress-bar { + position: relative; + height: 30px; + background-color: #ddd; + border-radius: 4px; + overflow: hidden; +} + +.progress-fill { + position: absolute; + top: 0; + left: 0; + height: 100%; + width: 0%; + background-color: #ff0000; + transition: width 3s; +} + +.progress-text { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + color: #000; + z-index: 1; } \ No newline at end of file From 0e0c30d8e632af3adc5891850829b60345ee1111 Mon Sep 17 00:00:00 2001 From: Jakob Ornysh Date: Tue, 8 Apr 2025 18:23:57 +0500 Subject: [PATCH 4/6] 5 --- index.html | 29 +++++++++++++++++ index.js | 11 ++++++- styles.css | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 135 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 74835e5..daa6c7e 100644 --- a/index.html +++ b/index.html @@ -28,6 +28,35 @@

Модальное окно

Loading...
+ +
+
+ + +
+

Тема: «Интеграл Гамильтона как абсолютная погрешность»

+

Линейное программирование, следовательно, специфицирует расходящийся ряд. Итак, ясно, что предел функции категорически раскручивает интеграл Пуассона. Детерминант, не вдаваясь в подробности, изменяет эмпирический полином.

+
+
+ +
+ + +
+

Точка перегиба ускоряет математический анализ. Теорема Гаусса - Остроградского однородно программирует экспериментальный скачок функции, явно демонстрируя всю чушь вышесказанного.

+

Открытое множество продуцирует равновероятный двойной интеграл, дальнейшие выкладки оставим студентам в качестве несложной домашней работы.

+
+
+ +
+ + +
+

Уравнение в частных производных масштабирует аксиоматичный критерий интегрируемости, явно демонстрируя всю чушь вышесказанного. До недавнего времени считалось, что критерий интегрируемости существенно допускает ротор векторного поля.

+

Ввиду непрерывности функции f(x), расходящийся ряд проецирует ротор векторного поля. Бином Ньютона категорически поддерживает интеграл по бесконечной области. Многочлен, в первом приближении, осмысленно отображает ортогональный определитель.

+
+
+
diff --git a/index.js b/index.js index 7ac3f5c..7da21e4 100644 --- a/index.js +++ b/index.js @@ -8,4 +8,13 @@ const element = document.querySelector('.progress-fill'); -element.style.width = '100%'; \ No newline at end of file +element.style.width = '100%'; + +const closeButton = document.querySelector('.modal-close'); +closeButton.addEventListener('click', () => { + const modal = document.querySelector('.modal'); + const overlay = document.querySelector('.modal-overlay'); + + modal.classList.add('hidden'); + overlay.classList.add('hidden'); +}); \ No newline at end of file diff --git a/styles.css b/styles.css index cf37d2a..f8f95cd 100644 --- a/styles.css +++ b/styles.css @@ -40,6 +40,14 @@ justify-content: center; align-items: center; z-index: 1000; + opacity: 1; + visibility: visible; + transition: opacity 0.3s ease, visibility 0.3s ease; +} + +.modal-overlay.hidden { + opacity: 0; + visibility: hidden; } .modal { @@ -49,6 +57,14 @@ border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); padding: 20px; + opacity: 1; + transform: scale(1); + transition: opacity 0.3s ease, transform 0.3s ease; +} + +.modal.hidden { + opacity: 0; + transform: scale(0.9); } .modal-close { @@ -108,4 +124,84 @@ justify-content: center; color: #000; z-index: 1; +} + +.accordeon { + margin-top: 30px; + border: 1px solid #eee; + border-radius: 4px; + overflow: hidden; +} + +.accordeon-item { + border-bottom: 1px solid #eee; +} + +.accordeon-item:last-child { + border-bottom: none; +} + +.accordeon-toggle { + position: absolute; + opacity: 0; + z-index: -1; +} + +.accordeon-title { + display: block; + padding: 15px; + font-weight: bold; + background-color: #f5f5f5; + cursor: pointer; + position: relative; +} + +.accordeon-title::after { + content: '+'; + position: absolute; + right: 15px; + top: 50%; + transform: translateY(-50%); + font-size: 20px; + transition: none; +} + +.accordeon-toggle:checked ~ .accordeon-title::after { + content: '+'; + animation: rotate-plus 0.3s forwards; +} + +.accordeon-toggle:not(:checked) ~ .accordeon-title::after { + content: '+'; + animation: rotate-minus 0.3s forwards; +} + +.accordeon-content { + max-height: 0; + overflow: hidden; + padding: 0 15px; + transition: max-height 0.3s ease, padding 0.3s ease; +} + +.accordeon-toggle:checked ~ .accordeon-content { + max-height: 500px; + padding: 15px; +} + +@keyframes rotate-plus { + 0% { + transform: translateY(-50%) rotate(0deg); + } + 100% { + transform: translateY(-50%) rotate(135deg); + } +} + +@keyframes rotate-minus { + 0% { + transform: translateY(-50%) rotate(135deg); + } + 100% { + transform: translateY(-50%) rotate(0deg); + } } \ No newline at end of file From 0fb62317f03171c27ebb749f445d5fafd8857a8b Mon Sep 17 00:00:00 2001 From: Jakob Ornysh Date: Tue, 8 Apr 2025 18:54:56 +0500 Subject: [PATCH 5/6] Update index.js --- index.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 7da21e4..70e4ecd 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,19 @@ const closeButton = document.querySelector('.modal-close'); closeButton.addEventListener('click', () => { const modal = document.querySelector('.modal'); const overlay = document.querySelector('.modal-overlay'); - + modal.classList.add('hidden'); overlay.classList.add('hidden'); +}); + + +const logos = document.querySelectorAll('.logo'); +logos.forEach(logo => { + logo.addEventListener('click', () => { + const modal = document.querySelector('.modal'); + const overlay = document.querySelector('.modal-overlay'); + + modal.classList.remove('hidden'); + overlay.classList.remove('hidden'); + }); }); \ No newline at end of file From 2c3b239f6f80d3bc6947af9713910865fb304679 Mon Sep 17 00:00:00 2001 From: Jakob Ornysh Date: Tue, 8 Apr 2025 19:05:18 +0500 Subject: [PATCH 6/6] white "Loading..." --- index.html | 1 + index.js | 14 ++++++++++++++ styles.css | 14 ++++++++++++++ 3 files changed, 29 insertions(+) diff --git a/index.html b/index.html index daa6c7e..da2d346 100644 --- a/index.html +++ b/index.html @@ -26,6 +26,7 @@

Модальное окно

Loading...
+
Loading...
diff --git a/index.js b/index.js index 70e4ecd..983568c 100644 --- a/index.js +++ b/index.js @@ -8,8 +8,22 @@ const element = document.querySelector('.progress-fill'); +const progressBar = document.querySelector('.progress-bar'); +const whiteText = document.querySelector('.progress-text-white'); + +function updateWhiteText() { + const progressWidth = element.offsetWidth / progressBar.offsetWidth * 100; + whiteText.style.clipPath = `inset(0 ${100 - progressWidth}% 0 0)`; + + if (progressWidth < 100) { + requestAnimationFrame(updateWhiteText); + } +} + element.style.width = '100%'; +updateWhiteText(); + const closeButton = document.querySelector('.modal-close'); closeButton.addEventListener('click', () => { const modal = document.querySelector('.modal'); diff --git a/styles.css b/styles.css index f8f95cd..a5cc063 100644 --- a/styles.css +++ b/styles.css @@ -126,6 +126,20 @@ z-index: 1; } +.progress-text-white { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + display: flex; + align-items: center; + justify-content: center; + color: white; + z-index: 2; + clip-path: inset(0 100% 0 0); +} + .accordeon { margin-top: 30px; border: 1px solid #eee;