-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from vtexdocs/Tutorial-landing-page-new-version
feat: new tutorial landing page version
- Loading branch information
Showing
16 changed files
with
60,975 additions
and
55,835 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,34 @@ | ||
import { Box, Flex, IconCaret, Text, Link } from '@vtex/brand-ui' | ||
|
||
import type { WhatsNextDataElementTutorial } from 'utils/typings/types' | ||
|
||
import styles from '../styles' | ||
|
||
const WhatsNextCardTutorial = ({ | ||
title, | ||
linkTitle, | ||
linkTo, | ||
}: WhatsNextDataElementTutorial) => { | ||
return ( | ||
<Link href={linkTo} sx={styles.container}> | ||
<Box> | ||
<Text sx={styles.title} className="title"> | ||
{title} | ||
</Text> | ||
<Flex sx={styles.linkContainer}> | ||
<Text sx={styles.link} className="link"> | ||
{linkTitle} | ||
</Text> | ||
<IconCaret | ||
className="caret" | ||
color="#A1A8B3" | ||
direction="right" | ||
size={16} | ||
/> | ||
</Flex> | ||
</Box> | ||
</Link> | ||
) | ||
} | ||
|
||
export default WhatsNextCardTutorial |
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,55 @@ | ||
import type { SxStyleProp } from '@vtex/brand-ui' | ||
|
||
const container: SxStyleProp = { | ||
mt: '16px', | ||
padding: '16px', | ||
borderRadius: '4px', | ||
border: '1px solid #E7E9EE', | ||
width: ['100%', '49%'], | ||
transition: 'all 0.3s ease-out', | ||
':hover': { | ||
cursor: 'pointer', | ||
}, | ||
':active, :hover': { | ||
borderColor: 'muted.2', | ||
boxShadow: '0px 0px 16px rgba(0, 0, 0, 0.1)', | ||
transition: 'all 0.3 ease-out', | ||
|
||
'.title, .description': { | ||
transition: 'all 0.3s ease-out', | ||
color: '#000711', | ||
}, | ||
|
||
'.link, .caret': { | ||
transition: 'all 0.3s ease-out', | ||
color: 'muted.0', | ||
}, | ||
}, | ||
} | ||
|
||
const title: SxStyleProp = { | ||
mb: '8px', | ||
fontSize: '16px', | ||
fontWeight: '400', | ||
lineHeight: ['22px', '18px'], | ||
color: 'muted.0', | ||
} | ||
|
||
const description: SxStyleProp = { | ||
fontSize: '12px', | ||
fontWeight: '400', | ||
lineHeight: '16px', | ||
color: 'muted.0', | ||
} | ||
|
||
const linkContainer: SxStyleProp = { | ||
mt: '8px', | ||
alignItems: 'center', | ||
} | ||
|
||
const link: SxStyleProp = { | ||
...description, | ||
color: 'muted.1', | ||
} | ||
|
||
export default { container, title, description, linkContainer, link } |
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
Oops, something went wrong.