-
Notifications
You must be signed in to change notification settings - Fork 10
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 #1762 from natura-cosmeticos/DSY-3195
Dsy 3195 -Codificar Template "Home" (JCB)
- Loading branch information
Showing
25 changed files
with
1,123 additions
and
16 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
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,3 @@ | ||
export interface HomeProps { | ||
data?: [][] | ||
} |
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,25 @@ | ||
import React from 'react' | ||
import { Story, Meta } from '@storybook/react' | ||
import Home from './Home' | ||
|
||
const componentStatus = ` | ||
- - - | ||
**NOTE FOR UXs**: This is exemplo template: | ||
- - - | ||
` | ||
|
||
export default { | ||
title: 'Templates/Home', | ||
component: Home, | ||
parameters: { | ||
componentSubtitle: 'This is an example of implementing the theme on a Home page', | ||
docs: { description: { component: componentStatus } } | ||
} | ||
} as Meta | ||
|
||
export const Playground: Story = () => ( | ||
|
||
<Home /> | ||
|
||
) |
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,185 @@ | ||
/* eslint-disable max-len */ | ||
import { createUseStyles } from 'react-jss' | ||
import { Theme } from '@naturacosmeticos/natds-themes' | ||
|
||
const styles = createUseStyles((theme: Theme) => ({ | ||
|
||
container: { | ||
display: 'flex', | ||
fontFamily: [theme.tag.label.primary.fontFamily, theme.tag.label.fallback.fontFamily], | ||
alignItems: 'center', | ||
flexDirection: 'column', | ||
border: ' 1px solid #0000001F', | ||
gap: theme.size.micro, | ||
// backgroundColor: theme.color.primary, | ||
boxSizing: '-moz-initial', | ||
maxWidth: 1280, | ||
minWidth: 360, | ||
width: '100%', | ||
fontWeight: theme.typography.fontWeight.medium, | ||
fontSize: theme.typography.fontSize.level2 | ||
}, | ||
containerSwitchTheme: { | ||
display: 'flex', | ||
width: '100%', | ||
padding: 24, | ||
boxSizing: 'border-box', | ||
gap: 24 | ||
// border: '1px solid red' | ||
// backgroundColor: '#FAFAFA' | ||
}, | ||
containerSlides: { | ||
display: 'flex', | ||
flexDirection: 'column', | ||
width: '100%', | ||
padding: 24, | ||
boxSizing: 'border-box', | ||
gap: 24 | ||
// border: '1px solid red' | ||
// backgroundColor: '#FAFAFA' | ||
}, | ||
containerBanner: { | ||
display: 'flex', | ||
width: '100%', | ||
height: 464, | ||
padding: 0, | ||
boxSizing: 'border-box', | ||
backgroundColor: '#BBBBBB66' | ||
}, | ||
wrapperBrandButtons: { | ||
display: 'flex', | ||
width: '100%', | ||
padding: 0, | ||
boxSizing: 'border-box', | ||
gap: 16 | ||
// border: '1px solid red' | ||
}, | ||
wrapperColumn: { | ||
display: 'flex', | ||
flexDirection: 'column', | ||
width: '100%', | ||
padding: 0, | ||
boxSizing: 'border-box', | ||
gap: 16 | ||
// border: '1px solid red' | ||
}, | ||
containerTimeCounter: { | ||
display: 'flex', | ||
justifyContent: 'center', | ||
width: '100%', | ||
padding: 16, | ||
height: 51, | ||
backgroundColor: theme.color.surface, | ||
boxShadow: '0px 1px 1px #00000024', | ||
boxSizing: 'border-box', | ||
// border: '1px solid red', | ||
gap: 16 | ||
}, | ||
containerBody: { | ||
display: 'flex', | ||
width: '100%', | ||
gap: 24, | ||
// backgroundColor: '#FAFAFA', | ||
flexDirection: 'column', | ||
padding: 24, | ||
boxSizing: 'border-box' | ||
|
||
}, | ||
containerSection: { | ||
display: 'flex', | ||
width: '100%', | ||
gap: 16 | ||
// backgroundColor: '#FAFAFA' | ||
}, | ||
sectionSearchContainer: { | ||
display: 'flex', | ||
width: '100%', | ||
gap: 1, | ||
flexDirection: 'column' | ||
}, | ||
containerStep: { | ||
display: 'flex', | ||
flex: 2, | ||
justifyContent: 'center', | ||
flexDirection: 'column', | ||
// border: '1px solid red', | ||
minHeight: '80px', | ||
maxWidth: 920, | ||
gap: 24 | ||
}, | ||
summaryContainer: { | ||
display: 'flex', | ||
// border: '1px solid red', | ||
flex: 1, | ||
maxWidth: '296px', | ||
minHeight: '296px', | ||
// alignItems: 'start', | ||
flexDirection: 'column', | ||
justifyContent: 'start', | ||
backgroundColor: theme.color.surface, | ||
gap: 4 | ||
}, | ||
containerSearch: { | ||
display: 'flex', | ||
flexDirection: 'column', | ||
padding: 24, | ||
boxSizing: 'border-box', | ||
backgroundColor: theme.color.surface | ||
}, | ||
banner: { | ||
display: 'flex', | ||
backgroundColor: '#BBBBBB66', | ||
width: '100%', | ||
height: '128px' | ||
}, | ||
content: { | ||
color: '', | ||
fontFamily: [theme.tag.label.primary.fontFamily, theme.tag.label.fallback.fontFamily], | ||
fontSize: theme.tag.label.fontSize, | ||
fontWeight: theme.tag.label.primary.fontWeight, | ||
letterSpacing: theme.tag.label.letterSpacing, | ||
lineHeight: theme.tag.label.lineHeight, | ||
userSelect: 'none', | ||
overflow: 'hidden', | ||
textOverflow: 'ellipsis', | ||
whiteSpace: 'nowrap' | ||
}, | ||
TextRegular: { | ||
fontWeight: theme.typography.fontWeight.regular, | ||
fontSize: '14px', | ||
color: theme.color.mediumEmphasis | ||
}, | ||
'@media screen and (max-width: 1280px)': { | ||
containerStep: { | ||
display: 'flex', | ||
justifyContent: 'center', | ||
flexDirection: 'column', | ||
// border: '1px solid yellow', | ||
minHeight: '80px', | ||
width: '100%', | ||
gap: 24, | ||
overflow: 'hidden' | ||
}, | ||
containerSection: { | ||
display: 'flex', | ||
width: '100%', | ||
gap: 16, | ||
flexDirection: 'column-reverse', | ||
justifyContent: 'center', | ||
alignItems: 'center' | ||
}, | ||
summaryContainer: { | ||
display: 'flex', | ||
width: '100%', | ||
// alignItems: 'start', | ||
maxWidth: 'unset', | ||
minHeight: 'unset', | ||
flexDirection: 'column', | ||
justifyContent: 'start', | ||
backgroundColor: theme.color.surface, | ||
gap: 4 | ||
} | ||
} | ||
})) | ||
|
||
export default styles |
Oops, something went wrong.