forked from netology-ds-team/sal-rab-homeworks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
191 lines (178 loc) · 7.97 KB
/
index.html
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>SUSHI-IZ-XRUSHI</title>
<!-- FONTS -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href='lib/raleway/raleway.css' rel='stylesheet' type='text/css'>
<!-- icons -->
<script src="lib/fontawesome/fontawesome.min.js"></script>
<!-- Bulma -->
<link rel="stylesheet" href="lib/bulma/bulma.min.css">
<!-- CSS -->
<link rel="stylesheet" href="src/style.css">
<!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.ico">
</head>
<body>
<div class="bg">
<nav class="navbar navbar-brand is-fixed-top" role="navigation" aria-label="main navigation">
<div class="container">
<div class="navbar-start">
<img src="src/img/logo.png">
</div>
<div class="navbar-end">
<button class="button modal-open" id="cart-btn" data-target="cart-modal">
<span class="icon is-medium">
<span class="fa-stack fa-sm">
<i class="fas fa-shopping-cart"></i>
</span>
</span>
<span id="cart-items-count">0</span>
<span id="cart-items-sum">0 ₽</span>
</button>
</div>
</div>
</nav>
<div class="navbar-brand-lower-layer"></div>
<div class="container content">
<div class="products">
<div class="columns is-multiline is-3-desktop" id="products">
<div class="is-one-quarter column">
<div class="card">
<img class="card-img" src="https://netology-ds-team.github.io/sal-rab-homeworks-sources/img/001.jpg">
<h4 class="card-title">Пицца</h4>
<p class="card-price">500.00 ₽</p>
<button class="button is-primary is-fullwidth add-in-cart"
data-id="1"
data-price="500.00"
data-title="Пицца"
>Добавить в заказ
</button>
</div>
</div>
<div class="is-one-quarter column">
<div class="card">
<img class="card-img" src="https://netology-ds-team.github.io/sal-rab-homeworks-sources/img/002.jpg">
<h4 class="card-title">Чебурек</h4>
<p class="card-price">120.00 ₽</p>
<button class="button is-primary is-fullwidth add-in-cart"
data-id="2"
data-price="120.00"
data-title="Чебурек"
>Добавить в заказ
</button>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="content">
Задание по разработке программного обеспечения (Курс "Системный аналитик".)
Разработано avsudnichnikov для Нетологии в 2021 году.
</div>
</footer>
<div class="modal" id="cart-modal">
<div class="modal-background"></div>
<button class="modal-close close is-large" aria-label="close"></button>
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">Ваш заказ</p>
</header>
<section class="modal-card-body" id="cart-detail">
Корзина пуста
</section>
<footer class="modal-card-foot">
<button class="button is-success is-fullwidth close modal-open" data-target="prepare-request">Оформить
заказ
</button>
</footer>
</div>
</div>
<div class="modal" id="prepare-request">
<div class="modal-background"></div>
<button class="modal-close close is-large" aria-label="close"></button>
<div class="modal-card">
<section class="modal-card-body">
<div class="field">
<p class="control has-icons-left">
<input class="input" type="text" id="field-name" placeholder="Ваше имя"/>
<span class="icon is-small is-left">
<i class="fas fa-user"></i>
</span>
</p>
</div>
<div class="field">
<p class="control has-icons-left">
<input class="input" type="text" id="field-address-street" placeholder="Улица"/>
<span class="icon is-small is-left">
<i class="fas fa-map-marker-alt"></i>
</span>
</p>
</div>
<div class="field">
<p class="control has-icons-left">
<input class="input" type="text" id="field-address-house" placeholder="Дом"/>
<span class="icon is-small is-left">
<i class="fas fa-map-marker-alt"></i>
</span>
</p>
</div>
<div class="field">
<p class="control has-icons-left">
<input class="input" type="text" id="field-address-entrance" placeholder="Подъезд"/>
<span class="icon is-small is-left">
<i class="fas fa-map-marker-alt"></i>
</span>
</p>
</div>
<div class="field">
<p class="control has-icons-left">
<input class="input" type="text" id="field-address-floor" placeholder="Этаж"/>
<span class="icon is-small is-left">
<i class="fas fa-map-marker-alt"></i>
</span>
</p>
</div>
<div class="field">
<p class="control has-icons-left">
<input class="input" type="text" id="field-address-flat" placeholder="Квартира"/>
<span class="icon is-small is-left">
<i class="fas fa-map-marker-alt"></i>
</span>
</p>
</div>
<div class="field">
<p class="control has-icons-left">
<input class="input" type="phone" id="field-phone" placeholder="Ваш номер телефона"/>
<span class="icon is-small is-left">
<i class="fas fa-phone"></i>
</span>
</p>
</div>
<div class="field">
<p>Вы оформляете заказ на сумму <span id="request-sum"></span></p>
</div>
</section>
<footer class="modal-card-foot">
<button class="button is-success is-fullwidth close" id="send-request-btn">Подтвердить заказ</button>
</footer>
</div>
</div>
</div>
<script src="src/modal.js"></script>
<script src="src/notification.js"></script>
<script src="src/readJsonFile.js"></script>
<script src="src/phone.js"></script>
<script src="src/Cart.js"></script>
<script src="src/createProductCards.js"></script>
<script src="src/script.js"></script>
<script src="task_1/solution.js"></script>
<script src="task_2/solution.js"></script>
<script src="task_3/solution.js"></script>
<script src="task_4/solution.js"></script>
<script src="task_final/solution.js"></script>
</body>
</html>