last update

This commit is contained in:
Ehsan
2025-05-11 12:13:23 +03:30
parent f2e880c721
commit e4771c4e2f
13 changed files with 79 additions and 84 deletions
+5 -13
View File
@@ -1,12 +1,7 @@
"use client";
import { getStateInfo } from "@/lib/getStateInfo";
import Footer from "./footer";
import Header from "./header";
// AOS
import Aos from "aos";
import "aos/dist/aos.css";
import { useEffect } from "react";
import Sidebar from "./sidebar";
function Layout({
@@ -23,9 +18,7 @@ function Layout({
value,
setValue,
}) {
useEffect(() => {
Aos.init({ duration: 1000 });
}, []);
const { matchedCity } = getStateInfo();
return (
<div>
@@ -41,10 +34,9 @@ function Layout({
<section
className={`
opacity-page -mt-[calc(48px_+_12px)] sm:-mt-[calc(56px_+_21px)] md:-mt-[calc(64px_+_30px)] lg:-mt-[calc(80px_+_40px)]
${
isSidebar &&
"padding-responsive min-h-screen flex items-stretch justify-center gap-[12px] lg:gap-[24px] pt-[76px] sm:pt-[109px] mt:pt-[142px] lg:pt-[176px]"
}
${isSidebar &&
"padding-responsive min-h-screen flex items-stretch justify-center gap-[12px] lg:gap-[24px] pt-[76px] sm:pt-[109px] mt:pt-[142px] lg:pt-[176px]"
}
`}
>
{isSidebar && (