Загрузка данных
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ShrekCraft</title>
<link rel="stylesheet" href="css/home.css">
<script src="https://fontawesome.com" crossorigin="anonymous"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap" rel="stylesheet">
</head>
<body>
<header>
<img src="img/images.jpg" alt="Логотип ShrekCraft" class="logo">
<nav>
<a href="shop.html">Магазин</a>
<a href="gallery.html">Галерея</a>
<a href="about.html">О нас</a>
</nav>
<div class="right-hdr">
<a href="play.html" class="play-btn">
Играть <i class="fa-solid fa-angle-right"></i>
</a>
<a href="profile.html" class="profile-btn">
<i class="fa-solid fa-circle-user"></i> Профиль
</a>
</div>
</header>
<main>
<!-- СЕКЦИЯ 1: Главный экран -->
<section class="sec1">
<h1>ShrekCraft — лучший сервер</h1>
<p class="desc">Добро пожаловать на наш сервер!</p>
<div class="btn">
<button type="button">Купить</button>
<button type="button">Продать</button>
</div>
</section>
<!-- СЕКЦИЯ 2: Видео-блок с миниатюрами -->
<section class="sec2">
<!-- Левая колонка: Плеер и 3 миниатюры под ним -->
<div class="video-container">
<!-- Само видео с YouTube -->
<div class="main-video">
<iframe
width="100%"
height="100%"
src="https://vkvideo.ru/video-196446214_456282349"
title="ShrekCraft Video"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen>
</iframe>
</div>
<!-- 3 маленькие картинки под ним -->
<div class="thumbnails">
<div class="thumb-video">
<iframe src="https://vkvideo.ru/video-23413763_456240171" width="100%" height="100%" frameborder="0" allowfullscreen></iframe>
</div>
<div class="thumb-video">
<iframe src="https://m.vkvideo.ru/video-196446214_456259092" width="100%" height="100%" frameborder="0" allowfullscreen></iframe>
</div>
<div class="thumb-video">
<iframe src="https://vkvideo.ru/video-201326578_456252041" width="100%" height="100%" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</div>
<!-- Правая колонка: заголовок h2 и текст -->
<div class="right-cont">
<h2>Играй, если не осел</h2>
<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Illo sed voluptate. Lorem ipsum dolor sit amet consectetur adipisicing elit. Посмотрите наше видео о сервере ShrekCraft!</p>
<a href="play.html" class="btn-link">Играть</a>
</div>
</section>
<!-- СЕКЦИЯ 3: Карточки товаров -->
<section class="sec3">
<div class="card">
<img src="img/ghg.jpg" alt="Шрек 1">
<h3>Учи шрека</h3>
<button type="button">Купить</button>
</div>
<div class="card">
<img src="img/c257a938ff210daf536c23961bda4b57.jpg" alt="Шрек 2">
<h3>Учи шрека</h3>
<button type="button">Купить</button>
</div>
<div class="card">
<img src="img/ced226220e329b4deb1ffc124e7c3b62.jpg" alt="Шрек 3">
<h3>Учи шрека</h3>
<button type="button">Купить</button>
</div>
</section>
</main>
</body>
</html>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, sans-serif;
}
:root {
--primary-green: #2ecc71;
--accent-purple: #8e24aa;
--accent-purple-hover: #6a1b9a;
--accent-yellow: #fbc02d;
--text-dark: #2c3e50;
--text-light: #ffffff;
}
header {
background-color: var(--primary-green);
height: 80px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 50px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.logo {
height: 60px;
width: auto;
border-radius: 10px;
}
nav {
display: flex;
gap: 35px;
}
nav a {
color: var(--text-light);
text-decoration: none;
font-weight: bold;
font-size: 18px;
}
.right-hdr {
display: flex;
gap: 15px;
}
.play-btn, .profile-btn {
padding: 10px 20px;
border-radius: 8px;
text-decoration: none;
font-weight: bold;
display: flex;
align-items: center;
gap: 8px;
}
.play-btn {
background-color: transparent;
border: 2px solid var(--text-light);
color: var(--text-light);
}
.profile-btn {
background-color: var(--accent-yellow);
border: none;
color: #333;
}
.sec1 {
height: calc(100vh - 80px);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/images.jpg') no-repeat center center;
background-size: cover;
text-align: center;
color: var(--text-light);
padding: 20px;
}
.sec1 h1 {
font-family: 'Playfair Display', serif;
font-size: 55px;
text-transform: uppercase;
margin-bottom: 25px;
text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.8);
}
.sec1 .desc {
font-size: 22px;
margin-bottom: 35px;
}
.sec1 .btn {
display: flex;
gap: 20px;
}
.sec1 .btn button {
padding: 15px 35px;
font-size: 18px;
font-weight: bold;
cursor: pointer;
border: none;
border-radius: 8px;
background-color: var(--accent-purple);
color: var(--text-light);
}
/* ================= СЕКЦИЯ С ВИДЕО (FLEX) ================= */
.sec2 {
display: flex;
align-items: flex-start;
justify-content: center;
gap: 50px;
padding: 100px 50px;
background-color: #f9f9f9;
}
.video-container {
display: flex;
flex-direction: column;
gap: 15px;
width: 50%;
max-width: 550px;
}
.main-video {
position: relative;
width: 100%;
height: 320px;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.main-video img {
width: 100%;
height: 100%;
object-fit: cover;
}
.play-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 65px;
color: rgba(255, 255, 255, 0.85);
cursor: pointer;
}
.thumbnails {
display: flex;
justify-content: space-between;
gap: 15px;
}
.thumbnails img {
width: calc(33.33% - 10px);
height: 90px;
object-fit: cover;
border-radius: 8px;
cursor: pointer;
}
.right-cont {
width: 45%;
display: flex;
flex-direction: column;
justify-content: center;
}
.right-cont h2 {
font-family: 'Playfair Display', serif;
font-size: 42px;
color: var(--text-dark);
margin-bottom: 20px;
}
.right-cont p {
font-size: 18px;
margin-bottom: 30px;
color: #666;
line-height: 1.6;
}
.btn-link {
display: inline-block;
padding: 14px 35px;
background-color: var(--accent-yellow);
color: #333;
border-radius: 8px;
font-weight: bold;
text-decoration: none;
align-self: flex-start;
}
/* ================= КАРТОЧКИ ================= */
.sec3 {
display: flex;
justify-content: center;
gap: 40px;
padding: 100px 50px;
background-color: #ffffff;
flex-wrap: wrap;
}
.card {
background-color: #ffffff;
border: 1px solid #eaeded;
border-radius: 20px;
width: 310px;
padding: 25px;
text-align: center;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.card img {
width: 100%;
height: 220px;
object-fit: cover;
border-radius: 12px;
margin-bottom: 20px;
}
.card h3 {
font-size: 22px;
color: var(--text-dark);
margin-bottom: 20px;
}
.card button {
padding: 12px 20px;
background-color: var(--accent-purple);
color: var(--text-light);
border: none;
border-radius: 8px;
font-size: 16px;
font-weight: bold;
width: 100%;
}