-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update initial screen to match design
- Loading branch information
1 parent
23fbe55
commit 8d2f2eb
Showing
7 changed files
with
74 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
import React from "react"; | ||
|
||
import { Image } from "@chakra-ui/react"; | ||
import { Image, ImageProps } from "@chakra-ui/react"; | ||
|
||
import makiLogo from "../assets/maki-default.png"; | ||
|
||
export const MakiLogo: React.FC<{ size?: string | number }> = ({ size = 100 }) => { | ||
return <Image boxSize={size} objectFit="cover" src={makiLogo} alt="Maki logo" />; | ||
export const MakiLogo: React.FC<{ size?: string | number } & ImageProps> = ({ | ||
size = 100, | ||
...props | ||
}) => { | ||
return <Image boxSize={size} objectFit="cover" src={makiLogo} alt="Maki logo" {...props} />; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
import "react-responsive-carousel/lib/styles/carousel.min.css"; | ||
import { CircleIcon, SupportedIcons } from "./CircleIcon"; | ||
import { Box, Text } from "@chakra-ui/react"; | ||
import { Box, Flex, Heading } from "@chakra-ui/react"; | ||
import { SlideritemRecord } from "../graphql/generated"; | ||
import colors from "../style/colors"; | ||
|
||
export default function SlideItem({ item }: { item: SlideritemRecord }) { | ||
return ( | ||
<Box data-testid={`slide-${item.id}`} bg={colors.gray[900]} paddingBottom="35px"> | ||
<Box data-testid={`slide-${item.id}`} paddingBottom="35px"> | ||
<Box | ||
paddingLeft="50px" | ||
paddingRight="50px" | ||
backgroundRepeat="no-repeat" | ||
backgroundPosition="top" | ||
__css={{ | ||
backgroundImage: `linear-gradient(to bottom, rgba(245, 246, 252, 0), rgba(0, 0, 0, 1)), url(${item.image?.url})`, | ||
}} | ||
height="400px" | ||
></Box> | ||
<CircleIcon size="58px" icon={item.icon as SupportedIcons} /> | ||
<Text margin="50px">{item.text}</Text> | ||
<Flex flexDirection="column"> | ||
<CircleIcon size="58px" iconSize="24px" icon={item.icon as SupportedIcons} /> | ||
<Heading margin="16px 50px 50px 50px">{item.text}</Heading> | ||
</Flex> | ||
</Box> | ||
); | ||
} |