MenuSkeleton: update logo
This commit is contained in:
@@ -27,43 +27,30 @@
|
|||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 33px;
|
left: 19px !important;
|
||||||
top: -64px;
|
top: 131px !important;
|
||||||
width: 72px;
|
width: 70px !important;
|
||||||
height: 72px;
|
height: 70px !important;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
border: 3px solid var(--background);
|
border: 3px solid var(--background) !important;
|
||||||
z-index: 10;
|
z-index: 11 !important;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.leftShape {
|
.logoContainerIcon {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 133px;
|
left: 0 !important;
|
||||||
width: 47px;
|
top: 127px !important;
|
||||||
height: 50px;
|
z-index: 10 !important;
|
||||||
left: -11px;
|
|
||||||
background-color: var(--background);
|
|
||||||
clip-path: path("M 0 53 Q 50 50, 50 0 Q 50 50, 100 100 L 0 100 Z");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:global(.darkApp) .leftShape {
|
|
||||||
background-color: var(--background);
|
:global(.ant-app-rtl) .logo {
|
||||||
|
right: 19px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rightShape {
|
:global(.ant-app-rtl) .logoContainerIcon {
|
||||||
position: absolute;
|
right: -10px;
|
||||||
top: 133px;
|
|
||||||
width: 47px;
|
|
||||||
height: 50px;
|
|
||||||
left: 102px;
|
|
||||||
background-color: var(--background);
|
|
||||||
clip-path: path("M 0 53 Q 50 50, 50 0 Q 50 50, 100 100 L 0 100 Z");
|
|
||||||
transform: scale(-1, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
:global(.darkApp) .rightShape {
|
|
||||||
background-color: var(--background);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Menu Section Styles */
|
/* Menu Section Styles */
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { Card, Skeleton } from "antd";
|
import { Card, Skeleton } from "antd";
|
||||||
|
import LogoContainerIcon from "components/Icons/LogoContainerIcon";
|
||||||
import useBreakPoint from "hooks/useBreakPoint";
|
import useBreakPoint from "hooks/useBreakPoint";
|
||||||
import styles from "./MenuSkeleton.module.css";
|
import styles from "./MenuSkeleton.module.css";
|
||||||
|
|
||||||
@@ -117,25 +118,10 @@ const MenuSkeleton = ({
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
{/* Logo Skeleton */}
|
{/* Logo Skeleton */}
|
||||||
<Skeleton.Image
|
<LogoContainerIcon className={styles.logoContainerIcon} />
|
||||||
active
|
<div className={styles.logo}>
|
||||||
style={{
|
<Skeleton.Image active />
|
||||||
position: "absolute",
|
</div>
|
||||||
left: isMobile ? "33px" : isTablet ? "40px" : "36px",
|
|
||||||
top: isMobile ? "133px" : isTablet ? "150px" : "130px",
|
|
||||||
borderRadius: "50%",
|
|
||||||
width: isMobile ? "72px" : isTablet ? "80px" : "150px",
|
|
||||||
height: isMobile ? "72px" : isTablet ? "80px" : "150px",
|
|
||||||
border: "3px solid var(--background)",
|
|
||||||
zIndex: 10,
|
|
||||||
overflow: "hidden",
|
|
||||||
padding: 10
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
|
|
||||||
{/* Decorative Shap es Skeleton */}
|
|
||||||
<div className={styles.leftShape}></div>
|
|
||||||
<div className={styles.rightShape}></div>
|
|
||||||
</div>
|
</div>
|
||||||
<div className={`${styles.pageContainer} ${styles.skeletonContainer}`}>
|
<div className={`${styles.pageContainer} ${styles.skeletonContainer}`}>
|
||||||
{/* Restaurant Info Skeleton */}
|
{/* Restaurant Info Skeleton */}
|
||||||
@@ -340,9 +326,7 @@ const MenuSkeleton = ({
|
|||||||
/>
|
/>
|
||||||
</div> */}
|
</div> */}
|
||||||
|
|
||||||
<div
|
<div className={`${styles.menuItemsGrid}`}>
|
||||||
className={`${styles.menuItemsGrid}`}
|
|
||||||
>
|
|
||||||
{Array.from({
|
{Array.from({
|
||||||
length:
|
length:
|
||||||
variant === "minimal"
|
variant === "minimal"
|
||||||
|
|||||||
Reference in New Issue
Block a user