Merge version_2_1781621522268 into main #1
@@ -5,15 +5,15 @@
|
||||
|
||||
:root {
|
||||
/* @colorThemes/lightTheme/grayNavyBlue */
|
||||
--background: #0a0a0a;
|
||||
--card: #1a1a1a;
|
||||
--background: #111111;
|
||||
--card: #1A1A1A;
|
||||
--foreground: #ffffff;
|
||||
--primary-cta: #ffffff;
|
||||
--primary-cta-text: #0a0a0a;
|
||||
--secondary-cta: #1a1a1a;
|
||||
--primary-cta: #FFD600;
|
||||
--primary-cta-text: #000000;
|
||||
--secondary-cta: #222222;
|
||||
--secondary-cta-text: #ffffff;
|
||||
--accent: #737373;
|
||||
--background-accent: #333333;
|
||||
--background-accent: #FFD600;
|
||||
|
||||
/* @layout/border-radius/rounded */
|
||||
--radius: 1rem;
|
||||
|
||||
@@ -1,248 +1,36 @@
|
||||
import AboutTextSplit from '@/components/sections/about/AboutTextSplit';
|
||||
import ContactCta from '@/components/sections/contact/ContactCta';
|
||||
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
|
||||
import FeaturesImageBento from '@/components/sections/features/FeaturesImageBento';
|
||||
import FeaturesMediaCarousel from '@/components/sections/features/FeaturesMediaCarousel';
|
||||
import HeroSplit from '@/components/sections/hero/HeroSplit';
|
||||
import MetricsFeatureCards from '@/components/sections/metrics/MetricsFeatureCards';
|
||||
import TestimonialRatingCards from '@/components/sections/testimonial/TestimonialRatingCards';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
// AUTO-GENERATED shell by per-section-migrate.
|
||||
// Section bodies live in ./<PageBase>/sections/<X>.tsx. Edit the section
|
||||
// files directly. Non-block content (wrappers, non-inlinable sections) is
|
||||
// preserved inline; extracted section blocks become <XSection/> refs.
|
||||
|
||||
export default function HomePage() {
|
||||
import React from 'react';
|
||||
import HeroSection from './HomePage/sections/Hero';
|
||||
import AboutSection from './HomePage/sections/About';
|
||||
import FeaturesSection from './HomePage/sections/Features';
|
||||
import ProductsSection from './HomePage/sections/Products';
|
||||
import MetricsSection from './HomePage/sections/Metrics';
|
||||
import TestimonialsSection from './HomePage/sections/Testimonials';
|
||||
import FaqSection from './HomePage/sections/Faq';
|
||||
import ContactSection from './HomePage/sections/Contact';
|
||||
|
||||
export default function HomePage(): React.JSX.Element {
|
||||
return (
|
||||
<>
|
||||
<div id="hero" data-section="hero">
|
||||
<SectionErrorBoundary name="hero">
|
||||
<HeroSplit
|
||||
tag="Luxury Street Food"
|
||||
title="Shawarma, Elevated."
|
||||
description="Мы превратили уличную еду в искусство. Только премиальные ингредиенты, авторские соусы и атмосфера современного Актобе."
|
||||
primaryButton={{
|
||||
text: "Заказать",
|
||||
href: "#contact",
|
||||
}}
|
||||
secondaryButton={{
|
||||
text: "Меню",
|
||||
href: "#products",
|
||||
}}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/black-plate-with-black-pasta-quail-eggs-dark-background_23-2148340358.jpg"
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<>
|
||||
<HeroSection />
|
||||
|
||||
<div id="about" data-section="about">
|
||||
<SectionErrorBoundary name="about">
|
||||
<AboutTextSplit
|
||||
title="Философия вкуса"
|
||||
descriptions={[
|
||||
"Мы открылись на Аль-Фараби, чтобы изменить представление о шаурме. Каждая деталь, от мяса на огне до наших соусов, создается с вниманием к совершенству.",
|
||||
"Мы не просто готовим, мы создаем гастрономический опыт в самом сердце Актобе. Ежедневно с 11:00 до 02:00.",
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<AboutSection />
|
||||
|
||||
<div id="features" data-section="features">
|
||||
<SectionErrorBoundary name="features">
|
||||
<FeaturesMediaCarousel
|
||||
tag="Наши преимущества"
|
||||
title="Качество в деталях"
|
||||
description="Почему выбирают именно нас?"
|
||||
items={[
|
||||
{
|
||||
title: "Премиум мясо",
|
||||
description: "Только отборные части туши, маринованные 24 часа.",
|
||||
buttonIcon: "Zap",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/closeup-bowl-with-ripe-black-tomatoes-kitchen-table_169016-40837.jpg",
|
||||
},
|
||||
{
|
||||
title: "Авторские рецепты",
|
||||
description: "Более 15 видов соусов, созданных нашим шеф-поваром.",
|
||||
buttonIcon: "ChefHat",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/vertical-view-delicious-cake-biscuits-with-fork-knife-black-background_140725-92002.jpg",
|
||||
},
|
||||
{
|
||||
title: "Свежесть 24/7",
|
||||
description: "Ежедневная поставка локальных овощей от фермеров.",
|
||||
buttonIcon: "Leaf",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-homemade-salad-with-dark-tableware_23-2148537161.jpg",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<FeaturesSection />
|
||||
|
||||
<div id="products" data-section="products">
|
||||
<SectionErrorBoundary name="products">
|
||||
<FeaturesImageBento
|
||||
tag="Меню"
|
||||
title="Гастрономическое разнообразие"
|
||||
description="От классики до наших фирменных позиций."
|
||||
items={[
|
||||
{
|
||||
title: "Классическая Luxe",
|
||||
description: "Фирменный рецепт с секретным соусом.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/chicken-rice-bento_1387-771.jpg",
|
||||
},
|
||||
{
|
||||
title: "Острая Стейковая",
|
||||
description: "Для тех, кто любит погорячее.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/top-view-lamb-steak-doner-flatbread-served-with-fries-pickled-cucumber_140725-2659.jpg",
|
||||
},
|
||||
{
|
||||
title: "Вегетарианская",
|
||||
description: "Свежесть и легкость в каждом укусе.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/vertical-view-healthy-vegan-salads-dried-pineapples-lavash-wraps-stained-white-surface_179666-34351.jpg",
|
||||
},
|
||||
{
|
||||
title: "BBQ Куриная",
|
||||
description: "Копченые нотки и сочная текстура.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/stacked-aesthetic-objects-still-life_23-2150230637.jpg",
|
||||
},
|
||||
{
|
||||
title: "Двойной сыр",
|
||||
description: "Больше сыра — больше удовольствия.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/top-view-little-chocolate-brownies-with-cranberries-bright-background-cake-biscuit-sweet-bake-dough_140725-22863.jpg",
|
||||
},
|
||||
{
|
||||
title: "Фирменный Хот-дог",
|
||||
description: "С крафтовой сосиской и карамелизированным луком.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/top-view-donuts-sweet-yummy-delicious-with-chocolate-multicolored-candies-brown-wooden-desk-dark-floor_140725-13380.jpg",
|
||||
},
|
||||
{
|
||||
title: "Сет для компании",
|
||||
description: "Идеально для отдыха в кругу друзей.",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/peanut-nut-shells-glass-cup_114579-16014.jpg",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<ProductsSection />
|
||||
|
||||
<div id="metrics" data-section="metrics">
|
||||
<SectionErrorBoundary name="metrics">
|
||||
<MetricsFeatureCards
|
||||
tag="Цифры говорят сами"
|
||||
title="Доверие 25+ пользователей"
|
||||
description="Средний чек 2200 тенге — доступная роскошь."
|
||||
metrics={[
|
||||
{
|
||||
value: "1500+",
|
||||
title: "Гостей в день",
|
||||
features: [
|
||||
"Лояльность",
|
||||
"Качество",
|
||||
],
|
||||
},
|
||||
{
|
||||
value: "25+",
|
||||
title: "Отзывов",
|
||||
features: [
|
||||
"Средний рейтинг 4.9",
|
||||
"Нас рекомендуют",
|
||||
],
|
||||
},
|
||||
{
|
||||
value: "6+",
|
||||
title: "Мест в зале",
|
||||
features: [
|
||||
"Уютная атмосфера",
|
||||
"Летняя веранда",
|
||||
],
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<MetricsSection />
|
||||
|
||||
<div id="testimonials" data-section="testimonials">
|
||||
<SectionErrorBoundary name="testimonials">
|
||||
<TestimonialRatingCards
|
||||
tag="Отзывы"
|
||||
title="Что говорят наши гости"
|
||||
description="Присоединяйтесь к сообществу гурманов."
|
||||
testimonials={[
|
||||
{
|
||||
name: "Айгерим",
|
||||
role: "Блогер",
|
||||
quote: "Лучшая шаурма в Актобе, очень эстетично!",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/group-friends-taking-photos-restaurant_23-2150520117.jpg",
|
||||
},
|
||||
{
|
||||
name: "Данияр",
|
||||
role: "Предприниматель",
|
||||
quote: "Быстро, качественно, очень вкусно. Рекомендую.",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/delicious-dish-restaurant_23-2148018796.jpg",
|
||||
},
|
||||
{
|
||||
name: "Сара",
|
||||
role: "Дизайнер",
|
||||
quote: "Интерьер просто пушка, еда выше всяких похвал.",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/portrait-satisfied-happy-young-man-glasses-working-cafe-sitting-coworking-space-with-laptop-showing-thumbs-up-like-approve-smth-good-chatting-giving-online-lessons_1258-314620.jpg",
|
||||
},
|
||||
{
|
||||
name: "Максим",
|
||||
role: "Студент",
|
||||
quote: "Часто захожу после учебы, всегда стабильно вкусно.",
|
||||
rating: 4,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/waitress-near-display-case-with-tartines_23-2147830513.jpg",
|
||||
},
|
||||
{
|
||||
name: "Елена",
|
||||
role: "Фрилансер",
|
||||
quote: "Летняя веранда — любовь, атмосфера супер.",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-handsome-man-white-shirt-open-having-breakfast-cafe-with-vegetarian-burger-drinking-coffee-lifestyle-tropical-island-life-bali_1321-3941.jpg",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<TestimonialsSection />
|
||||
|
||||
<div id="faq" data-section="faq">
|
||||
<SectionErrorBoundary name="faq">
|
||||
<FaqSplitMedia
|
||||
tag="Часто задаваемые вопросы"
|
||||
title="Что важно знать"
|
||||
description="Отвечаем на популярные вопросы наших клиентов."
|
||||
items={[
|
||||
{
|
||||
question: "Есть ли доставка?",
|
||||
answer: "Да, работаем с сервисами доставки и на вынос.",
|
||||
},
|
||||
{
|
||||
question: "Работаете круглосуточно?",
|
||||
answer: "Ежедневно с 11:00 до 02:00 ночи.",
|
||||
},
|
||||
{
|
||||
question: "Где вы находитесь?",
|
||||
answer: "Ул. Аль-Фараби, 26, 1 этаж.",
|
||||
},
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/elegant-wooden-dining-room-with-modern-lighting-generated-by-ai_188544-29879.jpg"
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<FaqSection />
|
||||
|
||||
<div id="contact" data-section="contact">
|
||||
<SectionErrorBoundary name="contact">
|
||||
<ContactCta
|
||||
tag="Контакты"
|
||||
text="Свяжитесь с нами для заказа или бронирования стола."
|
||||
primaryButton={{
|
||||
text: "Написать в WhatsApp",
|
||||
href: "https://wa.me/77780713311",
|
||||
}}
|
||||
secondaryButton={{
|
||||
text: "Позвонить",
|
||||
href: "tel:+77780713311",
|
||||
}}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
<ContactSection />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
22
src/pages/HomePage/sections/About.tsx
Normal file
22
src/pages/HomePage/sections/About.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "about" section.
|
||||
|
||||
import React from 'react';
|
||||
import AboutTextSplit from '@/components/sections/about/AboutTextSplit';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function AboutSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="about" data-section="about">
|
||||
<SectionErrorBoundary name="about">
|
||||
<AboutTextSplit
|
||||
title="Философия вкуса"
|
||||
descriptions={[
|
||||
"Мы открылись на Аль-Фараби, чтобы изменить представление о шаурме. Каждая деталь, от мяса на огне до наших соусов, создается с вниманием к совершенству.",
|
||||
"Мы не просто готовим, мы создаем гастрономический опыт в самом сердце Актобе. Ежедневно с 11:00 до 02:00.",
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
27
src/pages/HomePage/sections/Contact.tsx
Normal file
27
src/pages/HomePage/sections/Contact.tsx
Normal file
@@ -0,0 +1,27 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "contact" section.
|
||||
|
||||
import React from 'react';
|
||||
import ContactCta from '@/components/sections/contact/ContactCta';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function ContactSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="contact" data-section="contact">
|
||||
<SectionErrorBoundary name="contact">
|
||||
<ContactCta
|
||||
tag="Контакты"
|
||||
text="Свяжитесь с нами для заказа или бронирования стола."
|
||||
primaryButton={{
|
||||
text: "Написать в WhatsApp",
|
||||
href: "https://wa.me/77780713311",
|
||||
}}
|
||||
secondaryButton={{
|
||||
text: "Позвонить",
|
||||
href: "tel:+77780713311",
|
||||
}}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
35
src/pages/HomePage/sections/Faq.tsx
Normal file
35
src/pages/HomePage/sections/Faq.tsx
Normal file
@@ -0,0 +1,35 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "faq" section.
|
||||
|
||||
import React from 'react';
|
||||
import FaqSplitMedia from '@/components/sections/faq/FaqSplitMedia';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function FaqSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="faq" data-section="faq">
|
||||
<SectionErrorBoundary name="faq">
|
||||
<FaqSplitMedia
|
||||
tag="Часто задаваемые вопросы"
|
||||
title="Что важно знать"
|
||||
description="Отвечаем на популярные вопросы наших клиентов."
|
||||
items={[
|
||||
{
|
||||
question: "Есть ли доставка?",
|
||||
answer: "Да, работаем с сервисами доставки и на вынос.",
|
||||
},
|
||||
{
|
||||
question: "Работаете круглосуточно?",
|
||||
answer: "Ежедневно с 11:00 до 02:00 ночи.",
|
||||
},
|
||||
{
|
||||
question: "Где вы находитесь?",
|
||||
answer: "Ул. Аль-Фараби, 26, 1 этаж.",
|
||||
},
|
||||
]}
|
||||
imageSrc="http://img.b2bpic.net/free-photo/elegant-wooden-dining-room-with-modern-lighting-generated-by-ai_188544-29879.jpg"
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
40
src/pages/HomePage/sections/Features.tsx
Normal file
40
src/pages/HomePage/sections/Features.tsx
Normal file
@@ -0,0 +1,40 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "features" section.
|
||||
|
||||
import React from 'react';
|
||||
import FeaturesMediaCarousel from '@/components/sections/features/FeaturesMediaCarousel';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function FeaturesSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="features" data-section="features">
|
||||
<SectionErrorBoundary name="features">
|
||||
<FeaturesMediaCarousel
|
||||
tag="Наши преимущества"
|
||||
title="Качество в деталях"
|
||||
description="Почему выбирают именно нас?"
|
||||
items={[
|
||||
{
|
||||
title: "Премиум мясо",
|
||||
description: "Только отборные части туши, маринованные 24 часа.",
|
||||
buttonIcon: "Zap",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/closeup-bowl-with-ripe-black-tomatoes-kitchen-table_169016-40837.jpg",
|
||||
},
|
||||
{
|
||||
title: "Авторские рецепты",
|
||||
description: "Более 15 видов соусов, созданных нашим шеф-поваром.",
|
||||
buttonIcon: "ChefHat",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/vertical-view-delicious-cake-biscuits-with-fork-knife-black-background_140725-92002.jpg",
|
||||
},
|
||||
{
|
||||
title: "Свежесть 24/7",
|
||||
description: "Ежедневная поставка локальных овощей от фермеров.",
|
||||
buttonIcon: "Leaf",
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/flat-lay-homemade-salad-with-dark-tableware_23-2148537161.jpg",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
29
src/pages/HomePage/sections/Hero.tsx
Normal file
29
src/pages/HomePage/sections/Hero.tsx
Normal file
@@ -0,0 +1,29 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "hero" section.
|
||||
|
||||
import React from 'react';
|
||||
import HeroSplit from '@/components/sections/hero/HeroSplit';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function HeroSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="hero" data-section="hero">
|
||||
<SectionErrorBoundary name="hero">
|
||||
<HeroSplit
|
||||
tag="ШАУРМА SHOP"
|
||||
title="Вкус, который объединяет"
|
||||
description="Международная сеть питания. Вкусная шаурма, хот-доги, фри и многое другое. Закажи через приложение и получи кешбэк 6%."
|
||||
primaryButton={{
|
||||
text: "Заказать",
|
||||
href: "#contact",
|
||||
}}
|
||||
secondaryButton={{
|
||||
text: "Меню",
|
||||
href: "#products",
|
||||
}}
|
||||
imageSrc="https://storage.googleapis.com/webild/users/user_3FDWI40dAuu06HSQgv6h2FKJ02P/uploaded-1781621520220-ju6jfkjs.png"
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
46
src/pages/HomePage/sections/Metrics.tsx
Normal file
46
src/pages/HomePage/sections/Metrics.tsx
Normal file
@@ -0,0 +1,46 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "metrics" section.
|
||||
|
||||
import React from 'react';
|
||||
import MetricsFeatureCards from '@/components/sections/metrics/MetricsFeatureCards';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function MetricsSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="metrics" data-section="metrics">
|
||||
<SectionErrorBoundary name="metrics">
|
||||
<MetricsFeatureCards
|
||||
tag="Цифры говорят сами"
|
||||
title="Доверие 25+ пользователей"
|
||||
description="Средний чек 2200 тенге — доступная роскошь."
|
||||
metrics={[
|
||||
{
|
||||
value: "1500+",
|
||||
title: "Гостей в день",
|
||||
features: [
|
||||
"Лояльность",
|
||||
"Качество",
|
||||
],
|
||||
},
|
||||
{
|
||||
value: "25+",
|
||||
title: "Отзывов",
|
||||
features: [
|
||||
"Средний рейтинг 4.9",
|
||||
"Нас рекомендуют",
|
||||
],
|
||||
},
|
||||
{
|
||||
value: "6+",
|
||||
title: "Мест в зале",
|
||||
features: [
|
||||
"Уютная атмосфера",
|
||||
"Летняя веранда",
|
||||
],
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
159
src/pages/HomePage/sections/Products.tsx
Normal file
159
src/pages/HomePage/sections/Products.tsx
Normal file
@@ -0,0 +1,159 @@
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck — generated by catalog-eject; runtime-correct but TS strict-mode false-positives on inlined catalog body
|
||||
import Button from "@/components/ui/Button";
|
||||
import TextAnimation from "@/components/ui/TextAnimation";
|
||||
import ImageOrVideo from "@/components/ui/ImageOrVideo";
|
||||
import ScrollReveal from "@/components/ui/ScrollReveal";
|
||||
import { cls } from "@/lib/utils";
|
||||
|
||||
const items = [
|
||||
{
|
||||
description: "Нежная курочка, картофель фри, маринованный огурчик, соус белый, кетчуп и лаваш",
|
||||
title: "Doner Classic",
|
||||
imageSrc: "https://images.unsplash.com/photo-1615719413546-198b25453f85?q=80&w=1000&auto=format&fit=crop"
|
||||
},
|
||||
{
|
||||
imageSrc: "https://images.unsplash.com/photo-1528735602780-2552fd46c7af?q=80&w=1000&auto=format&fit=crop",
|
||||
title: "Standart",
|
||||
description: "Нежная курочка, хрустящая капуста, сочный помидор, свежий огурец, белый соус и лаваш"
|
||||
},
|
||||
{
|
||||
imageSrc: "https://images.unsplash.com/photo-1565299585323-38d6b0865b47?q=80&w=1000&auto=format&fit=crop",
|
||||
title: "Мексиканская",
|
||||
description: "Нежная курочка, хрустящая капуста, сочный помидор, свежий огурец, сладкая кукуруза, 2 соуса(белый и чили) и лаваш"
|
||||
},
|
||||
{
|
||||
imageSrc: "https://images.unsplash.com/photo-1550547660-d9450f859349?q=80&w=1000&auto=format&fit=crop",
|
||||
title: "Деревенская",
|
||||
description: "Нежная курочка, хрустящая капуста, морковь по-корейски, маринованный огурчик, картофель жареный, белый соус, кетчуп и лаваш"
|
||||
},
|
||||
{
|
||||
description: "Нежная курочка, шампиньоны жареные, опята маринованные, картофель жареный, салат айсберг, сыр сулугуни, соус белый и лаваш",
|
||||
title: "Грибная",
|
||||
imageSrc: "https://images.unsplash.com/photo-1604908176997-125f25cc6f3d?q=80&w=1000&auto=format&fit=crop"
|
||||
},
|
||||
{
|
||||
imageSrc: "https://images.unsplash.com/photo-1540189549336-e6e99c3679fe?q=80&w=1000&auto=format&fit=crop",
|
||||
title: "Греческая",
|
||||
description: "Нежная курочка, хрустящая капуста, свежий огурец, маслины, сыр фета, 2 соуса(белый и терияки) и лаваш"
|
||||
},
|
||||
{
|
||||
description: "Колбаска пепперони, салат айсберг, нежная курочка, сочный помидор, сыр сулугуни, 2 соуса(белый и томатный жгучий) и лаваш + картофель фри в «Большую»",
|
||||
title: "Пепперони",
|
||||
imageSrc: "https://images.unsplash.com/photo-1628840042765-356cda07504e?q=80&w=1000&auto=format&fit=crop"
|
||||
}
|
||||
];
|
||||
|
||||
type FeatureItem = {
|
||||
title: string;
|
||||
description: string;
|
||||
href?: string;
|
||||
} & ({ imageSrc: string; videoSrc?: never } | { videoSrc: string; imageSrc?: never });
|
||||
|
||||
interface FeaturesImageBentoProps {
|
||||
tag: string;
|
||||
title: string;
|
||||
description: string;
|
||||
primaryButton?: { text: string; href: string };
|
||||
secondaryButton?: { text: string; href: string };
|
||||
items: [FeatureItem, FeatureItem, FeatureItem, FeatureItem, FeatureItem, FeatureItem, FeatureItem];
|
||||
}
|
||||
|
||||
const ProductsInline = () => {
|
||||
const gridClasses = [
|
||||
"md:col-span-2",
|
||||
"md:col-span-4",
|
||||
"md:col-span-3",
|
||||
"md:col-span-3",
|
||||
"md:col-span-2",
|
||||
"md:col-span-2",
|
||||
"md:col-span-2",
|
||||
];
|
||||
|
||||
const staggerDelays = [
|
||||
0,
|
||||
0.1,
|
||||
0,
|
||||
0.1,
|
||||
0,
|
||||
0.1,
|
||||
0.2,
|
||||
];
|
||||
|
||||
return (
|
||||
<section aria-label="Features image bento section" className="py-20">
|
||||
<div className="flex flex-col gap-8 md:gap-10">
|
||||
<div className="flex flex-col items-center w-content-width mx-auto gap-2">
|
||||
<div className="px-3 py-1 mb-1 text-sm card rounded w-fit">
|
||||
<p>{"Меню"}</p>
|
||||
</div>
|
||||
|
||||
<TextAnimation
|
||||
text={"Наше Меню"}
|
||||
variant="fade"
|
||||
gradientText={true}
|
||||
tag="h2"
|
||||
className="md:max-w-8/10 text-6xl 2xl:text-7xl leading-[1.15] font-semibold text-center text-balance"
|
||||
/>
|
||||
|
||||
<TextAnimation
|
||||
text={"От классики до наших фирменных позиций. Закажи через приложение и получи кешбэк 6%."}
|
||||
variant="fade"
|
||||
gradientText={false}
|
||||
tag="p"
|
||||
className="md:max-w-7/10 text-lg md:text-xl leading-snug text-center text-balance"
|
||||
/>
|
||||
|
||||
{(undefined || undefined) && (
|
||||
<div className="flex flex-wrap justify-center gap-3 mt-2 md:mt-3">
|
||||
{undefined && <Button text={undefined.text} href={undefined.href} variant="primary"/>}
|
||||
{undefined && <Button text={undefined.text} href={undefined.href} variant="secondary" animationDelay={0.1} />}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="w-content-width mx-auto grid grid-cols-1 md:grid-cols-6 gap-3">
|
||||
{items.map((item, index) => {
|
||||
const content = (
|
||||
<div className="relative h-80 xl:h-100 2xl:h-120 overflow-hidden">
|
||||
<ImageOrVideo
|
||||
imageSrc={item.imageSrc}
|
||||
videoSrc={item.videoSrc}
|
||||
className="rounded group-hover:scale-105 transition-transform duration-500"
|
||||
/>
|
||||
|
||||
<div className="absolute inset-x-5 bottom-5 xl:inset-x-6 xl:bottom-6 2xl:inset-x-7 2xl:bottom-7 flex flex-col text-white z-10">
|
||||
<span className="text-2xl font-semibold leading-snug truncate">{item.title}</span>
|
||||
<span className="text-base leading-snug truncate">{item.description}</span>
|
||||
</div>
|
||||
<div className="absolute inset-0 bg-gradient-to-t from-black/80 via-black/20 to-transparent pointer-events-none" />
|
||||
</div>
|
||||
);
|
||||
|
||||
return (
|
||||
<ScrollReveal key={index} variant="fade-blur" delay={staggerDelays[index]} className={cls("col-span-1 group", gridClasses[index])}>
|
||||
{item.href ? (
|
||||
<a href={item.href} className="block overflow-hidden rounded">
|
||||
{content}
|
||||
</a>
|
||||
) : (
|
||||
<div className="overflow-hidden rounded">
|
||||
{content}
|
||||
</div>
|
||||
)}
|
||||
</ScrollReveal>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default function ProductsSection() {
|
||||
return (
|
||||
<div data-webild-section="products" id="products">
|
||||
<ProductsInline />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
57
src/pages/HomePage/sections/Testimonials.tsx
Normal file
57
src/pages/HomePage/sections/Testimonials.tsx
Normal file
@@ -0,0 +1,57 @@
|
||||
// AUTO-GENERATED by per-section-migrate. Edit freely — Bob will treat this
|
||||
// file as the canonical source for the "testimonials" section.
|
||||
|
||||
import React from 'react';
|
||||
import TestimonialRatingCards from '@/components/sections/testimonial/TestimonialRatingCards';
|
||||
import SectionErrorBoundary from "@/components/ui/SectionErrorBoundary";
|
||||
|
||||
export default function TestimonialsSection(): React.JSX.Element {
|
||||
return (
|
||||
<div id="testimonials" data-section="testimonials">
|
||||
<SectionErrorBoundary name="testimonials">
|
||||
<TestimonialRatingCards
|
||||
tag="Отзывы"
|
||||
title="Что говорят наши гости"
|
||||
description="Присоединяйтесь к сообществу гурманов."
|
||||
testimonials={[
|
||||
{
|
||||
name: "Айгерим",
|
||||
role: "Блогер",
|
||||
quote: "Лучшая шаурма в Актобе, очень эстетично!",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/group-friends-taking-photos-restaurant_23-2150520117.jpg",
|
||||
},
|
||||
{
|
||||
name: "Данияр",
|
||||
role: "Предприниматель",
|
||||
quote: "Быстро, качественно, очень вкусно. Рекомендую.",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/delicious-dish-restaurant_23-2148018796.jpg",
|
||||
},
|
||||
{
|
||||
name: "Сара",
|
||||
role: "Дизайнер",
|
||||
quote: "Интерьер просто пушка, еда выше всяких похвал.",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/portrait-satisfied-happy-young-man-glasses-working-cafe-sitting-coworking-space-with-laptop-showing-thumbs-up-like-approve-smth-good-chatting-giving-online-lessons_1258-314620.jpg",
|
||||
},
|
||||
{
|
||||
name: "Максим",
|
||||
role: "Студент",
|
||||
quote: "Часто захожу после учебы, всегда стабильно вкусно.",
|
||||
rating: 4,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/waitress-near-display-case-with-tartines_23-2147830513.jpg",
|
||||
},
|
||||
{
|
||||
name: "Елена",
|
||||
role: "Фрилансер",
|
||||
quote: "Летняя веранда — любовь, атмосфера супер.",
|
||||
rating: 5,
|
||||
imageSrc: "http://img.b2bpic.net/free-photo/young-handsome-man-white-shirt-open-having-breakfast-cafe-with-vegetarian-burger-drinking-coffee-lifestyle-tropical-island-life-bali_1321-3941.jpg",
|
||||
},
|
||||
]}
|
||||
/>
|
||||
</SectionErrorBoundary>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user