first commit

This commit is contained in:
2025-10-16 17:05:26 +03:00
commit ca8cc5a986
6 changed files with 811 additions and 0 deletions

293
maket/index.html Normal file
View File

@@ -0,0 +1,293 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Мой трекер привычек</title>
<style>
/* Общие стили */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
color: #333;
background-color: #f5f5f5;
}
/* Шапка сайта */
.header {
background: linear-gradient(135deg, #4CAF50, #45a049);
color: white;
text-align: center;
padding: 40px 20px;
margin-bottom: 30px;
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.header h1 {
margin: 0;
font-size: 2.5em;
font-weight: bold;
}
.header p {
margin: 15px 0 0 0;
font-size: 1.3em;
opacity: 0.9;
}
/* Основной контент */
.main-content {
max-width: 800px;
margin: 0 auto;
padding: 0 20px;
}
/* Секция "О проекте" */
.about {
background-color: white;
padding: 30px;
border-radius: 15px;
margin-bottom: 30px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
border-left: 5px solid #4CAF50;
}
.about h2 {
color: #2c3e50;
border-bottom: 2px solid #4CAF50;
padding-bottom: 15px;
margin-bottom: 20px;
font-size: 1.8em;
}
.about p {
margin-bottom: 15px;
font-size: 1.1em;
color: #555;
}
.about ul {
list-style: none;
padding-left: 0;
}
.about li {
padding: 12px 0;
font-size: 1.1em;
border-bottom: 1px solid #eee;
transition: transform 0.2s ease;
}
.about li:hover {
transform: translateX(10px);
}
.about li:last-child {
border-bottom: none;
}
/* Секция с примерами привычек */
.habits-examples {
margin-bottom: 40px;
}
.habits-examples h2 {
color: #2c3e50;
text-align: center;
margin-bottom: 35px;
font-size: 1.8em;
position: relative;
}
.habits-examples h2::after {
content: '';
display: block;
width: 100px;
height: 3px;
background: #4CAF50;
margin: 10px auto;
border-radius: 2px;
}
.habit-card {
background: white;
border: 2px solid #e8f5e8;
border-radius: 12px;
padding: 25px;
margin-bottom: 20px;
box-shadow: 0 3px 15px rgba(0,0,0,0.08);
transition: all 0.3s ease;
cursor: pointer;
}
.habit-card:hover {
transform: translateY(-5px);
box-shadow: 0 5px 20px rgba(0,0,0,0.15);
border-color: #4CAF50;
}
.habit-card h3 {
margin: 0 0 12px 0;
color: #4CAF50;
font-size: 1.4em;
display: flex;
align-items: center;
gap: 10px;
}
.habit-card p {
margin: 0;
color: #666;
font-size: 1.1em;
line-height: 1.5;
}
/* Подвал */
.footer {
background-color: #2c3e50;
color: white;
text-align: center;
padding: 25px;
margin-top: 50px;
border-top: 5px solid #4CAF50;
}
.footer p {
margin: 0;
font-size: 1.1em;
}
/* Адаптивность */
@media (max-width: 768px) {
.header h1 {
font-size: 2em;
}
.header p {
font-size: 1.1em;
}
.main-content {
padding: 0 15px;
}
.about, .habit-card {
padding: 20px;
}
}
@media (max-width: 480px) {
.header {
padding: 30px 15px;
}
.header h1 {
font-size: 1.8em;
}
.habit-card h3 {
font-size: 1.2em;
}
}
</style>
</head>
<body>
<!-- Шапка сайта -->
<header class="header">
<h1>🚀 Мой трекер привычек</h1>
<p>Становись лучше каждый день!</p>
</header>
<!-- Основное содержание -->
<main class="main-content">
<!-- Секция "О проекте" -->
<section class="about">
<h2>О чем этот проект?</h2>
<p>Этот трекер поможет тебе формировать полезные привычки и отслеживать свой прогресс на пути к лучшей версии себя!</p>
<p>Основные возможности:</p>
<ul>
<li>✅ Отслеживать свои привычки ежедневно</li>
<li>📊 Видеть статистику и прогресс за неделю/месяц</li>
<li>🎯 Ставить цели и достигать их</li>
<li>📈 Анализировать свои успехи и области для роста</li>
<li>👥 Делиться результатами с друзьями</li>
</ul>
</section>
<!-- Секция с примерами привычек -->
<section class="habits-examples">
<h2>Примеры привычек для отслеживания</h2>
<div class="habit-card">
<h3>💧 Пить воду</h3>
<p>8 стаканов воды в день для поддержания водного баланса и здоровья организма</p>
</div>
<div class="habit-card">
<h3>📚 Читать</h3>
<p>20 минут чтения в день для постоянного обучения и развития мышления</p>
</div>
<div class="habit-card">
<h3>🏃 Физическая активность</h3>
<p>30 минут упражнений в день для поддержания формы и энергии</p>
</div>
<div class="habit-card">
<h3>🎯 Медитация</h3>
<p>10 минут медитации утром для ясности ума и снижения стресса</p>
</div>
<div class="habit-card">
<h3>✍️ Вести дневник</h3>
<p>5 минут вечером для рефлексии и планирования следующего дня</p>
</div>
<div class="habit-card">
<h3>🌿 Здоровый сон</h3>
<p>7-8 часов качественного сна для восстановления сил и продуктивности</p>
</div>
</section>
</main>
<!-- Подвал -->
<footer class="footer">
<p>© 2024 Мой трекер привычек. Сделано с ❤️ для вашего развития</p>
</footer>
<script>
// Простой скрипт для интерактивности карточек
document.addEventListener('DOMContentLoaded', function() {
const habitCards = document.querySelectorAll('.habit-card');
habitCards.forEach(card => {
card.addEventListener('click', function() {
this.style.backgroundColor = '#f0f9f0';
setTimeout(() => {
this.style.backgroundColor = 'white';
}, 300);
});
});
// Добавляем анимацию появления элементов при загрузке
const elements = document.querySelectorAll('.about, .habit-card');
elements.forEach((element, index) => {
element.style.opacity = '0';
element.style.transform = 'translateY(20px)';
setTimeout(() => {
element.style.transition = 'all 0.6s ease';
element.style.opacity = '1';
element.style.transform = 'translateY(0)';
}, index * 200);
});
});
</script>
</body>
</html>