Remove links to external aq-jaiyq.kz site (not user-owned)
This commit is contained in:
parent
3008f436be
commit
8434ca977f
File diff suppressed because one or more lines are too long
24
src/App.tsx
24
src/App.tsx
@ -10,7 +10,6 @@ import {
|
|||||||
ADDRESS,
|
ADDRESS,
|
||||||
HOURS_CAFE,
|
HOURS_CAFE,
|
||||||
HOURS_MARKET,
|
HOURS_MARKET,
|
||||||
FULL_MENU_URL,
|
|
||||||
type Product,
|
type Product,
|
||||||
} from "./products";
|
} from "./products";
|
||||||
|
|
||||||
@ -32,10 +31,9 @@ export default function App() {
|
|||||||
<Section
|
<Section
|
||||||
id="cafe"
|
id="cafe"
|
||||||
title="Кафе"
|
title="Кафе"
|
||||||
subtitle="Популярные позиции. Полное меню — на отдельной странице."
|
subtitle="Популярные позиции."
|
||||||
items={popularCafe}
|
items={popularCafe}
|
||||||
onAdd={cart.add}
|
onAdd={cart.add}
|
||||||
fullMenuUrl={FULL_MENU_URL}
|
|
||||||
/>
|
/>
|
||||||
<Section
|
<Section
|
||||||
id="market"
|
id="market"
|
||||||
@ -127,14 +125,12 @@ function Section({
|
|||||||
subtitle,
|
subtitle,
|
||||||
items,
|
items,
|
||||||
onAdd,
|
onAdd,
|
||||||
fullMenuUrl,
|
|
||||||
}: {
|
}: {
|
||||||
id: string;
|
id: string;
|
||||||
title: string;
|
title: string;
|
||||||
subtitle?: string;
|
subtitle?: string;
|
||||||
items: Product[];
|
items: Product[];
|
||||||
onAdd: (p: Product) => void;
|
onAdd: (p: Product) => void;
|
||||||
fullMenuUrl?: string;
|
|
||||||
}) {
|
}) {
|
||||||
return (
|
return (
|
||||||
<section id={id} className="px-4 py-10 sm:py-14 border-t border-charcoal-100">
|
<section id={id} className="px-4 py-10 sm:py-14 border-t border-charcoal-100">
|
||||||
@ -144,16 +140,6 @@ function Section({
|
|||||||
<h2 className="font-display text-3xl sm:text-4xl font-bold text-charcoal-700">{title}</h2>
|
<h2 className="font-display text-3xl sm:text-4xl font-bold text-charcoal-700">{title}</h2>
|
||||||
{subtitle && <p className="text-charcoal-500 mt-1 text-sm sm:text-base">{subtitle}</p>}
|
{subtitle && <p className="text-charcoal-500 mt-1 text-sm sm:text-base">{subtitle}</p>}
|
||||||
</div>
|
</div>
|
||||||
{fullMenuUrl && (
|
|
||||||
<a
|
|
||||||
href={fullMenuUrl}
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
className="text-gold-500 hover:text-gold-600 text-sm whitespace-nowrap"
|
|
||||||
>
|
|
||||||
Все позиции →
|
|
||||||
</a>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
|
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
|
||||||
{items.map((p) => (
|
{items.map((p) => (
|
||||||
@ -415,14 +401,6 @@ function Footer() {
|
|||||||
<div>
|
<div>
|
||||||
<h3 className="font-display text-xl font-bold mb-2">АҚ ЖАЙЫҚ</h3>
|
<h3 className="font-display text-xl font-bold mb-2">АҚ ЖАЙЫҚ</h3>
|
||||||
<p className="text-charcoal-200 text-sm">{ADDRESS}</p>
|
<p className="text-charcoal-200 text-sm">{ADDRESS}</p>
|
||||||
<a
|
|
||||||
href={FULL_MENU_URL}
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
className="inline-block mt-3 text-gold-300 hover:text-gold-200 text-sm"
|
|
||||||
>
|
|
||||||
Полное меню кафе →
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h4 className="font-semibold mb-2">Часы работы</h4>
|
<h4 className="font-semibold mb-2">Часы работы</h4>
|
||||||
|
|||||||
@ -48,4 +48,3 @@ export const PHONE_MARKET = "+7 776 031 96 66";
|
|||||||
export const ADDRESS = "ул. Ардагерлер 40, поселок Нура, Карагандинская область";
|
export const ADDRESS = "ул. Ардагерлер 40, поселок Нура, Карагандинская область";
|
||||||
export const HOURS_CAFE = "10:00 – 23:00";
|
export const HOURS_CAFE = "10:00 – 23:00";
|
||||||
export const HOURS_MARKET = "Круглосуточно";
|
export const HOURS_MARKET = "Круглосуточно";
|
||||||
export const FULL_MENU_URL = "https://aq-jaiyq.kz/cafe";
|
|
||||||
|
|||||||
Reference in New Issue
Block a user