-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
106 lines (99 loc) · 4.21 KB
/
index.html
File metadata and controls
106 lines (99 loc) · 4.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PriceCompare - Сравнение цен на доставку</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header>
<nav>
<div class="logo">
<a href="/">Катя</a>
</div>
<ul class="nav-links">
<li><a href="#search">Поиск</a></li>
<li><a href="#compare">Сравнение</a></li>
<li><a href="#alerts">Уведомления</a></li>
</ul>
<div class="user-account">
<a href="#login">Войти</a>
</div>
</nav>
</header>
<main>
<section id="search-section" role="search">
<h1>Найдите лучшие цены</h1>
<input type="text" id="search-input" placeholder="Введите название продукта...">
<button id="search-button">Искать</button>
<div class="filters">
<select id="category-filter">
<option value="">Все категории</option>
<!-- Categories will be populated here -->
</select>
<select id="brand-filter">
<option value="">Все бренды</option>
<!-- Brands will be populated here -->
</select>
<label for="min-price" class="visually-hidden">Минимальная цена</label>
<input type="number" id="min-price" placeholder="Мин. цена">
<label for="max-price" class="visually-hidden">Максимальная цена</label>
<input type="number" id="max-price" placeholder="Макс. цена">
</div>
<div id="search-results" aria-live="polite">
<!-- Search results will be displayed here -->
</div>
</section>
<section id="comparison-section">
<h2>Сравнение товаров</h2>
<div id="comparison-area" aria-live="polite">
<!-- Products for comparison will be displayed here -->
</div>
</section>
<section id="price-history-section">
<h2>История цен</h2>
<div id="price-chart-area" aria-live="polite">
<!-- Price history graph will be displayed here -->
</div>
</section>
<section id="alerts-section">
<h2>Уведомления о снижении цен</h2>
<div id="alerts-management" aria-live="polite">
<!-- Alert management UI will be here -->
</div>
</section>
<section id="user-profile-section" style="display:none;">
<h2>Профиль пользователя</h2>
<div id="favorite-products">
<h3>Избранные товары</h3>
<!-- Favorite products will be listed here -->
</div>
<div id="recommendations">
<h3>Рекомендации</h3>
<!-- Personalized recommendations will be shown here -->
</div>
</section>
</main>
<footer>
<p>© 2025 PriceCompare. Все права защищены.</p>
</footer>
<script src="js/api.js"></script>
<script src="js/ui.js"></script>
<script src="js/app.js"></script>
</body>
</html>
<!-- Login/Register Modal -->
<div id="auth-modal" class="modal" style="display:none;">
<div class="modal-content">
<span class="close" id="close-auth-modal">×</span>
<h2>Вход или регистрация</h2>
<input type="email" id="auth-email" placeholder="Email">
<input type="password" id="auth-password" placeholder="Пароль">
<button id="login-btn">Войти</button>
<button id="register-btn" class="secondary">Зарегистрироваться</button>
<p id="auth-message"></p>
</div>
</div>
<!-- Chart.js CDN for price history graph -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>