-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(website): [DSYS-1046] website structure and navigation
* feat(website): main structure and side nav * feat(website): nav toggle. start getting-started. * fix(website): add site-wrapper flexbox fallback * fix(website): adjust header styles, add constants * fix(website): isOpen props for subnav, box tokens on sidebar * fix(website): change constant to snake case
- Loading branch information
1 parent
2fcdb23
commit 306586e
Showing
13 changed files
with
590 additions
and
2,957 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
160 changes: 9 additions & 151 deletions
160
packages/paste-website/src/components/default-site-wrapper/index.tsx
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
32 changes: 32 additions & 0 deletions
32
packages/paste-website/src/components/default-site-wrapper/styles.ts
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,32 @@ | ||
import {css} from '@emotion/core'; | ||
import styled from '@emotion/styled'; | ||
import {themeGet} from 'styled-system'; | ||
|
||
export const globalStyles = css` | ||
body { | ||
margin: 0; | ||
} | ||
`; | ||
|
||
export const SiteBody = styled.div` | ||
display: flex; | ||
min-height: 100vh; | ||
min-width: 240px; | ||
height: 100vh; | ||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', | ||
'Segoe UI Emoji', 'Segoe UI Symbol'; | ||
@supports (display: grid) { | ||
display: grid; | ||
grid-template-columns: 240px 1fr; | ||
} | ||
`; | ||
|
||
export const SiteMain = styled.main` | ||
padding: ${themeGet('space.space110')} ${themeGet('space.space200')}; | ||
overflow: auto; | ||
@supports not (display: grid) { | ||
flex: 1; | ||
} | ||
`; |
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
7 changes: 0 additions & 7 deletions
7
packages/paste-website/src/components/header/styled-header.ts
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import {Link} from 'gatsby'; | ||
import styled from '@emotion/styled'; | ||
import {themeGet} from 'styled-system'; | ||
import {Text} from '@twilio-paste/text'; | ||
|
||
export const StyledHeader = styled.header` | ||
padding: 0 ${themeGet('space.space40')} ${themeGet('space.space40')}; | ||
margin-bottom: ${themeGet('space.space40')}; | ||
border-bottom: ${themeGet('borderWidths.borderWidth20')} solid ${themeGet('colors.colorGray30')}; | ||
`; | ||
|
||
export const StyledLink = styled(Link)` | ||
text-decoration: none; | ||
color: inherit; | ||
&:visited { | ||
color: inherit; | ||
} | ||
`; | ||
|
||
export const StyledH3 = styled(Text)` | ||
display: flex; | ||
`; | ||
|
||
export const StyledSpan = styled.span` | ||
flex: 1; | ||
&:nth-of-type(2) { | ||
flex: 0; | ||
justify-self: flex-end; | ||
font-weight: ${themeGet('fontWeights.fontWeightNormal')}; | ||
} | ||
`; |
Oops, something went wrong.
306586e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully aliased the URL https://paste-8j367474y.now.sh to the following aliases: