Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 66 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,72 @@
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!--Верстать тут-->
<div class="logo-container">
<div class="logo-wrapper">
<img src="designs/logo1.png">
</div>
<div class="logo-wrapper">
<img src="designs/logo3.jpg">
</div>
</div>
<div id="other-page">
<div class="lightbox">
<div>
<p>Lorem ipsum dolor sit amet consectetur adipisicing
elit. Quasi ipsum quae hic harum. Accusamus
voluptates vitae voluptatem excepturi veritatis
nulla voluptatum officia dignissimos doloremque
</p>

<div id="progress" class="progress">
<p>Loading...</p>


</div>
<div id="strip" class="strip">
<p>Loading...</p>

</div>
<div class="acordeon">
<div class="section">
<input type="checkbox" id="section1" class="accordion-toggle" hidden>
<label for="section1" class="section-header">Section 1</label>
<div class="section-content">
<p>Точка перегиба раскручивает тригонометрический интеграл от функции,
обращающейся в бесконечность в изолированной точке, что и требовалось доказать.
Стоит отметить, что матожидание переворачивает интеграл от функции,
обращающейся в бесконечность в изолированной точке. Представляется логичным,
что число е переворачивает анормальный ряд Тейлора. Лист Мёбиуса, исключая очевидный случай,
соответствует равновероятный лист Мёбиуса. Криволинейный интеграл, не вдаваясь в подробности,
притягивает предел последовательности.</p>
</div>
</div>

<div class="section">
<input type="checkbox" id="section2" class="accordion-toggle" hidden>
<label for="section2" class="section-header">Section 2</label>
<div class="section-content">
<p>Линейное программирование ускоряет разрыв функции. Интегрирование по частям уравновешивает неопровержимый
криволинейный интеграл. Непрерывная функция последовательно определяет возрастающий минимум.</p>
</div>
</div>

<div class="section">
<input type="checkbox" id="section3" class="accordion-toggle" hidden>
<label for="section3" class="section-header">Section 3</label>
<div class="section-content">
<p>Целое число, как следует из вышесказанного, трансформирует абсолютно сходящийся ряд.
Сходящийся ряд создает комплексный ортогональный определитель.
Однако не все знают, что непрерывная функция отрицательна.
Число е, следовательно, последовательно.</p>
</div>
</div>
</div>
</div>
<button id="close-lightbox">✖</button>
</div>

</div>
<script src="index.js"></script>
</body>
</html>
27 changes: 21 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
/*
Изменить элементу цвет и ширину можно вот так:
const closeButton = document.getElementById('close-lightbox');
closeButton.addEventListener('click', () => {
const otherPage = document.getElementById('other-page');
otherPage.style.display = "none";
})

const element = document.querySelector('.myElement');
element.style.color = 'red';
element.style.width = '300px';
*/

const strip = document.getElementById('strip');
let perc = 0;

function timePass() {
setTimeout(() => {
perc++;
strip.style.clipPath = `inset(0 ${100 - perc}% 0 0)`;
if (perc < 100) {
timePass();
}
}, 10)
}


timePass();
124 changes: 124 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
.logo-container {
display: flex;
justify-content: space-around;
}

.logo-wrapper {
display: flex;
align-items: center;
width: 100px;
height: 100px;
background-color: #e1e1e1;
overflow: hidden;
}

.logo-wrapper img {
max-width: 100%;
}

#other-page {
background-color: #9e9e9e7a;
position: fixed;
width: 100%;
height: 100%;
top:0;
}

.lightbox {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 640px;
min-height: 100px;
height: auto;
display: flex;
justify-content: center;
align-items: center;
background-color: #fff;
align-items: start;
}

.lightbox p {
margin: 50px;
}

.close-lightbox {
width: 10px;
height: 10px;
position: relative;
}

.progress {
position: relative;
background-color: #3d3d3d;
width: calc(100% - 45px);
left: 45px;
text-align: center;

}

.progress p {
position: relative;
color: black;
}

.strip {
position: absolute;
background-color: #cd1818;
width: calc(100% - 70px);
top: 156px;
left: 45px;
text-align: center;
/* clip-path: inset(0 50% 0 0); */
}


.strip p{
position: relative;
color: rgb(255, 255, 255);
margin: 0;
padding: 0;
left: 213px;
color: rgb(255, 255, 255);
width: 50%;
height: 19px;
text-align: center;
}

.acordeon {
width: 600px;
margin-left: 20px;
}

.section {
border: 1px solid #ccc;
margin-bottom: 5px;
}

.section-header {
display: block;
padding: 10px;
background-color: #f1f1f1;
cursor: pointer;
margin: 0;
}

.section-header:hover {
background-color: #e1e1e1;
}

.accordion-toggle {
display: none;
}

.section-content {
max-height: 0;
overflow: hidden;
padding: 0 10px;
}

.accordion-toggle:checked ~ .section-content {
max-height: 500px;
padding: 10px;
}