File tree Expand file tree Collapse file tree 2 files changed +24
-13
lines changed Expand file tree Collapse file tree 2 files changed +24
-13
lines changed Original file line number Diff line number Diff line change
1
+ import React from "react" ;
2
+ import { Stack } from "@chakra-ui/react" ;
3
+
4
+ export default function Card ( { children } : { children : React . ReactNode } ) {
5
+ return (
6
+ < Stack
7
+ w = "full"
8
+ align = { "center" }
9
+ justify = { "center" }
10
+ bgColor = { "card-bg-3" }
11
+ color = { "white" }
12
+ border = "1px solid"
13
+ borderColor = "card-border-3"
14
+ padding = "var(--card-padding)"
15
+ borderRadius = { 20 }
16
+ gapY = { 10 }
17
+ >
18
+ { children }
19
+ </ Stack >
20
+ ) ;
21
+ }
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import {
13
13
} from "@chakra-ui/react" ;
14
14
import Link from "next/link" ;
15
15
import Logo from "@/components/ui/internal/logo" ;
16
+ import Card from "@/components/ui/internal/card" ;
16
17
import { LogoType } from "@/components/ui/internal/logo" ;
17
18
import { useWindowType } from "@/hooks/use-window-type" ;
18
19
import { SocialMediaLinks } from "../socialmedialinks" ;
@@ -41,18 +42,7 @@ export default function Footer() {
41
42
const textopacity = 0.8 ;
42
43
return (
43
44
< Flex px = { "var(--global-spacing)" } >
44
- < Stack
45
- w = "full"
46
- align = { "center" }
47
- justify = { "center" }
48
- bgColor = { "card-bg-3" }
49
- color = { "white" }
50
- border = "1px solid"
51
- borderColor = "card-border-3"
52
- padding = "var(--card-padding)"
53
- borderRadius = { 20 }
54
- gapY = { 10 }
55
- >
45
+ < Card >
56
46
< Logo
57
47
logoType = { LogoType . White }
58
48
width = { isDesktop ? 180 : 110 }
@@ -202,7 +192,7 @@ export default function Footer() {
202
192
All rights reserved to IEEE-ZSB
203
193
</ Text >
204
194
</ Stack >
205
- </ Stack >
195
+ </ Card >
206
196
</ Flex >
207
197
) ;
208
198
}
You can’t perform that action at this time.
0 commit comments