File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ } ;
Original file line number Diff line number Diff line change @@ -9,28 +9,35 @@ import Image from "next/image";
99import { Logo , Logos } from "@/component-library/logos" ;
1010
1111export type ProjectsProps = {
12+ className ?: string ;
1213 title ?: React . ReactNode ;
1314 projects ?: ( CompanyStatsCardProps & { colSpan ?: number } ) [ ] ;
1415 bgSrc ?: string ;
1516 logos ?: Logo [ ] ;
1617} ;
1718
1819export 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 }
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ import { YouTubePlaylistItem } from "@/lib/youtube/types";
2929import { getAllPlaylistItems } from "@/lib/youtube/getYoutubePlaylist" ;
3030import { Community } from "@/components/index/community" ;
3131import { WhatsUp } from "@/components/index/whats-up" ;
32+ import { Decor } from "@/components/index/decor" ;
3233
3334const 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 ) => (
You can’t perform that action at this time.
0 commit comments