146 lines
3.4 KiB
HTML
146 lines
3.4 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="ru">
|
||
<head>
|
||
<meta charset="UTF-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||
<title>ПИТОН ПОБЕДА</title>
|
||
<style>
|
||
:root {
|
||
--python-blue: #3776AB;
|
||
--python-yellow: #FFD43B;
|
||
}
|
||
|
||
body {
|
||
font-family: 'Segoe UI', Arial, sans-serif;
|
||
max-width: 1200px;
|
||
margin: 0 auto;
|
||
padding: 20px;
|
||
text-align: center;
|
||
background-color: #f8f9fa;
|
||
min-height: 100vh;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
|
||
h1 {
|
||
color: var(--python-blue);
|
||
font-size: clamp(1.5rem, 4vw, 2.5rem);
|
||
margin-bottom: 2rem;
|
||
}
|
||
|
||
.container {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
||
gap: 2rem;
|
||
margin: 2rem auto;
|
||
}
|
||
|
||
.python-facts {
|
||
background-color: white;
|
||
border-radius: 10px;
|
||
padding: 1.5rem;
|
||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||
margin: 1rem;
|
||
}
|
||
|
||
.fact-item {
|
||
margin: 1rem 0;
|
||
padding: 1rem;
|
||
background-color: #f8f9fa;
|
||
border-radius: 8px;
|
||
border-left: 4px solid var(--python-blue);
|
||
}
|
||
|
||
.image-container {
|
||
margin: 20px auto;
|
||
max-width: 120px;
|
||
}
|
||
|
||
.meme-container {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||
gap: 1rem;
|
||
margin: 2rem auto;
|
||
}
|
||
|
||
.meme-image {
|
||
max-width: 100%;
|
||
height: auto;
|
||
border-radius: 8px;
|
||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||
}
|
||
|
||
.spinning-logo {
|
||
width: 100%;
|
||
height: auto;
|
||
animation: spin 10s linear infinite;
|
||
}
|
||
|
||
@keyframes spin {
|
||
from { transform: rotate(0deg); }
|
||
to { transform: rotate(360deg); }
|
||
}
|
||
|
||
#counter-frame {
|
||
width: 100%;
|
||
max-width: 600px;
|
||
height: 80px;
|
||
border: none;
|
||
margin: 20px auto;
|
||
display: block;
|
||
}
|
||
|
||
footer {
|
||
margin-top: auto;
|
||
padding: 1rem;
|
||
background-color: var(--python-blue);
|
||
color: white;
|
||
font-size: 0.9rem;
|
||
letter-spacing: 0.5px;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
body {
|
||
padding: 10px;
|
||
}
|
||
|
||
.container {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.meme-container {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<h1>{{ now.year }} - ГОД ОЧЕРЕДНОЙ ПИТОН ПОБЕДЫ 🐍</h1>
|
||
|
||
<object id="counter-frame" data="/stream"></object>
|
||
|
||
<div class="container">
|
||
<div class="python-facts">
|
||
|
||
<div class="image-container">
|
||
<img src="/static/python.svg" alt="Python Logo" class="spinning-logo">
|
||
</div>
|
||
<h2>Почему 2025 это год Питона?</h2>
|
||
<div class="fact-item">💻 Python программисты пишут код быстрее, чем JavaScript его интерпретирует</div>
|
||
<div class="fact-item">🐍 У нас есть настоящие лямбды, а не эти ваши "=>"</div>
|
||
<div class="fact-item">⚡️ Мутируемые дефолтные аргументы? Это не баг, а фича!</div>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="meme-container">
|
||
<img src="/media/meme1.jpg" alt="Python Meme 1" class="meme-image">
|
||
</div>
|
||
|
||
<footer>
|
||
Работает на FastAPI - Без JavaScript! 🚀
|
||
</footer>
|
||
</body>
|
||
<!-- creds: санспай.рф -->
|
||
</html> |