-
Notifications
You must be signed in to change notification settings - Fork 1
/
PanelRightBrand.tsx
43 lines (37 loc) · 1.16 KB
/
PanelRightBrand.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { Box, Container, Hide, SimpleGrid, Stack, Text } from "@chakra-ui/react";
import Image from "next/image";
import Link from "next/link";
import pig from "../../assets/pig.png";
import logo from "../../assets/_light/logo.png";
interface Props {
children: React.ReactNode;
}
export default function PanelRightBrand({ children }: Props) {
return (
<>
<SimpleGrid columns={{ md: 2, sm: 1 }} spacing={0} w="100%" h="100%">
<Box h="calc(100vh)">{children}</Box>
<Hide below="md">
<Box bg="primary.500" h="calc(100vh)">
<Container p={20}>
<Stack spacing={4} alignItems="center" mt={5}>
<Link href="/">
<Image
src={logo}
alt="Brand Image"
style={{ height: "auto", width: "90%" }}
/>
</Link>
<Image
src={pig}
alt="Pig Image"
style={{ height: "auto", width: "65%", marginTop: "40px" }}
/>
</Stack>
</Container>
</Box>
</Hide>
</SimpleGrid>
</>
);
}