Skip to content

Commit 45a926f

Browse files
committed
feat(components): add section new proprierties on header and remove animations on subsection
1 parent a49717b commit 45a926f

2 files changed

Lines changed: 6 additions & 32 deletions

File tree

src/components/Section/SubSection/animations.tsx

Lines changed: 5 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,46 +4,20 @@ import { cva } from 'class-variance-authority'
44

55
export const animationVariants = cva('', {
66
variants: {
7-
color_small: {
8-
gray_300: 'bg-gray-300',
9-
gray_400: 'bg-slate-400',
10-
rose_200: 'bg-rose-200',
11-
rose_250: 'bg-rose-250',
12-
green_200: 'bg-green-200',
13-
green_300: 'bg-green-300',
14-
},
157
color_big: {
168
gray_300: 'bg-gray-300',
17-
gray_400: 'bg-slate-400',
9+
gray_400: 'bg-gradient-to-tl from-gray-400 via-gray-900 to-black',
1810
rose_200: 'bg-rose-200',
19-
rose_250: 'bg-rose-250',
11+
rose_250: 'bg-gradient-to-tl from-gray-300 via-pink-400 to-pink-600',
2012
green_200: 'bg-green-200',
21-
green_300: 'bg-green-300',
13+
green_300: 'bg-gradient-to-tl from-gray-300 via-green-500 to-green-700',
2214
},
2315
},
2416
})
2517

26-
const AnimationBacklight = ({
27-
color_small,
28-
color_big,
29-
}: AnimationBacklightProps) => {
18+
const AnimationBacklight = ({ color_big }: AnimationBacklightProps) => {
3019
return (
3120
<>
32-
<div
33-
className={
34-
'absolute left-0 top-0 -z-10 h-24 w-64 animate-spin animate-duration-[120s]'
35-
}
36-
>
37-
<div
38-
className={cn(
39-
animationVariants({
40-
color_small,
41-
className:
42-
'absolute left-0 top-0 h-4 w-4 animate-bounce rounded-full blur-sm animate-duration-[180s]',
43-
})
44-
)}
45-
></div>
46-
</div>
4721
<div
4822
className={
4923
'absolute bottom-0 left-0 -z-10 h-24 w-44 animate-spin animate-duration-[120s]'
@@ -54,7 +28,7 @@ const AnimationBacklight = ({
5428
animationVariants({
5529
color_big,
5630
className:
57-
'absolute left-0 top-0 h-8 w-8 animate-bounce rounded-full blur-sm animate-duration-[180s]',
31+
'absolute left-0 top-0 h-6 w-6 animate-bounce rounded-full animate-duration-[180s]',
5832
})
5933
)}
6034
></div>

src/components/Section/header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const SectionHeader = ({
88
}: OptReactCompProps<HTMLDivElement>) => (
99
<div
1010
className={cn(
11-
'via-red flex flex-col space-y-1 rounded-full bg-[radial-gradient(ellipse_at_center,_var(--tw-gradient-stops))] from-white via-red-400 to-transparent to-50% px-10 py-6 text-neutral-950 md:min-w-[502px]',
11+
'relative flex flex-col space-y-1 px-10 py-6 text-8xl font-extrabold text-white md:min-w-[502px]',
1212
className
1313
)}
1414
{...props}

0 commit comments

Comments
 (0)