[html]<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Три фото-окна | Времена эпизодов</title>
<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=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Cormorant Garamond', serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 40px 20px;
}
.main-container {
max-width: 1300px;
width: 100%;
}
.page-title {
text-align: center;
margin-bottom: 60px;
}
.page-title h1 {
font-size: 30px;
font-weight: 700;
color: #000000;
letter-spacing: 1px;
font-style: italic;
font-family: 'Cormorant Garamond', serif;
}
.page-title .subtitle {
font-size: 22px;
color: #4a5568;
margin-top: 12px;
font-family: 'Cormorant Garamond', serif;
font-weight: 500;
}
.cards-container {
display: flex;
justify-content: center;
align-items: stretch;
gap: 30px;
width: 100%;
flex-wrap: nowrap;
}
.photo-card {
flex: 1;
min-width: 0;
max-width: 380px;
background: white;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
position: relative;
}
.photo-card:hover {
transform: translateY(-8px);
box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
}
.card-image {
position: relative;
overflow: hidden;
height: 260px;
}
.card-image img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s ease;
}
.photo-card:hover .card-image img {
transform: scale(1.05);
}
.card-content {
padding: 20px;
}
.card-title {
font-size: 29px;
font-weight: 700;
color: #2d3748;
margin-bottom: 10px;
font-family: 'Cormorant Garamond', serif;
line-height: 1.2;
}
.card-description {
font-size: 18px;
color: #4a5568;
line-height: 1.4;
font-family: 'Cormorant Garamond', serif;
font-weight: 500;
}
.modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.8);
z-index: 1000;
justify-content: center;
align-items: center;
animation: fadeIn 0.3s ease;
}
.modal.active {
display: flex;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.modal-content {
background: white;
border-radius: 20px;
max-width: 450px;
width: 90%;
padding: 30px;
position: relative;
animation: slideUp 0.3s ease;
}
@keyframes slideUp {
from {
transform: translateY(50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
.close-modal {
position: absolute;
top: 12px;
right: 18px;
font-size: 32px;
cursor: pointer;
color: #999;
transition: color 0.3s ease;
}
.close-modal:hover {
color: #333;
}
.modal-title {
font-size: 26px;
color: #2d3748;
margin-bottom: 20px;
padding-right: 20px;
font-family: 'Cormorant Garamond', serif;
font-weight: 700;
}
.episode-list {
list-style: none;
}
.episode-list li {
margin-bottom: 15px;
padding: 12px 15px;
background: #f7fafc;
border-radius: 10px;
transition: background 0.3s ease;
}
.episode-list li:hover {
background: #edf2f7;
}
.episode-list a {
text-decoration: none;
color: #667eea;
font-weight: 600;
display: block;
transition: color 0.3s ease;
font-family: 'Cormorant Garamond', serif;
}
.episode-list a:hover {
color: #764ba2;
}
.episode-date {
font-size: 16px;
color: #a0aec0;
display: block;
margin-bottom: 5px;
font-family: 'Cormorant Garamond', serif;
}
.episode-name {
font-size: 20px;
color: #2d3748;
font-family: 'Cormorant Garamond', serif;
font-weight: 700;
}
@media (max-width: 1100px) {
.main-container {
max-width: 1000px;
}
.card-title {
font-size: 25px;
}
.card-description {
font-size: 16px;
}
}
@media (max-width: 900px) {
.cards-container {
flex-wrap: wrap;
justify-content: center;
}
.photo-card {
max-width: 340px;
flex: 1 1 calc(33.33% - 30px);
}
.card-title {
font-size: 24px;
}
.card-description {
font-size: 16px;
}
}
@media (max-width: 700px) {
.photo-card {
flex: 1 1 100%;
max-width: 100%;
}
.page-title h1 {
font-size: 24px;
}
.page-title .subtitle {
font-size: 27px;
}
.card-title {
font-size: 27px;
}
.card-description {
font-size: 27px;
}
}
</style>
</head>
<body>
<div class="main-container">
<div class="page-title">
<h1>Memento praeteritum, vive praesens, consule futurum</h1>
<p class="subtitle">Помни о прошлом, живи настоящим, думай о будущем</p>
</div>
<div class="cards-container">
<div class="photo-card" data-time="past">
<div class="card-image">
<img src="https://upforme.ru/uploads/001c/82/f2/172/173737.jpg" alt="Прошлое">
</div>
<div class="card-content">
<h3 class="card-title">Praeteritum</h3>
<p class="card-description">То, что оставило свой отпечаток.</p>
</div>
</div>
<div class="photo-card" data-time="present">
<div class="card-image">
<img src="https://upforme.ru/uploads/001c/82/f2/172/187214.jpg" alt="Настоящее">
</div>
<div class="card-content">
<h3 class="card-title">Sic itur ad astra</h3>
<p class="card-description">То, что проживаем сейчас.</p>
</div>
</div>
<div class="photo-card" data-time="future">
<div class="card-image">
<img src="https://upforme.ru/uploads/001c/82/f2/172/719008.jpg" alt="Будущее">
</div>
<div class="card-content">
<h3 class="card-title">Amor vincit omnia</h3>
<p class="card-description">Что ждет нас в будущем.</p>
</div>
</div>
</div>
</div>
<div id="episodeModal" class="modal">
<div class="modal-content">
<span class="close-modal">×</span>
<h2 class="modal-title" id="modalTitle">Эпизоды</h2>
<ul class="episode-list" id="episodeList"></ul>
</div>
</div>
<script>
const episodesData = {
past: {
title: "Praeteritum · Прошлое",
episodes: [
{
date: "14.11.2025",
name: "αὐτός katalysis",
link: "https://kindredspirits.ru/viewtopic.php?id=661"
}
]
},
present: {
title: "Sic itur ad astra · Настоящее",
episodes: [
{
date: "10.01.2026",
name: "Carpe Demon",
link: "https://kindredspirits.ru/viewtopic.php?id=665#p122419"
}
]
},
future: {
title: "Amor vincit omnia · Будущее",
episodes: [
{
date: "Дата эпизода",
name: "Название эпизода",
link: "https://ссылка-на-эпизод"
}
]
}
};
const modal = document.getElementById('episodeModal');
const modalTitle = document.getElementById('modalTitle');
const episodeList = document.getElementById('episodeList');
const closeModal = document.querySelector('.close-modal');
function openModal(timeCategory) {
const data = episodesData[timeCategory];
if (!data) return;
modalTitle.textContent = data.title;
episodeList.innerHTML = '';
data.episodes.forEach(episode => {
const li = document.createElement('li');
const link = document.createElement('a');
link.href = episode.link;
link.target = '_blank';
link.innerHTML = `
<span class="episode-date">[${episode.date}]</span>
<span class="episode-name">${episode.name}</span>
`;
li.appendChild(link);
episodeList.appendChild(li);
});
modal.classList.add('active');
}
function closeModalWindow() {
modal.classList.remove('active');
}
document.querySelectorAll('.photo-card').forEach(card => {
card.addEventListener('click', () => {
openModal(card.getAttribute('data-time'));
});
});
closeModal.addEventListener('click', closeModalWindow);
modal.addEventListener('click', (e) => {
if (e.target === modal) closeModalWindow();
});
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape' && modal.classList.contains('active')) closeModalWindow();
});
</script>
</body>
</html>[/html]
Отредактировано Lucas Holm (15-04-2026 13:48:32)

















