Skip to content

Commit d6993ee

Browse files
committed
Add decoration
1 parent ccedae6 commit d6993ee

7 files changed

Lines changed: 80 additions & 2 deletions

File tree

6.83 KB
Loading
Lines changed: 23 additions & 0 deletions
Loading
102 KB
Loading
86.8 KB
Loading
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import React from "react";
2+
3+
export const Decor = () => {
4+
return (
5+
<div>
6+
<div className="pb-twd-20 xl:pb-twd-10"></div>
7+
<div className="relative pointer-events-none h-0 z-0">
8+
<div className="relative top-0 left-0 h-[900px] md:h-[800px] xl:h-[900px] -translate-y-1/2 overflow-hidden">
9+
<img
10+
className="absolute top-0 left-0 w-full h-1/2 object-cover"
11+
src="/src/img/index/decor-bg.webp"
12+
alt=""
13+
loading="lazy"
14+
/>
15+
<img
16+
className="absolute bottom-0 left-0 w-full h-1/2 rotate-180 object-cover"
17+
src="/src/img/index/decor-bg.webp"
18+
alt=""
19+
loading="lazy"
20+
/>
21+
<div className="absolute top-[50%] left-[50%] w-0 h-0">
22+
<img
23+
className="object-cover max-w-none absolute bottom-0 right-[-180px] md:right-[-225px] xl:right-[-210px] w-[1158px] h-[145px] xl:h-[165px] mix-blend-plus-lighter"
24+
src="/src/img/index/decor-part-top.png"
25+
alt=""
26+
width="1158"
27+
height="165"
28+
loading="lazy"
29+
/>
30+
<img
31+
className="object-cover max-w-none absolute top-0 left-[-220px] w-[1195px] h-[143px] mix-blend-plus-lighter"
32+
src="/src/img/index/decor-part-bottom.png"
33+
alt=""
34+
width="1195"
35+
height="143"
36+
loading="lazy"
37+
/>
38+
</div>
39+
</div>
40+
</div>
41+
<div className="pb-twd-10 xl:pb-twd-0"></div>
42+
</div>
43+
);
44+
};

apps/web/src/components/index/projects.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,35 @@ import Image from "next/image";
99
import { Logo, Logos } from "@/component-library/logos";
1010

1111
export type ProjectsProps = {
12+
className?: string;
1213
title?: React.ReactNode;
1314
projects?: (CompanyStatsCardProps & { colSpan?: number })[];
1415
bgSrc?: string;
1516
logos?: Logo[];
1617
};
1718

1819
export const Projects: React.FC<ProjectsProps> = ({
20+
className,
1921
title,
2022
projects,
2123
bgSrc,
2224
logos,
2325
}) => {
2426
let colCounter = 0;
2527
return (
26-
<section className="relative overflow-hidden bg-nd-inverse text-nd-high-em-text text-left m-twd-0">
28+
<section
29+
className={cn(
30+
"relative overflow-hidden text-nd-high-em-text text-left m-twd-0",
31+
className,
32+
)}
33+
>
2734
<Container className="py-[64px] md:py-[108px] xl:py-[160px] flex flex-col justify-between relative">
2835
<div className="flex flex-col xl:flex-row gap-[52px] justify-between items-start">
2936
<div className="xl:max-w-[70%] grow-0">
3037
{title && <h2 className="nd-heading-l">{title}</h2>}
3138
</div>
3239
</div>
33-
<div className="mt-twd-10 xl:mt-twd-16 rounded-2xl border-nd-border-light border-[1px] overflow-hidden relative">
40+
<div className="mt-twd-10 xl:mt-twd-16 rounded-2xl border-nd-border-light border-[1px] bg-nd-inverse overflow-hidden relative">
3441
<Image
3542
className="opacity-30"
3643
src={bgSrc}

apps/web/src/pages/[locale]/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import { YouTubePlaylistItem } from "@/lib/youtube/types";
2929
import { getAllPlaylistItems } from "@/lib/youtube/getYoutubePlaylist";
3030
import { Community } from "@/components/index/community";
3131
import { WhatsUp } from "@/components/index/whats-up";
32+
import { Decor } from "@/components/index/decor";
3233

3334
const TransactionsStat = dynamic(
3435
() =>
@@ -190,6 +191,7 @@ export default function Home({
190191
<Divider />
191192

192193
<Projects
194+
className="z-1"
193195
title={t.rich("index.projects.title", {
194196
light: (chunks) => (
195197
<>
@@ -208,6 +210,8 @@ export default function Home({
208210
logos={PROJECTS_LOGOS}
209211
/>
210212

213+
<Decor />
214+
211215
<CardCariuselSection
212216
title={t.rich("index.news.title", {
213217
light: (chunks) => (

0 commit comments

Comments
 (0)