-
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.
WIP: Add cursive font variants to themeFonts and update Hero component
- Add 'heading' and 'body' cursive font variants to the themeFonts object in fonts.ts - Update the Hero component in Hero.tsx to use the 'cursive' variant for the heading - Create new files text.ts and heading.ts in the theme/components directory to define the 'cursive' variant for the Text and Heading components respectively - Import and use the 'cursive' variant in the Text and Heading components in the Muffin section
- Loading branch information
1 parent
26bd248
commit adb5cf4
Showing
28 changed files
with
1,105 additions
and
49 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
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import { | ||
Image, | ||
Box, | ||
Container, | ||
Heading, | ||
Text, | ||
GridItem, | ||
Grid | ||
} from '@chakra-ui/react' | ||
import { Field } from '@atsnek/jaen' | ||
|
||
const Muffin = () => { | ||
return ( | ||
<Container | ||
as="section" | ||
maxW="4xl" | ||
borderRadius="2xl" | ||
mb={{ base: '0', lg: '16' }} | ||
position="relative" | ||
overflow={{ base: 'hidden', lg: 'visible' }} | ||
px={{ base: 5, lg: 0 }} | ||
py={8} | ||
zIndex={0}> | ||
<Image | ||
margin="0 auto" | ||
mb="8" | ||
src="images/svg/muffin.svg" | ||
alt="muffin" | ||
/> | ||
<Field.Text | ||
as={Heading} | ||
variant="cursive" | ||
mb="8" | ||
size={{ base: 'sm', lg: 'md' }} | ||
style={{ animationDelay: '300ms' }} | ||
fontWeight="500" | ||
//textTransform="uppercase" | ||
lineHeight="1.5em" | ||
//letterSpacing="4.2px" | ||
textAlign="center" | ||
name="MuffinSectionHeading1" | ||
defaultValue="Gesunde Ernährung lässt sich nur nachhaltig beibehalten, wenn du dich damit wohl fühlst." | ||
/> | ||
</Container> | ||
) | ||
} | ||
|
||
export default Muffin | ||
|
Oops, something went wrong.