Initial commit
This commit is contained in:
213
src/pages/restaurant/RestaurantServices.tsx
Normal file
213
src/pages/restaurant/RestaurantServices.tsx
Normal file
@@ -0,0 +1,213 @@
|
||||
import { Card } from "antd";
|
||||
import BackIcon from "components/Icons/BackIcon";
|
||||
import BookingIcon from "components/Icons/BookingIcon";
|
||||
import DeliveryIcon from "components/Icons/DeliveryIcon";
|
||||
import DineInIcon from "components/Icons/DineInIcon";
|
||||
import NextIcon from "components/Icons/NextIcon";
|
||||
import PickupIcon from "components/Icons/PickupIcon";
|
||||
import SendGiftIcon from "components/Icons/SendGiftIcon";
|
||||
import ToOfficeIcon from "components/Icons/ToOfficeIcon";
|
||||
import ToRoomIcon from "components/Icons/ToRoomIcon";
|
||||
import ProTitle from "components/ProTitle";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link } from "react-router-dom";
|
||||
import { useAppSelector } from "redux/hooks";
|
||||
import styles from "./restaurant.module.css";
|
||||
|
||||
interface RestaurantServicesProps {
|
||||
dineIn?: boolean;
|
||||
pickup?: boolean;
|
||||
gift?: boolean;
|
||||
delivery?: boolean;
|
||||
toRoom?: boolean;
|
||||
toOffice?: boolean;
|
||||
is_booking_enabled?: boolean;
|
||||
params: { locale: string; id: string };
|
||||
}
|
||||
|
||||
export default function RestaurantServices({
|
||||
dineIn,
|
||||
pickup,
|
||||
gift,
|
||||
delivery,
|
||||
toRoom,
|
||||
toOffice,
|
||||
is_booking_enabled,
|
||||
}: RestaurantServicesProps) {
|
||||
const { t } = useTranslation();
|
||||
const { isRTL } = useAppSelector((state) => state.locale);
|
||||
const id = localStorage.getItem("restaurantName");
|
||||
|
||||
const services = [
|
||||
...((dineIn && [
|
||||
{
|
||||
id: "dine-in",
|
||||
title: t("common.dineIn"),
|
||||
description: t("home.services.dineIn"),
|
||||
icon: (
|
||||
<DineInIcon
|
||||
className={styles.serviceIcon + " " + styles.dineInIcon}
|
||||
/>
|
||||
),
|
||||
color: "bg-blue-50 text-blue-600",
|
||||
href: `/${id}/menu?orderType=dine-in`,
|
||||
},
|
||||
]) ||
|
||||
[]),
|
||||
...((pickup && [
|
||||
{
|
||||
id: "pickup",
|
||||
title: t("common.pickup"),
|
||||
description: t("home.services.pickup"),
|
||||
icon: (
|
||||
<PickupIcon
|
||||
className={styles.serviceIcon + " " + styles.pickupIcon}
|
||||
/>
|
||||
),
|
||||
color: "bg-green-50 text-green-600",
|
||||
href: `/${id}/menu?orderType=pickup`,
|
||||
},
|
||||
]) ||
|
||||
[]),
|
||||
...((gift && [
|
||||
{
|
||||
id: "gift",
|
||||
title: t("common.sendGift"),
|
||||
description: t("home.services.gift"),
|
||||
icon: (
|
||||
<SendGiftIcon
|
||||
className={styles.serviceIcon + " " + styles.giftIcon}
|
||||
/>
|
||||
),
|
||||
color: "bg-pink-50 text-pink-600",
|
||||
href: `/${id}/menu?orderType=gift`,
|
||||
},
|
||||
]) ||
|
||||
[]),
|
||||
...((toRoom && [
|
||||
{
|
||||
id: "room",
|
||||
title: t("common.roomService"),
|
||||
description: t("home.services.room"),
|
||||
icon: (
|
||||
<ToRoomIcon className={styles.serviceIcon + " " + styles.roomIcon} />
|
||||
),
|
||||
color: "bg-purple-50 text-purple-600",
|
||||
href: `/${id}/menu?orderType=room`,
|
||||
},
|
||||
]) ||
|
||||
[]),
|
||||
...((toOffice && [
|
||||
{
|
||||
id: "office",
|
||||
title: t("common.officeDelivery"),
|
||||
description: t("home.services.office"),
|
||||
icon: (
|
||||
<ToOfficeIcon
|
||||
className={styles.serviceIcon + " " + styles.officeIcon}
|
||||
/>
|
||||
),
|
||||
color: "bg-orange-50 text-orange-600",
|
||||
href: `/${id}/menu?orderType=office`,
|
||||
},
|
||||
]) ||
|
||||
[]),
|
||||
...((is_booking_enabled && [
|
||||
{
|
||||
id: "booking",
|
||||
title: t("common.tableBooking"),
|
||||
description: t("home.services.booking"),
|
||||
icon: (
|
||||
<BookingIcon
|
||||
className={styles.serviceIcon + " " + styles.bookingIcon}
|
||||
/>
|
||||
),
|
||||
color: "bg-indigo-50 text-indigo-600",
|
||||
href: `/${id}/menu?orderType=booking`,
|
||||
},
|
||||
]) ||
|
||||
[]),
|
||||
...((delivery && [
|
||||
{
|
||||
id: "delivery",
|
||||
title: t("common.delivery"),
|
||||
description: t("home.services.delivery"),
|
||||
icon: (
|
||||
<DeliveryIcon
|
||||
className={styles.serviceIcon + " " + styles.deliveryIcon}
|
||||
/>
|
||||
),
|
||||
color: "bg-indigo-50 text-indigo-600",
|
||||
href: `/${id}/address`,
|
||||
},
|
||||
]) ||
|
||||
[]),
|
||||
];
|
||||
|
||||
// Determine grid class based on number of services
|
||||
const getGridClass = () => {
|
||||
const serviceCount = services.length;
|
||||
if (serviceCount <= 2) return `${styles.servicesGrid} ${styles.twoColumns}`;
|
||||
if (serviceCount >= 4)
|
||||
return `${styles.servicesGrid} ${styles.manyServices}`;
|
||||
return styles.servicesGrid;
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={getGridClass()}>
|
||||
{services?.map((s) => {
|
||||
return (
|
||||
<Link
|
||||
to={s?.href}
|
||||
key={s?.id}
|
||||
onClick={() => {
|
||||
localStorage.setItem("orderType", s?.id);
|
||||
}}
|
||||
style={{
|
||||
width: "100%",
|
||||
}}
|
||||
>
|
||||
<Card className={styles.homeServiceCard}>
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
flexDirection: "row",
|
||||
justifyContent: "space-between",
|
||||
alignItems: "center",
|
||||
width: "100%",
|
||||
}}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
display: "flex",
|
||||
flexDirection: "row",
|
||||
alignItems: "center",
|
||||
gap: 12,
|
||||
}}
|
||||
>
|
||||
{s?.icon}
|
||||
<ProTitle
|
||||
level={5}
|
||||
style={{
|
||||
margin: 0,
|
||||
fontSize: 14,
|
||||
fontWeight: 600,
|
||||
}}
|
||||
>
|
||||
{s?.title}
|
||||
</ProTitle>
|
||||
</div>
|
||||
|
||||
{isRTL ? (
|
||||
<BackIcon className={styles.serviceIcon} />
|
||||
) : (
|
||||
<NextIcon className={styles.serviceIcon} />
|
||||
)}
|
||||
</div>
|
||||
</Card>
|
||||
</Link>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
98
src/pages/restaurant/page.tsx
Normal file
98
src/pages/restaurant/page.tsx
Normal file
@@ -0,0 +1,98 @@
|
||||
import InstagramIcon from "components/Icons/social/InstagramIcon";
|
||||
import JIcon from "components/Icons/social/JIcon";
|
||||
import SnapIcon from "components/Icons/social/SnapIcon";
|
||||
import XIcon from "components/Icons/social/XIcon";
|
||||
import { LanguageSwitch } from "components/LanguageSwitch/LanguageSwitch";
|
||||
import ProText from "components/ProText";
|
||||
import ProTitle from "components/ProTitle";
|
||||
import { useAppSelector } from "redux/hooks";
|
||||
import styles from "./restaurant.module.css";
|
||||
import RestaurantServices from "./RestaurantServices";
|
||||
|
||||
// Import the Client Component for localStorage handling
|
||||
import Ads1 from "components/Ads/Ads1";
|
||||
import { Loader } from "components/Loader/Loader";
|
||||
import { useParams } from "react-router-dom";
|
||||
import { useGetRestaurantDetailsQuery } from "redux/api/others";
|
||||
import LocalStorageHandler from "../menu/components/LocalStorageHandler";
|
||||
|
||||
export default function RestaurantPage() {
|
||||
const param = useParams();
|
||||
console.log(param);
|
||||
|
||||
const { isRTL } = useAppSelector((state) => state.locale);
|
||||
const { data, isLoading } = useGetRestaurantDetailsQuery(param.id, {
|
||||
skip: !param.id,
|
||||
});
|
||||
const { restaurant, dineIn, pickup, delivery, gift, toOffice, toRoom } =
|
||||
data || {};
|
||||
|
||||
if (isLoading) {
|
||||
return <Loader />;
|
||||
}
|
||||
|
||||
if (!restaurant) {
|
||||
return <div>Restaurant not found</div>;
|
||||
}
|
||||
|
||||
if (restaurant) {
|
||||
localStorage.setItem("restaurantID", restaurant.id);
|
||||
localStorage.setItem("restaurantName", restaurant.subdomain);
|
||||
}
|
||||
|
||||
console.log(isRTL);
|
||||
|
||||
return (
|
||||
<>
|
||||
<div className={styles.languageSwitch}>
|
||||
<LanguageSwitch />
|
||||
</div>
|
||||
|
||||
<div className={styles.homeContainer}>
|
||||
<div style={{ textAlign: "center", maxWidth: "100%" }}>
|
||||
<div className={styles.logoContainer}>
|
||||
<img
|
||||
src={restaurant?.logom || ""}
|
||||
alt="logo"
|
||||
width={96}
|
||||
height={96}
|
||||
className={styles.logo}
|
||||
/>
|
||||
</div>
|
||||
<ProTitle level={5} style={{ margin: 0 }}>
|
||||
{isRTL ? restaurant?.nameAR : restaurant?.name}
|
||||
</ProTitle>
|
||||
<ProText style={{ fontSize: 14, margin: 0 }}>
|
||||
{isRTL ? restaurant?.descriptionAR : restaurant?.description}
|
||||
</ProText>
|
||||
</div>
|
||||
|
||||
<RestaurantServices
|
||||
dineIn={dineIn}
|
||||
pickup={pickup}
|
||||
gift={gift}
|
||||
delivery={delivery}
|
||||
toRoom={toRoom}
|
||||
toOffice={toOffice}
|
||||
is_booking_enabled={restaurant?.is_booking_enabled === 1}
|
||||
params={{ id: "1", locale: "en" }}
|
||||
/>
|
||||
<div className={styles.promotionContainer}>
|
||||
<Ads1 />
|
||||
</div>
|
||||
<div className={styles.socialIconsContainer}>
|
||||
<InstagramIcon className={styles.socialIcon} />
|
||||
<XIcon className={styles.socialIcon} />
|
||||
<SnapIcon className={styles.socialIcon} />
|
||||
<JIcon className={styles.socialIcon} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<LocalStorageHandler
|
||||
restaurantID={restaurant.id}
|
||||
restaurantName={restaurant.subdomain}
|
||||
orderType=""
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
982
src/pages/restaurant/restaurant.module.css
Normal file
982
src/pages/restaurant/restaurant.module.css
Normal file
@@ -0,0 +1,982 @@
|
||||
/* File: src/styles/Home.module.css */
|
||||
|
||||
.main {
|
||||
width: 100%;
|
||||
overflow-x: hidden;
|
||||
background-color: #fafafa;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.section {
|
||||
padding: 80px 16px;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.section {
|
||||
padding: 60px 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.homeContainer {
|
||||
text-align: center;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
background-image: url("/background.svg");
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
background-attachment: fixed;
|
||||
transition: all 0.3s ease;
|
||||
height: 100vh;
|
||||
min-height: 100vh;
|
||||
width: 100vw;
|
||||
margin: 0;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.homeServiceCard {
|
||||
width: 100%;
|
||||
height: 48px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
padding: 12px 18px !important;
|
||||
row-gap: 10px;
|
||||
transition: all 0.3s ease;
|
||||
border-radius: 50px;
|
||||
background-color: rgba(255, 183, 0, 0.12);
|
||||
}
|
||||
|
||||
.logo {
|
||||
border-radius: 50%;
|
||||
border: 2px solid rgba(255, 255, 255, 0.6);
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.logo:hover {
|
||||
border-color: rgba(255, 183, 0, 0.3);
|
||||
transform: scale(1.02);
|
||||
}
|
||||
|
||||
/* Logo container for perfect centering */
|
||||
.logoContainer {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.homeServiceCard :global(.ant-card-body) {
|
||||
padding: 0px !important;
|
||||
text-align: start;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
/* Removed duplicate rule */
|
||||
|
||||
/* Smooth transitions for all interactive elements */
|
||||
.homeContainer *,
|
||||
.homeServiceCard * {
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.serviceIcon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.promotionContainer {
|
||||
margin: 0 16px;
|
||||
}
|
||||
|
||||
/* Social icons for mobile (default styles) */
|
||||
.socialIconsContainer {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
position: fixed;
|
||||
bottom: 3%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
width: 100%;
|
||||
z-index: 10;
|
||||
}
|
||||
|
||||
.socialIcon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.socialIcon:hover {
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
/* Mobiles Styles (769px - 1024px) */
|
||||
@media (max-width: 769px) {
|
||||
/* Enhanced grid layout for services on tablet */
|
||||
.servicesGrid {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
padding: 0 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Tablet Styles (769px - 1024px) */
|
||||
@media (min-width: 769px) and (max-width: 1024px) {
|
||||
.languageSwitch,
|
||||
.themeSwitch,
|
||||
.promotionContainer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.homeContainer {
|
||||
padding: 6vh 6vw;
|
||||
height: 100vh;
|
||||
min-height: 100vh;
|
||||
max-width: 1000px;
|
||||
margin: 0 auto;
|
||||
gap: 32px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: 140px;
|
||||
height: 140px;
|
||||
margin: 0 auto 24px;
|
||||
border-radius: 24px !important;
|
||||
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
|
||||
transition: all 0.3s ease;
|
||||
object-fit: cover;
|
||||
border: 3px solid rgba(255, 255, 255, 0.8);
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.logo:hover {
|
||||
transform: scale(1.05) rotate(2deg);
|
||||
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
|
||||
border-color: rgba(255, 183, 0, 0.3);
|
||||
}
|
||||
|
||||
/* Enhanced typography for tablet */
|
||||
.homeContainer h5 {
|
||||
font-size: 24px !important;
|
||||
font-weight: 600 !important;
|
||||
margin-bottom: 8px !important;
|
||||
}
|
||||
|
||||
.homeContainer p {
|
||||
font-size: 16px !important;
|
||||
line-height: 1.5 !important;
|
||||
max-width: 500px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.homeServiceCard {
|
||||
width: 100%;
|
||||
height: 65px;
|
||||
padding: 20px 28px !important;
|
||||
border-radius: 20px;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
||||
cursor: pointer;
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(255, 183, 0, 0.12) 0%,
|
||||
rgba(255, 183, 0, 0.08) 100%
|
||||
);
|
||||
border: 1px solid rgba(255, 183, 0, 0.2);
|
||||
}
|
||||
|
||||
.homeServiceCard:hover {
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(255, 183, 0, 0.18) 0%,
|
||||
rgba(255, 183, 0, 0.12) 100%
|
||||
);
|
||||
border-color: rgba(255, 183, 0, 0.3);
|
||||
}
|
||||
|
||||
.serviceIcon {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
/* Enhanced grid layout for services on tablet */
|
||||
.servicesGrid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
gap: 20px;
|
||||
padding: 0 32px;
|
||||
margin: 32px 0;
|
||||
max-width: 700px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
/* If there are only 2 services, use single column */
|
||||
.servicesGrid.twoColumns {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
/* If there are 4+ services, use 2 columns */
|
||||
.servicesGrid.manyServices {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
/* Enhanced service card typography */
|
||||
.homeServiceCard h5 {
|
||||
font-size: 16px !important;
|
||||
font-weight: 600 !important;
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
/* Social icons positioning for tablet */
|
||||
.socialIconsContainer {
|
||||
position: fixed;
|
||||
bottom: 32px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
display: flex;
|
||||
gap: 28px;
|
||||
padding: 16px 28px;
|
||||
border-radius: 60px;
|
||||
}
|
||||
|
||||
.socialIcon {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.socialIcon:hover {
|
||||
transform: scale(1.15);
|
||||
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile landscape orientation */
|
||||
@media (max-height: 500px) and (orientation: landscape) {
|
||||
.homeContainer {
|
||||
height: 100vh;
|
||||
min-height: 100vh;
|
||||
background-attachment: scroll;
|
||||
}
|
||||
}
|
||||
|
||||
/* Mobile portrait orientation */
|
||||
@media (max-width: 768px) and (orientation: portrait) {
|
||||
.homeContainer {
|
||||
height: 100vh;
|
||||
min-height: 100vh;
|
||||
background-attachment: scroll;
|
||||
}
|
||||
}
|
||||
|
||||
/* Large screens */
|
||||
@media (min-width: 1200px) {
|
||||
.homeContainer {
|
||||
background-attachment: fixed;
|
||||
}
|
||||
}
|
||||
|
||||
/* Ensure full coverage on all devices */
|
||||
@media (max-width: 480px) {
|
||||
.homeContainer {
|
||||
height: 100vh;
|
||||
min-height: 100vh;
|
||||
width: 100vw;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Desktop Styles (1025px+) */
|
||||
@media (min-width: 1025px) {
|
||||
.languageSwitch,
|
||||
.themeSwitch,
|
||||
.promotionContainer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.homeContainer {
|
||||
padding: 4vh 8vw;
|
||||
max-width: 1200px;
|
||||
margin: 0 auto;
|
||||
gap: 24px;
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
min-height: 100vh;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
margin: 0 auto 20px;
|
||||
border-radius: 20px !important;
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
|
||||
transition: all 0.3s ease;
|
||||
object-fit: cover;
|
||||
border: 3px solid rgba(255, 255, 255, 0.9);
|
||||
position: relative;
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.logo::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: -3px;
|
||||
left: -3px;
|
||||
right: -3px;
|
||||
bottom: -3px;
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(255, 183, 0, 0.3),
|
||||
rgba(255, 183, 0, 0.1)
|
||||
);
|
||||
border-radius: 24px;
|
||||
z-index: -1;
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.logo:hover {
|
||||
transform: scale(1.05) rotate(-1deg);
|
||||
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
|
||||
border-color: rgba(255, 183, 0, 0.4);
|
||||
}
|
||||
|
||||
.logo:hover::before {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Enhanced typography for desktop */
|
||||
.homeContainer h5 {
|
||||
font-size: 24px !important;
|
||||
font-weight: 600 !important;
|
||||
margin-bottom: 8px !important;
|
||||
letter-spacing: -0.3px;
|
||||
}
|
||||
|
||||
.homeContainer p {
|
||||
font-size: 16px !important;
|
||||
line-height: 1.5 !important;
|
||||
max-width: 500px;
|
||||
margin: 0 auto;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.homeServiceCard {
|
||||
width: 100%;
|
||||
height: 64px;
|
||||
padding: 16px 24px !important;
|
||||
border-radius: 16px;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
||||
cursor: pointer;
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(255, 183, 0, 0.12) 0%,
|
||||
rgba(255, 183, 0, 0.08) 100%
|
||||
);
|
||||
border: 1px solid rgba(255, 183, 0, 0.2);
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.homeServiceCard::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(255, 183, 0, 0.05) 0%,
|
||||
transparent 100%
|
||||
);
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease;
|
||||
}
|
||||
|
||||
.homeServiceCard:hover::before {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.homeServiceCard:hover {
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(255, 183, 0, 0.18) 0%,
|
||||
rgba(255, 183, 0, 0.12) 100%
|
||||
);
|
||||
border-color: rgba(255, 183, 0, 0.4);
|
||||
}
|
||||
|
||||
.serviceIcon {
|
||||
position: relative;
|
||||
top: -5px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
/* Enhanced grid layout for services on desktop */
|
||||
.servicesGrid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 16px;
|
||||
padding: 0 24px;
|
||||
margin: 24px 0;
|
||||
max-width: 800px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
/* If there are only 2 services, use 2 columns */
|
||||
.servicesGrid.twoColumns {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
/* If there are 4+ services, use 2 rows */
|
||||
.servicesGrid.manyServices {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
/* Enhanced service card typography */
|
||||
.homeServiceCard h5 {
|
||||
font-size: 16px !important;
|
||||
font-weight: 600 !important;
|
||||
margin: 0 !important;
|
||||
letter-spacing: -0.1px;
|
||||
}
|
||||
|
||||
/* Social icons positioning for desktop */
|
||||
.socialIconsContainer {
|
||||
position: fixed;
|
||||
bottom: 24px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
display: flex;
|
||||
gap: 24px;
|
||||
backdrop-filter: blur(12px);
|
||||
padding: 12px 24px;
|
||||
border-radius: 50px;
|
||||
}
|
||||
|
||||
.socialIcon {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.socialIcon:hover {
|
||||
transform: scale(1.15);
|
||||
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
|
||||
}
|
||||
}
|
||||
|
||||
/* Large Desktop Styles (1440px+) */
|
||||
@media (min-width: 1440px) {
|
||||
.homeContainer {
|
||||
padding: 6vh 10vw;
|
||||
max-width: 1400px;
|
||||
gap: 32px;
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: 140px;
|
||||
height: 140px;
|
||||
margin: 0 auto 24px;
|
||||
border-radius: 24px !important;
|
||||
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
|
||||
border: 4px solid rgba(255, 255, 255, 0.95);
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.logo:hover {
|
||||
transform: scale(1.06) rotate(1deg);
|
||||
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
|
||||
border-color: rgba(255, 183, 0, 0.5);
|
||||
}
|
||||
|
||||
/* Enhanced typography for large desktop */
|
||||
.homeContainer h5 {
|
||||
font-size: 28px !important;
|
||||
font-weight: 600 !important;
|
||||
margin-bottom: 12px !important;
|
||||
letter-spacing: -0.5px;
|
||||
}
|
||||
|
||||
.homeContainer p {
|
||||
font-size: 18px !important;
|
||||
line-height: 1.6 !important;
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.homeServiceCard {
|
||||
height: 65px;
|
||||
padding: 20px 28px !important;
|
||||
border-radius: 20px;
|
||||
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.homeServiceCard:hover {
|
||||
transform: translateY(-6px);
|
||||
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
|
||||
}
|
||||
|
||||
.serviceIcon {
|
||||
position: relative;
|
||||
top: -5px;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
|
||||
/* Enhanced service card typography */
|
||||
.homeServiceCard h5 {
|
||||
font-size: 18px !important;
|
||||
font-weight: 600 !important;
|
||||
letter-spacing: -0.2px;
|
||||
}
|
||||
|
||||
.servicesGrid {
|
||||
max-width: 1000px;
|
||||
gap: 20px;
|
||||
padding: 0 32px;
|
||||
margin: 32px 0;
|
||||
}
|
||||
|
||||
.servicesGrid.twoColumns {
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
.servicesGrid.manyServices {
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
/* Social icons for large desktop */
|
||||
.socialIconsContainer {
|
||||
gap: 32px;
|
||||
padding: 16px 32px;
|
||||
border-radius: 60px;
|
||||
bottom: 32px;
|
||||
}
|
||||
|
||||
.socialIcon {
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.socialIcon:hover {
|
||||
transform: scale(1.2);
|
||||
filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.25));
|
||||
}
|
||||
}
|
||||
|
||||
/* Enhanced Dark Theme Styles */
|
||||
:global(.darkApp) .homeContainer {
|
||||
background-image: url("/background-dark.svg");
|
||||
background-color: #0a0a0a;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
/* Dark theme for tablet and desktop */
|
||||
@media (min-width: 769px) {
|
||||
:global(.darkApp) .homeServiceCard {
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(255, 183, 0, 0.08) 0%,
|
||||
rgba(255, 183, 0, 0.04) 100%
|
||||
) !important;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
:global(.darkApp) .homeServiceCard:hover {
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(255, 183, 0, 0.15) 0%,
|
||||
rgba(255, 183, 0, 0.08) 100%
|
||||
) !important;
|
||||
border-color: rgba(255, 183, 0, 0.4);
|
||||
transform: translateY(-6px);
|
||||
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
:global(.darkApp) .homeServiceCard::before {
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(255, 183, 0, 0.08) 0%,
|
||||
transparent 100%
|
||||
);
|
||||
}
|
||||
|
||||
:global(.darkApp) .logo {
|
||||
box-shadow: 0 16px 48px rgba(255, 183, 0, 0.25);
|
||||
border-color: rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
:global(.darkApp) .logo:hover {
|
||||
box-shadow: 0 20px 60px rgba(255, 183, 0, 0.35);
|
||||
border-color: rgba(255, 183, 0, 0.4);
|
||||
}
|
||||
|
||||
:global(.darkApp) .logo::before {
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(255, 183, 0, 0.2),
|
||||
rgba(255, 183, 0, 0.05)
|
||||
);
|
||||
}
|
||||
|
||||
/* Enhanced dark theme typography */
|
||||
:global(.darkApp) .homeContainer h5 {
|
||||
color: #ffffff !important;
|
||||
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
|
||||
:global(.darkApp) .homeContainer p {
|
||||
color: #e0e0e0 !important;
|
||||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
:global(.darkApp) .homeContainer h1,
|
||||
:global(.darkApp) .homeContainer h2,
|
||||
:global(.darkApp) .homeContainer h3,
|
||||
:global(.darkApp) .homeContainer h4,
|
||||
:global(.darkApp) .homeContainer h5,
|
||||
:global(.darkApp) .homeContainer h6 {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
:global(.darkApp) .homeContainer p,
|
||||
:global(.darkApp) .homeContainer span {
|
||||
color: #b0b0b0;
|
||||
}
|
||||
|
||||
:global(.darkApp) .homeServiceCard {
|
||||
background-color: rgba(255, 183, 0, 0.12) !important;
|
||||
border-color: #363636 !important;
|
||||
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
|
||||
}
|
||||
|
||||
:global(.darkApp) .homeServiceCard:hover {
|
||||
background-color: #363636 !important;
|
||||
border-color: #424242 !important;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
:global(.darkApp) .socialIcon path {
|
||||
fill: none !important;
|
||||
stroke: #fff !important;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
:global(.darkApp) .socialIcon:hover path {
|
||||
stroke: #fff !important;
|
||||
filter: drop-shadow(0 0 8px #fff);
|
||||
}
|
||||
|
||||
:global(.darkApp) .serviceIcon > path {
|
||||
fill: none !important;
|
||||
stroke: #fff !important;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
:global(.darkApp) .serviceIcon g path {
|
||||
fill: none !important;
|
||||
stroke: #fff !important;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
:global(.darkApp) .serviceIcon:hover > path,
|
||||
:global(.darkApp) .serviceIcon:hover g path {
|
||||
stroke: #fff !important;
|
||||
filter: drop-shadow(0 0 6px #fff);
|
||||
}
|
||||
|
||||
/* Additional dark theme enhancements */
|
||||
:global(.darkApp) .homeContainer::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: linear-gradient(
|
||||
135deg,
|
||||
rgba(0, 0, 0, 0.3) 0%,
|
||||
rgba(0, 0, 0, 0.1) 100%
|
||||
);
|
||||
pointer-events: none;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* :global(.darkApp) .homeContainer > * {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
} */
|
||||
|
||||
/* Glass morphism effect for cards in dark mode */
|
||||
:global(.darkApp) .homeServiceCard {
|
||||
backdrop-filter: blur(12px);
|
||||
border-radius: 50px;
|
||||
}
|
||||
|
||||
/* Enhanced text readability in dark mode */
|
||||
:global(.darkApp) .item-description {
|
||||
color: #b0b0b0 !important;
|
||||
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
:global(.darkApp) .ant-typography {
|
||||
color: #ffffff !important;
|
||||
}
|
||||
|
||||
:global(.darkApp) .ant-typography.ant-typography-secondary {
|
||||
color: #b0b0b0 !important;
|
||||
}
|
||||
|
||||
:global(.darkApp) .deliveryIcon path,
|
||||
:global(.darkApp) .deliveryIcon circle {
|
||||
fill: #fff !important;
|
||||
stroke: #fff !important;
|
||||
transition: all 0.3s ease;
|
||||
}
|
||||
|
||||
.serviceIcon {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.dineInIcon {
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
.pickupIcon {
|
||||
margin-top: -2px;
|
||||
}
|
||||
|
||||
.roomIcon {
|
||||
margin-top: -2px;
|
||||
}
|
||||
|
||||
.officeIcon {
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
.bookingIcon {
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
.deliveryIcon {
|
||||
margin-top: -1px;
|
||||
}
|
||||
|
||||
/* Ultra-wide Desktop Styles (1920px+) */
|
||||
@media (min-width: 1920px) {
|
||||
.homeContainer {
|
||||
padding: 8vh 12vw;
|
||||
max-width: 1600px;
|
||||
gap: 40px;
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: 160px;
|
||||
height: 160px;
|
||||
margin: 0 auto 32px;
|
||||
border-radius: 28px !important;
|
||||
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
|
||||
border: 4px solid rgba(255, 255, 255, 0.98);
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.logo:hover {
|
||||
transform: scale(1.08) rotate(-1deg);
|
||||
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
|
||||
border-color: rgba(255, 183, 0, 0.6);
|
||||
}
|
||||
|
||||
/* Enhanced typography for ultra-wide desktop */
|
||||
.homeContainer h5 {
|
||||
font-size: 32px !important;
|
||||
font-weight: 600 !important;
|
||||
margin-bottom: 16px !important;
|
||||
letter-spacing: -0.6px;
|
||||
}
|
||||
|
||||
.homeContainer p {
|
||||
font-size: 20px !important;
|
||||
line-height: 1.7 !important;
|
||||
max-width: 700px;
|
||||
margin: 0 auto;
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
.homeServiceCard {
|
||||
height: 80px;
|
||||
padding: 24px 32px !important;
|
||||
border-radius: 24px;
|
||||
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
|
||||
}
|
||||
|
||||
.homeServiceCard:hover {
|
||||
transform: translateY(-6px);
|
||||
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
|
||||
.serviceIcon {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
|
||||
/* Enhanced service card typography */
|
||||
.homeServiceCard h5 {
|
||||
font-size: 20px !important;
|
||||
font-weight: 600 !important;
|
||||
letter-spacing: -0.3px;
|
||||
}
|
||||
|
||||
.servicesGrid {
|
||||
max-width: 1200px;
|
||||
gap: 24px;
|
||||
padding: 0 40px;
|
||||
margin: 40px 0;
|
||||
}
|
||||
|
||||
.servicesGrid.twoColumns {
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
.servicesGrid.manyServices {
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
/* Social icons for ultra-wide desktop */
|
||||
.socialIconsContainer {
|
||||
gap: 36px;
|
||||
padding: 20px 36px;
|
||||
border-radius: 70px;
|
||||
bottom: 40px;
|
||||
}
|
||||
|
||||
.socialIcon {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
}
|
||||
|
||||
.socialIcon:hover {
|
||||
transform: scale(1.25);
|
||||
filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
|
||||
}
|
||||
}
|
||||
|
||||
/* Enhanced responsive behavior for very tall screens */
|
||||
@media (min-height: 1000px) {
|
||||
.homeContainer {
|
||||
justify-content: center;
|
||||
/* padding-top: 15vh; */
|
||||
}
|
||||
}
|
||||
|
||||
/* Enhanced responsive behavior for very short screens */
|
||||
@media (max-height: 600px) {
|
||||
.homeContainer {
|
||||
gap: 20px;
|
||||
padding: 4vh 6vw;
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: 80px;
|
||||
height: 80px;
|
||||
margin-bottom: 16px;
|
||||
border-radius: 12px !important;
|
||||
border: 2px solid rgba(255, 255, 255, 0.6);
|
||||
}
|
||||
|
||||
.servicesGrid {
|
||||
margin: 16px 0;
|
||||
}
|
||||
|
||||
.socialIconsContainer {
|
||||
bottom: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Landscape orientation optimizations */
|
||||
@media (orientation: landscape) and (max-height: 768px) {
|
||||
.homeContainer {
|
||||
gap: 24px;
|
||||
padding: 4vh 8vw;
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
margin-bottom: 16px;
|
||||
border-radius: 16px !important;
|
||||
border: 2px solid rgba(255, 255, 255, 0.7);
|
||||
}
|
||||
|
||||
.homeContainer h5 {
|
||||
font-size: 24px !important;
|
||||
margin-bottom: 8px !important;
|
||||
}
|
||||
|
||||
.homeContainer p {
|
||||
font-size: 14px !important;
|
||||
}
|
||||
|
||||
.homeServiceCard {
|
||||
height: 60px;
|
||||
padding: 16px 24px !important;
|
||||
}
|
||||
|
||||
.servicesGrid {
|
||||
margin: 16px 0;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.socialIconsContainer {
|
||||
bottom: 20px;
|
||||
padding: 12px 24px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user