продолжай
Browse files- index.html +115 -4
index.html
CHANGED
|
@@ -204,7 +204,89 @@
|
|
| 204 |
</div>
|
| 205 |
</div>
|
| 206 |
</section>
|
| 207 |
-
<!--
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 208 |
<section class="q-py-xl" style="background: radial-gradient(circle, #fbbf24, #f59e0b, #d97706);">
|
| 209 |
<div class="container text-center">
|
| 210 |
<h2 class="font-display text-h3 text-h2-md text-red-800 q-mb-lg" style="text-shadow: 2px 2px 0px #fef3c7;">
|
|
@@ -220,7 +302,7 @@
|
|
| 220 |
</div>
|
| 221 |
</div>
|
| 222 |
</section>
|
| 223 |
-
|
| 224 |
<q-footer elevated class="bg-red-900 text-yellow-100">
|
| 225 |
<div class="container q-pt-xl q-pb-lg">
|
| 226 |
<div class="row q-col-gutter-xl">
|
|
@@ -289,6 +371,7 @@
|
|
| 289 |
name: 'ЩИ С АУТИЗМОМ',
|
| 290 |
description: 'Настоящие русские щи, томлёные 7 часов с особым вниманием к каждой капустине',
|
| 291 |
icon: 'local_cafe',
|
|
|
|
| 292 |
hover: false
|
| 293 |
},
|
| 294 |
{
|
|
@@ -296,6 +379,7 @@
|
|
| 296 |
name: 'КАША ДРУИДОВ PRO',
|
| 297 |
description: 'Злаковая смесь, которую мы перебирали 3 часа под лупой. Каждое зёрнышко на месте!',
|
| 298 |
icon: 'psychology',
|
|
|
|
| 299 |
hover: false
|
| 300 |
},
|
| 301 |
{
|
|
@@ -303,9 +387,31 @@
|
|
| 303 |
name: 'КУРИЦА В ИСТЕРИКЕ',
|
| 304 |
description: 'Цыплёнок, запечённый до идеальной температуры 74.3°C с 14 проверками термометром',
|
| 305 |
icon: 'local_fire_department',
|
|
|
|
| 306 |
hover: false
|
| 307 |
}
|
| 308 |
]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 309 |
const toggleMenu = () => {
|
| 310 |
menuOpen.value = !menuOpen.value;
|
| 311 |
};
|
|
@@ -313,13 +419,18 @@ const toggleMenu = () => {
|
|
| 313 |
onMounted(() => {
|
| 314 |
console.log('App mounted successfully');
|
| 315 |
});
|
| 316 |
-
|
| 317 |
return {
|
| 318 |
menuOpen,
|
| 319 |
menuItems,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 320 |
toggleMenu
|
| 321 |
};
|
| 322 |
-
|
| 323 |
});
|
| 324 |
|
| 325 |
app.use(Quasar, {
|
|
|
|
| 204 |
</div>
|
| 205 |
</div>
|
| 206 |
</section>
|
| 207 |
+
<!-- Calculator Section -->
|
| 208 |
+
<section class="q-py-xl bg-gradient-to-r from-yellow-50 to-red-50">
|
| 209 |
+
<div class="container">
|
| 210 |
+
<div class="text-center q-mb-xl">
|
| 211 |
+
<h2 class="font-display text-h3 text-h2-md text-red-800 q-mb-md" style="text-shadow: 2px 2px 0px #fbbf24;">
|
| 212 |
+
СКОЛЬКО СВИСТИШЬ ЗА ЕДУ?
|
| 213 |
+
</h2>
|
| 214 |
+
<p class="text-h6 text-red-700 font-bold">
|
| 215 |
+
УЗНАЙ, СКОЛЬКО ТЕБЕ ПРИДЁТСЯ ОТСВИСТЕТЬ ЗА НАШИ БЕЗУМНЫЕ БЛЮДА!
|
| 216 |
+
</p>
|
| 217 |
+
</div>
|
| 218 |
+
|
| 219 |
+
<div class="row justify-center">
|
| 220 |
+
<div class="col-12 col-md-8 col-lg-6">
|
| 221 |
+
<q-card class="bg-white q-pa-lg shadow-10 rounded-borders" style="border: 3px solid #dc2626;">
|
| 222 |
+
<q-card-section>
|
| 223 |
+
<div class="q-mb-lg">
|
| 224 |
+
<q-select
|
| 225 |
+
v-model="selectedDish"
|
| 226 |
+
:options="dishes"
|
| 227 |
+
label="ВЫБЕРИ БЛЮДО"
|
| 228 |
+
color="red-800"
|
| 229 |
+
bg-color="yellow-50"
|
| 230 |
+
filled
|
| 231 |
+
class="font-bold"
|
| 232 |
+
/>
|
| 233 |
+
</div>
|
| 234 |
+
|
| 235 |
+
<div class="q-mb-lg">
|
| 236 |
+
<q-input
|
| 237 |
+
v-model.number="quantity"
|
| 238 |
+
type="number"
|
| 239 |
+
label="СКОЛЬКО ПОРЦИЙ"
|
| 240 |
+
color="red-800"
|
| 241 |
+
bg-color="yellow-50"
|
| 242 |
+
filled
|
| 243 |
+
min="1"
|
| 244 |
+
max="100"
|
| 245 |
+
class="font-bold"
|
| 246 |
+
/>
|
| 247 |
+
</div>
|
| 248 |
+
|
| 249 |
+
<div class="q-mb-lg">
|
| 250 |
+
<q-input
|
| 251 |
+
v-model.number="distance"
|
| 252 |
+
type="number"
|
| 253 |
+
label="РАССТОЯНИЕ (км)"
|
| 254 |
+
color="red-800"
|
| 255 |
+
bg-color="yellow-50"
|
| 256 |
+
filled
|
| 257 |
+
min="1"
|
| 258 |
+
max="500"
|
| 259 |
+
class="font-bold"
|
| 260 |
+
/>
|
| 261 |
+
</div>
|
| 262 |
+
|
| 263 |
+
<div class="text-center q-mb-lg">
|
| 264 |
+
<q-btn
|
| 265 |
+
color="red-800"
|
| 266 |
+
text-color="yellow-300"
|
| 267 |
+
size="lg"
|
| 268 |
+
label="ПОСЧИТАТЬ СВИСТ"
|
| 269 |
+
@click="calculateTotal"
|
| 270 |
+
class="font-bold animate-pulse"
|
| 271 |
+
/>
|
| 272 |
+
</div>
|
| 273 |
+
|
| 274 |
+
<div v-if="totalPrice" class="text-center">
|
| 275 |
+
<h3 class="text-h4 text-weight-bold text-red-800 q-mb-sm">
|
| 276 |
+
ИТОГО: {{ totalPrice }} ₽
|
| 277 |
+
</h3>
|
| 278 |
+
<p class="text-red-700 font-bold">
|
| 279 |
+
ПЛЮС БЕСПЛАТНЫЙ СТРИМ АУТИСТА ЗА РАБОТОЙ!
|
| 280 |
+
</p>
|
| 281 |
+
</div>
|
| 282 |
+
</q-card-section>
|
| 283 |
+
</q-card>
|
| 284 |
+
</div>
|
| 285 |
+
</div>
|
| 286 |
+
</div>
|
| 287 |
+
</section>
|
| 288 |
+
|
| 289 |
+
<!-- CTA Section -->
|
| 290 |
<section class="q-py-xl" style="background: radial-gradient(circle, #fbbf24, #f59e0b, #d97706);">
|
| 291 |
<div class="container text-center">
|
| 292 |
<h2 class="font-display text-h3 text-h2-md text-red-800 q-mb-lg" style="text-shadow: 2px 2px 0px #fef3c7;">
|
|
|
|
| 302 |
</div>
|
| 303 |
</div>
|
| 304 |
</section>
|
| 305 |
+
<!-- Footer -->
|
| 306 |
<q-footer elevated class="bg-red-900 text-yellow-100">
|
| 307 |
<div class="container q-pt-xl q-pb-lg">
|
| 308 |
<div class="row q-col-gutter-xl">
|
|
|
|
| 371 |
name: 'ЩИ С АУТИЗМОМ',
|
| 372 |
description: 'Настоящие русские щи, томлёные 7 часов с особым вниманием к каждой капустине',
|
| 373 |
icon: 'local_cafe',
|
| 374 |
+
price: 890,
|
| 375 |
hover: false
|
| 376 |
},
|
| 377 |
{
|
|
|
|
| 379 |
name: 'КАША ДРУИДОВ PRO',
|
| 380 |
description: 'Злаковая смесь, которую мы перебирали 3 часа под лупой. Каждое зёрнышко на месте!',
|
| 381 |
icon: 'psychology',
|
| 382 |
+
price: 750,
|
| 383 |
hover: false
|
| 384 |
},
|
| 385 |
{
|
|
|
|
| 387 |
name: 'КУРИЦА В ИСТЕРИКЕ',
|
| 388 |
description: 'Цыплёнок, запечённый до идеальной температуры 74.3°C с 14 проверками термометром',
|
| 389 |
icon: 'local_fire_department',
|
| 390 |
+
price: 1250,
|
| 391 |
hover: false
|
| 392 |
}
|
| 393 |
]);
|
| 394 |
+
|
| 395 |
+
const dishes = [
|
| 396 |
+
{ label: 'ЩИ С АУТИЗМОМ - 890 ₽', value: 890 },
|
| 397 |
+
{ label: 'КАША ДРУИДОВ PRO - 750 ₽', value: 750 },
|
| 398 |
+
{ label: 'КУРИЦА В ИСТЕРИКЕ - 1250 ₽', value: 1250 }
|
| 399 |
+
];
|
| 400 |
+
|
| 401 |
+
const selectedDish = ref(null);
|
| 402 |
+
const quantity = ref(1);
|
| 403 |
+
const distance = ref(10);
|
| 404 |
+
const totalPrice = ref(0);
|
| 405 |
+
|
| 406 |
+
const calculateTotal = () => {
|
| 407 |
+
if (!selectedDish.value) return;
|
| 408 |
+
|
| 409 |
+
const basePrice = selectedDish.value.value * quantity.value;
|
| 410 |
+
const deliveryCost = distance.value * 50; // 50 рублей за км
|
| 411 |
+
const autismTax = basePrice * 0.15; // 15% налог на аутизм
|
| 412 |
+
|
| 413 |
+
totalPrice.value = basePrice + deliveryCost + autismTax;
|
| 414 |
+
};
|
| 415 |
const toggleMenu = () => {
|
| 416 |
menuOpen.value = !menuOpen.value;
|
| 417 |
};
|
|
|
|
| 419 |
onMounted(() => {
|
| 420 |
console.log('App mounted successfully');
|
| 421 |
});
|
|
|
|
| 422 |
return {
|
| 423 |
menuOpen,
|
| 424 |
menuItems,
|
| 425 |
+
dishes,
|
| 426 |
+
selectedDish,
|
| 427 |
+
quantity,
|
| 428 |
+
distance,
|
| 429 |
+
totalPrice,
|
| 430 |
+
calculateTotal,
|
| 431 |
toggleMenu
|
| 432 |
};
|
| 433 |
+
}
|
| 434 |
});
|
| 435 |
|
| 436 |
app.use(Quasar, {
|