Skip to content

Instantly share code, notes, and snippets.

@Grimitch
Created June 3, 2025 22:02
Show Gist options
  • Save Grimitch/9f2a3c47811df3ec92fc014f3f41d4a7 to your computer and use it in GitHub Desktop.
Save Grimitch/9f2a3c47811df3ec92fc014f3f41d4a7 to your computer and use it in GitHub Desktop.
Index.html
<!DOCTYPE html>
<html lang="uk">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Сайт класу</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<h1>Вітаємо на сайті 9-Б класу</h1>
<p>Наша мета — навчатися з інтересом і радістю!</p>
</header>
<section class="about">
<h2>Про нас</h2>
<p>Ми — дружний колектив учнів, що разом навчаються, розвиваються й підтримують одне одного.</p>
<img src="class_photo.jpg" alt="Фото класу">
</section>
<section class="students">
<h2>Наші учні</h2>
<div class="student-card">
<img src="student1.jpg" alt="Ім'я учня">
<h3>Кирило О.</h3>
<p>Улюблений предмет: Математика</p>
</div>
<div class="student-card">
<img src="student2.jpg" alt="Ім'я учениці">
<h3>Максим П.</h3>
<p>Улюблений предмет: Фіз-ра</p>
</div>
</section>
<section class="contact">
<h2>Контакти</h2>
<p>Email: class9bg4@gmail.com</p>
<p>Адреса школи: вул. Дерібасовська 19 Одеса Гімназія №4</p>
</section>
<footer>
<p>© 2025 Клас 9-Б. Усі права захищені.</p>
</footer>
</body>
</html>
style.css
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background: #f4f4f4;
color: #333;
}
header {
background: #0088cc;
color: white;
text-align: center;
padding: 2em 1em;
}
header h1 {
margin: 0;
}
section {
padding: 2em;
max-width: 900px;
margin: auto;
}
.about img {
max-width: 100%;
height: auto;
margin-top: 1em;
border-radius: 10px;
}
.students {
display: flex;
flex-wrap: wrap;
gap: 20px;
justify-content: center;
}
.student-card {
background: white;
padding: 1em;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
width: 200px;
text-align: center;
}
.student-card img {
width: 100%;
border-radius: 50%;
height: 150px;
object-fit: cover;
}
footer {
text-align: center;
padding: 1em;
background: #ddd;
margin-top: 2em;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment