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
Binary file added image1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Лабораторная работа 1 — вариант 25</title>
<link rel="stylesheet" href="style.css">
</head>
<body>

<div class="header">
<h1>Лабораторная работа №1</h1>
<p>РАБОТУ ВЫПОЛНИЛ<br>ТУДАКОВ РОДИОН<br>ГРУППА 6212-10.05.03D</p>
</div>

<h2>Задание 1</h2>
<div class="text-container">
JavaScript (сокр. JS) — мультипарадигмальный язык программирования. Поддерживает объектно-ориентированный, императивный и функциональный стили. Является реализацией спецификации ECMAScript (стандарт ECMA-262).<br><br>
JavaScript обычно используется как встраиваемый язык для программного доступа к объектам приложений. Наиболее широкое применение он находит в браузерах как язык сценариев для придания веб-страницам интерактивности.
</div>

<h2>Задание 2</h2>
<div class="image-overlay">
<img src="image1.png" alt="Картинка 1" class="image-overlay__img image-overlay__img--back">
<img src="image2.png" alt="Картинка 2" class="image-overlay__img image-overlay__img--front">
</div>

<h2>Задание 3</h2>
<div class="traffic-light">
<div class="traffic-light__light traffic-light__light--red"></div>
<div class="traffic-light__light traffic-light__light--yellow"></div>
<div class="traffic-light__light traffic-light__light--green"></div>
</div>

<h2>Задание 4</h2>
<div class="maze">
<div class="maze__cell maze__cell--start maze__cell--wall-top maze__cell--wall-right"></div>
<div class="maze__cell maze__cell--wall-top maze__cell--wall-left maze__cell--wall-right"></div>
<div class="maze__cell maze__cell--wall-top maze__cell--wall-left"></div>

<div class="maze__cell maze__cell--wall-bottom maze__cell--wall-right"></div>
<div class="maze__cell maze__cell--wall-left"></div>
<div class="maze__cell maze__cell--wall-bottom maze__cell--wall-right"></div>

<div class="maze__cell maze__cell--wall-right"></div>
<div class="maze__cell maze__cell--wall-bottom maze__cell--wall-left maze__cell--wall-right"></div>
<div class="maze__cell maze__cell--end maze__cell--wall-bottom maze__cell--wall-left"></div>
</div>

</body>
</html>
116 changes: 116 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
body {
font-family: Arial, Helvetica, sans-serif;
background-color: #f4f4f4;
padding: 20px;
line-height: 1.6;
}

.header {
text-align: center;
margin-bottom: 40px;
}

.header h1 {
margin-bottom: 10px;
color: #333;
}

.header p {
font-size: 1.4em;
font-weight: bold;
color: #222;
margin: 8px 0;
}

h2 {
text-align: center;
color: #444;
padding: 20px 0 50px;
}

.text-container {
max-width: 800px;
margin: 40px auto;
padding: 30px;
background-color: #6F4700;
color: #3D5D93;
text-align: left;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.image-overlay {
position: relative;
width: 300px;
height: 400px;
margin: 50px auto;
border: 3px solid #333;
}

.image-overlay__img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 250px;
height: auto;
}

.image-overlay__img--front {
z-index: 10;
}

.traffic-light {
width: 120px;
height: 300px;
background-color: #222;
margin: 60px auto;
padding: 15px;
border-radius: 20px;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
}

.traffic-light__light {
width: 90px;
height: 90px;
border-radius: 50%;
}

.traffic-light__light--red { background-color: #c0392b; }
.traffic-light__light--yellow { background-color: #f1c40f; }
.traffic-light__light--green { background-color: #27ae60; }

.maze {
display: grid;
grid-template-columns: repeat(3, 120px);
grid-template-rows: repeat(3, 120px);
gap: 0;
margin: 60px auto;
width: fit-content;
background-color: #ffffff;
padding: 15px;
border: 5px solid #000;
border-radius: 10px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.maze__cell {
box-sizing: border-box;
background-color: #f8f8f8;
}

.maze__cell--wall-top { border-top: 5px solid #000; }
.maze__cell--wall-right { border-right: 5px solid #000; }
.maze__cell--wall-bottom { border-bottom: 5px solid #000; }
.maze__cell--wall-left { border-left: 5px solid #000; }

.maze__cell--start,
.maze__cell--end {
background-color: #d0f0d0;
}
background-color: #dff0d8;

}