Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Boutzi committed Oct 23, 2024
1 parent f47d853 commit 118c238
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
6 changes: 4 additions & 2 deletions app/[locale]/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ export default async function RootLayout({
{/* <LoaderProvider> */}
<GlobalStatus />
<Header />
<LoaderProvider>{children}</LoaderProvider>
<Footer />
<LoaderProvider>
{children}
<Footer />
</LoaderProvider>
{/* </LoaderProvider> */}
</ColorProvider>
</ThemeProvider>
Expand Down
10 changes: 5 additions & 5 deletions components/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ function Hero() {
</div> */}
<Section className="z-10 flex max-lg:flex-col items-center justify-between gap-6 min-h-[calc(100vh-400px)] max-lg:pt-8 max-lg:pb-8 max-md:pt-4 max-md:mx-auto">
<div className="flex-[3] flex flex-col gap-2">
<h1 className="drop-shadow-lg font-caption text-6xl font-bold text-primary max-md:text-4xl max-sm:text-3xl max-xl:text-6xl max-lg:text-5xl">
<h1 className="drop-shadow-lg font-caption text-7xl font-bold text-primary max-md:text-4xl max-sm:text-3xl max-xl:text-6xl max-lg:text-5xl">
{hero?.titleIntro}
<br />
<span className="text-7xl max-md:text-4xl">
{hero?.titleMain}
</span>
<span className="">{hero?.titleMain}</span>
<br />
<span className="text-white">{hero?.titleOutro}</span>
<span className="text-white text-6xl max-md:text-4xl">
{hero?.titleOutro}
</span>
</h1>
<h2 className="font-caption font-extralight text-xl max-sm:text-xl text-white">
{hero?.subFirst}
Expand Down
2 changes: 1 addition & 1 deletion context/LoaderContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const LoaderProvider = ({ children }: { children: ReactNode }) => {
const hideLoader = () => {
const timeout = setTimeout(() => {
setIsLoading(false);
}, 1500);
}, 2000);
return () => clearTimeout(timeout);
};

Expand Down

0 comments on commit 118c238

Please sign in to comment.