Skip to content

Commit 8021de0

Browse files
committed
feat(components): add new section proprierties
1 parent c23ec0a commit 8021de0

5 files changed

Lines changed: 16 additions & 57 deletions

File tree

src/components/Section/SubSection/animations.tsx

Lines changed: 0 additions & 40 deletions
This file was deleted.

src/components/Section/SubSection/content.tsx

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,19 @@
1-
import { Children, IllustrationProps } from '@/@types/components'
2-
3-
import { AnimationBacklight } from './animations'
1+
import { Children } from '@/@types/components'
42

53
const Container = ({ children }: Children) => (
6-
<div className="flex flex-col items-center gap-16 md:grid md:grid-cols-section-1 md:gap-0">
4+
<div className="grid grid-cols-1 grid-rows-2 place-items-center items-center gap-16 md:grid-cols-section-1 md:grid-rows-1 md:gap-0">
75
{children}
86
</div>
97
)
108

11-
const Illustration = ({
12-
children,
13-
color_big,
14-
color_small,
15-
}: IllustrationProps) => (
16-
<div className="relative flex justify-center">
17-
<AnimationBacklight color_small={color_small} color_big={color_big} />
9+
const Illustration = ({ children }: Children) => (
10+
<div className="relative flex min-w-[200px] items-center justify-center lg:ml-8">
1811
{children}
1912
</div>
2013
)
2114

2215
const Description = ({ children }: Children) => (
23-
<div className="md:pl-4 md:pr-24">{children}</div>
16+
<div className="md:pl-8 md:pr-12">{children}</div>
2417
)
2518

2619
const Content = {

src/components/Section/SubSection/links.tsx

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
1-
import { Children } from '@/@types/components'
1+
import { OptChildClassNameProps } from '@/@types/components'
2+
import { cn } from '@/utils/cn'
23

3-
const Container = ({ children }: Children) => (
4-
<div className="grid min-h-[200px] w-full grid-cols-1 grid-rows-3 place-items-center justify-items-center md:gap-2">
4+
const Container = ({ children, className }: OptChildClassNameProps) => (
5+
<div
6+
className={cn(
7+
'grid min-h-[200px] w-full grid-cols-1 grid-rows-3 place-items-center justify-items-center md:gap-2',
8+
className
9+
)}
10+
>
511
{children}
612
</div>
713
)

src/components/Section/content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const SectionContent = ({
88
}: OptReactCompProps<HTMLDivElement>) => (
99
<div
1010
className={cn(
11-
'flex w-full flex-col gap-8 border-0 bg-inherit p-6 pl-4 pt-0 indent-2 text-base font-normal text-white shadow-none sm:text-lg md:min-h-[200px] md:grid-rows-1 md:gap-y-16 lg:grid lg:grid-cols-section-content lg:gap-8',
11+
'grid w-full border-0 bg-inherit p-6 pt-0 text-justify indent-2 text-base font-normal text-white shadow-none sm:text-lg md:min-h-[200px] md:grid-rows-1 md:gap-y-16 lg:grid lg:grid-cols-section-content',
1212
className
1313
)}
1414
{...props}

src/components/Section/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const Container = ({
1919
return (
2020
<Comp
2121
className={cn(
22-
'flex w-full max-w-[90rem] flex-wrap items-center gap-8 rounded-xl px-0 text-white sm:px-14 md:min-h-[17rem] md:gap-y-10',
22+
'flex w-full max-w-[90rem] flex-wrap items-center gap-8 rounded-xl px-0 text-white sm:px-14 md:min-h-[17rem] md:gap-y-10',
2323
className
2424
)}
2525
{...props}

0 commit comments

Comments
 (0)