-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
56 changed files
with
1,318 additions
and
847 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
package.json | ||
package-lock.json | ||
yarn.lock | ||
flow-typed | ||
.next |
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 |
---|---|---|
@@ -1,113 +1,110 @@ | ||
|
||
import styled, { css } from 'styled-components'; | ||
import { animations } from '@common/constants'; | ||
import { sif } from '@common/styled'; | ||
import styled, { css } from "styled-components"; | ||
import { animations } from "@common/constants"; | ||
import { sif } from "@common/styled"; | ||
|
||
const Delay = () => styled.div` | ||
${sif('xl')(css` | ||
animation-delay: 2s; | ||
${sif("xl")(css` | ||
animation-delay: 2s; | ||
`)} | ||
${sif('l')(css` | ||
animation-delay: 1s; | ||
${sif("l")(css` | ||
animation-delay: 1s; | ||
`)} | ||
${sif('m')(css` | ||
animation-delay: 0.5s; | ||
${sif("m")(css` | ||
animation-delay: 0.5s; | ||
`)} | ||
${sif('s')(css` | ||
animation-delay: 0.25s; | ||
${sif("s")(css` | ||
animation-delay: 0.25s; | ||
`)} | ||
`f | ||
`; | ||
|
||
const FadeIn = () => styled.div` | ||
@keyframes fadein { | ||
@keyframes fadein { | ||
from { | ||
opacity: 0; | ||
opacity: 0; | ||
} | ||
to { | ||
opacity: 1; | ||
opacity: 1; | ||
} | ||
} | ||
opacity: 0; | ||
animation: fadein ${animations.timingAnimation} forwards ${animations.easing}; | ||
` | ||
} | ||
opacity: 0; | ||
animation: fadein ${animations.timingAnimation} forwards ${animations.easing}; | ||
`; | ||
|
||
const FadeOut = () => styled.div` | ||
@keyframes fadeout { | ||
@keyframes fadeout { | ||
from { | ||
opacity: 1; | ||
opacity: 1; | ||
} | ||
to { | ||
opacity: 0; | ||
opacity: 0; | ||
} | ||
} | ||
animation: fadeout ${animations.timingAnimation} forwards ${animations.easing}; | ||
` | ||
} | ||
animation: fadeout ${animations.timingAnimation} forwards ${animations.easing}; | ||
`; | ||
|
||
const FadeAndSlideInFromBottom = () => styled.div` | ||
@keyframes fade-and-slide-in-from-bottom { | ||
@keyframes fade-and-slide-in-from-bottom { | ||
from { | ||
opacity: 0; | ||
transform: translate3d(0, ${spacing.gutter*4}, 0); | ||
opacity: 0; | ||
transform: translate3d(0, ${spacing.gutter * 4}, 0); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: none; | ||
opacity: 1; | ||
transform: none; | ||
} | ||
} | ||
opacity: 0; | ||
animation: fade-and-slide-in-from-bottom ${animations.timingAnimation} forwards | ||
${animations.easing}; | ||
` | ||
} | ||
opacity: 0; | ||
animation: fade-and-slide-in-from-bottom ${animations.timingAnimation} | ||
forwards ${animations.easing}; | ||
`; | ||
|
||
const FadeInAndSlideInFromBottomSm = () => styled.div` | ||
@keyframes fade-and-slide-in-from-bottom { | ||
@keyframes fade-and-slide-in-from-bottom { | ||
from { | ||
opacity: 0; | ||
transform: translate3d(0, ${spacing.unit}, 0); | ||
opacity: 0; | ||
transform: translate3d(0, ${spacing.unit}, 0); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: none; | ||
opacity: 1; | ||
transform: none; | ||
} | ||
} | ||
opacity: 0; | ||
animation: fade-and-slide-in-from-top-sm ${animations.timingAnimation} forwards | ||
${animations.easing}; | ||
` | ||
} | ||
opacity: 0; | ||
animation: fade-and-slide-in-from-top-sm ${animations.timingAnimation} | ||
forwards ${animations.easing}; | ||
`; | ||
|
||
const FadeInAndSlideInFromTop = () => styled.div` | ||
@keyframes fade-and-slide-in-from-top { | ||
@keyframes fade-and-slide-in-from-top { | ||
from { | ||
opacity: 0; | ||
transform: translate3d(0, -${spacing.gutter*4}, 0); | ||
opacity: 0; | ||
transform: translate3d(0, -${spacing.gutter * 4}, 0); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: none; | ||
opacity: 1; | ||
transform: none; | ||
} | ||
} | ||
opacity: 0; | ||
animation: fade-and-slide-in-from-top ${animations.timingAnimation} forwards | ||
} | ||
opacity: 0; | ||
animation: fade-and-slide-in-from-top ${animations.timingAnimation} forwards | ||
${animations.easing}; | ||
` | ||
`; | ||
|
||
const FadeInAndSlideInFromTopSm = () => css` | ||
@keyframes fade-and-slide-in-from-top-sm { | ||
@keyframes fade-and-slide-in-from-top-sm { | ||
from { | ||
opacity: 0; | ||
transform: translate3d(0, -${spacing.unit}, 0); | ||
opacity: 0; | ||
transform: translate3d(0, -${spacing.unit}, 0); | ||
} | ||
to { | ||
opacity: 1; | ||
transform: none; | ||
opacity: 1; | ||
transform: none; | ||
} | ||
} | ||
opacity: 0; | ||
animation: fade-and-slide-in-from-top-sm ${animations.timingAnimation} forwards | ||
${animations.easing}; | ||
` | ||
|
||
|
||
} | ||
opacity: 0; | ||
animation: fade-and-slide-in-from-top-sm ${animations.timingAnimation} | ||
forwards ${animations.easing}; | ||
`; |
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,46 +1,69 @@ | ||
import { colors, darken, lighten } from '@common/colors' | ||
import { colors, darken, lighten } from "@common/colors"; | ||
const unit = 12; | ||
const gutter = unit * 2; | ||
const globalWidth = 1250; | ||
const globalEasing = `cubic-bezier(0.24, 0.8, 0, 0.97)` | ||
const globalEasing = `cubic-bezier(0.24, 0.8, 0, 0.97)`; | ||
const headerHeight = 100; | ||
|
||
const timing = 0.38; | ||
const easing = globalEasing; | ||
const transition = `${timing} all ${easing}`; | ||
const timingAnimation = `${0.38*2.5}`; | ||
const timingAnimationDelay = `${0.38*2.5/2}`; | ||
const transition = `${timing} all ${easing}`; | ||
const timingAnimation = `${0.38 * 2.5}`; | ||
const timingAnimationDelay = `${(0.38 * 2.5) / 2}`; | ||
const animations = { | ||
timing, | ||
timingAnimation, | ||
timingAnimationDelay, | ||
easing, | ||
transition | ||
} | ||
}; | ||
|
||
const fonts = { | ||
headings: `"Nunito", sans-serif`, | ||
body: `-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", | ||
Roboto`, | ||
Roboto` | ||
}; | ||
|
||
const spacing = { | ||
unit, | ||
gutter, | ||
globalWidth, | ||
headerHeight, | ||
headerHeight | ||
}; | ||
|
||
|
||
const effects = { | ||
const effects = { | ||
dropShadow: `0px 2px 8px rgba(${darken(colors.mainColor, 25, true)}, 0.4)`, | ||
dropShadowLight: `0px 2px 6px rgba(${darken(colors.mainColor, 25, true)}, 0.08)`, | ||
dropShadowXL: `0px 10px 20px rgba(${darken(colors.mainColor, 25, true)}, 0.4)`, | ||
dropShadowXLLight: `0px 10px 20px rgba(${darken(colors.mainColor, 25, true)}, 0.2)`, | ||
dropShadowLight: `0px 2px 6px rgba(${darken( | ||
colors.mainColor, | ||
25, | ||
true | ||
)}, 0.08)`, | ||
dropShadowXL: `0px 10px 20px rgba(${darken( | ||
colors.mainColor, | ||
25, | ||
true | ||
)}, 0.4)`, | ||
dropShadowXLLight: `0px 10px 20px rgba(${darken( | ||
colors.mainColor, | ||
25, | ||
true | ||
)}, 0.2)`, | ||
dropShadowL: `0px 6px 14px rgba(${darken(colors.mainColor, 25, true)}, 0.4)`, | ||
dropShadowLLight: `0px 6px 14px rgba(${darken(colors.mainColor, 25, true)}, 0.1)`, | ||
dropShadowPressed: `0px 2px 2px rgba(${darken(colors.mainColor, 25, true)}, 0.2);`, | ||
textShadowDefault: `0px 1px 2px rgba(${darken(colors.mainColor, 25, true)}, 0.5)`, | ||
} | ||
dropShadowLLight: `0px 6px 14px rgba(${darken( | ||
colors.mainColor, | ||
25, | ||
true | ||
)}, 0.1)`, | ||
dropShadowPressed: `0px 2px 2px rgba(${darken( | ||
colors.mainColor, | ||
25, | ||
true | ||
)}, 0.2);`, | ||
textShadowDefault: `0px 1px 2px rgba(${darken( | ||
colors.mainColor, | ||
25, | ||
true | ||
)}, 0.5)` | ||
}; | ||
|
||
export { spacing, fonts, effects, animations }; |
Oops, something went wrong.
9446a90
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://nteract-site-ivcqbjwqem.now.sh to the following alias.