Skip to content
Closed
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.
89 changes: 89 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Лабораторная работа 2 – Вариант 25</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>

<header>
<h1>РАБОТУ ВЫПОЛНИЛ ТУДАКОВ РОДИОН</h1>
<p>ГРУППА 6212-10.05.03D</p>
</header>

<section class="task1">
<h2>Задание 1. Список с анимацией при наведении</h2>
<ul class="lang-list">
<li>Python</li>
<li>JavaScript</li>
<li>Java</li>
<li>C++</li>
<li>Go</li>
</ul>
</section>

<hr>

<section class="task2">
<h2>Задание 2. Родители и дети</h2>

<div class="parent-1">
<strong>Parent 1</strong>
<div class="child">child 1</div>
<div class="child">child 2</div>
<div class="child">child 3</div>
<div class="child">child 4</div>
</div>

<div class="parent-3">
<strong>Parent 3</strong>
<div class="child">child 1</div>
<div class="child">child 2</div>
</div>

<div class="parent-2">
<strong>Parent 2</strong>
<div class="child">child 1</div>
<div class="child">child 2</div>
</div>

<div class="parent-3">
<strong>Parent 3</strong>
<div class="child">child 1</div>
<div class="child">child 2</div>
<div class="child">child 2</div>
<div class="parent-2">
<div class="child">child 1</div>
<div class="child">child 2</div>
</div>
</div>
</section>

<hr>

<section class="task3">
<h2>Задание 3. Текст со ссылками и логотипом</h2>
<div class="text">
<p>Языки программирования — это инструменты, с помощью которых разработчики создают программное обеспечение, веб-приложения, игры, алгоритмы и многое другое. Каждый язык имеет свои особенности, синтаксис и сферу применения. Ниже представлены некоторые из наиболее известных языков:</p>

<ul>
<li><a href="https://python.org">Python</a> – высокоуровневый язык с простым синтаксисом, популярный в Data Science, веб-разработке и автоматизации.</li>
<li><a href="https://developer.mozilla.org">JavaScript</a> – основной язык для фронтенд-разработки, работает в браузерах и на сервере (Node.js).</li>
<li><a href="https://java.com">Java</a> – объектно-ориентированный язык, широко используется в корпоративных приложениях и Android-разработке.</li>
<li><a href="https://isocpp.org">C++</a> – мощный язык для системного программирования, игр и высокопроизводительных приложений.</li>
<li><a href="https://learn.microsoft.com">C#</a> – язык от Microsoft, применяется в разработке под Windows, играх (Unity) и веб-приложениях.</li>
<li><a href="https://go.dev">Go (Golang)</a> – созданный Google, язык для высоконагруженных сетевых сервисов и облачных технологий.</li>
<li><a href="https://ruby-lang.org">Ruby</a> – известен благодаря фреймворку Ruby on Rails для веб-разработки.</li>
<li><a href="https://developer.apple.com/swift">Swift</a> – язык Apple для разработки под iOS и macOS.</li>
<li><a href="https://kotlinlang.org">Kotlin</a> – современный язык, официально поддерживаемый для Android-разработки.</li>
<li><a href="https://rust-lang.org">Rust</a> – язык системного программирования с акцентом на безопасность и производительность.</li>
</ul>

<p>Это лишь малая часть из множества существующих языков, и выбор зависит от задач, которые нужно решить.</p>
</div>
</section>

</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;

}
81 changes: 81 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
body {
font-family: Arial, sans-serif;
padding: 30px;
background: #f5f5f5;
color: #333;
line-height: 1.6;
}

header {
text-align: center;
margin-bottom: 40px;
padding: 20px;
background: #2c3e50;
color: white;
border-radius: 10px;
}

header h1 {
margin: 0;
font-size: 28px;
}

header p {
margin: 10px 0 0;
font-size: 20px;
}

h2 {
color: #2c3e50;
border-bottom: 2px solid #3498db;
padding-bottom: 10px;
}

section {
margin-bottom: 50px;
}

.lang-list {
list-style: none;
padding: 0;
max-width: 350px;
}

.lang-list li {
padding: 14px 20px;
margin: 12px 0;
background: white;
border-radius: 8px;
box-shadow: 0 3px 10px rgba(0,0,0,0.1);
font-size: 18px;
transition: color 0.4s ease; /* только цвет */
}

.lang-list li:hover {
color: #e74c3c; /* плавно меняется только цвет */
}

.parent-1 .child { color: red; }

.parent-2 { color: orange; }
.parent-2 .child {
color: #b4005a;
border: 2px dashed orange;
padding: 8px 14px;
display: inline-block;
margin: 6px 4px;
}

.parent-2 ~ .parent-3,
.parent-2 ~ .parent-3 .child {
color: green !important;
}

.parent-3 .parent-2 .child {
color: purple !important;
border: none !important;
}

.parent-1, .parent-2, .parent-3 {
margin: 35px 0;
padding
Loading