Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit e240662

Browse files
author
Manuel Proß
committed
fix(web): move header background to header to prevent appearence on other routes
1 parent f39156b commit e240662

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

web/src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default function Home() {
1010
const { data } = useSWR(`/api/${Routes.homepage}`, fetcher);
1111

1212
return (
13-
<main className="relative z-1 pb-12">
13+
<main className="pb-12">
1414
{data && (
1515
<>
1616
<Hero headline={data.Hero.headline} list={data.Hero.list} cta={data.Hero.cta} />

web/src/components/Layout/Layout.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ export default function Layout({ children, pages }: PropsWithChildren<LayoutProp
1414
</div>
1515
<div className="pt-4">
1616
<div className="relative rounded-t py-12 px-20 bg-gray-5">
17-
<span className="absolute top-[13rem] right-2 left-2 font-fira text-[12rem] md:hero-bg-text-clamp leading-[400px] text-gray-2 font-bold text-center">
18-
Vim
19-
</span>
2017
{children}
2118
<Footer />
2219
</div>

web/src/components/Strapi/Sections/HeroSection.tsx

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,22 @@ import List from "../Common/List";
44

55
export default function Hero({ headline, cta, list }: HeroSection) {
66
return (
7-
<div className="flex flex-col justify-end pb-[48rem] h-screen max-w-7xl">
8-
{headline && <h1 className="h1-prefix">{headline}</h1>}
9-
<div className="flex justify-between">
10-
{list && <List list={list} />}
11-
{cta && (
12-
<div className="flex">
13-
<Link className="btn-primary mt-auto mb-0" href={cta.url}>
14-
{cta.text}
15-
</Link>
16-
</div>
17-
)}
7+
<div className="relative flex flex-col justify-end pb-[48rem] h-screen max-w-7xl">
8+
<span className="absolute z-0 top-[13rem] right-2 left-2 font-fira text-[12rem] md:hero-bg-text-clamp leading-[400px] text-gray-2 font-bold text-center">
9+
Vim
10+
</span>
11+
<div className="z-10">
12+
{headline && <h1 className="h1-prefix">{headline}</h1>}
13+
<div className="flex justify-between">
14+
{list && <List list={list} />}
15+
{cta && (
16+
<div className="flex">
17+
<Link className="btn-primary mt-auto mb-0" href={cta.url}>
18+
{cta.text}
19+
</Link>
20+
</div>
21+
)}
22+
</div>
1823
</div>
1924
</div>
2025
);

0 commit comments

Comments
 (0)