-
Notifications
You must be signed in to change notification settings - Fork 550
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into rosetta/trap-and-report-exns
- Loading branch information
Showing
17 changed files
with
1,610 additions
and
14 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export { make as default } from "@reason/pages/LeadGen"; |
3 changes: 3 additions & 0 deletions
3
frontend/website/public/static/font/MonumentGrotesk-Mono.woff
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
frontend/website/public/static/font/MonumentGrotesk-Regular.woff
Git LFS file not shown
3 changes: 3 additions & 0 deletions
3
frontend/website/public/static/font/MonumentGrotesk-Regular.woff2
Git LFS file not shown
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
frontend/website/public/static/img/testworld_confirmation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,112 @@ | ||
/* | ||
TODO: This file was copied from the website-redesign. It was copied over to use the styles | ||
that the new website uses. The components that use this component should be updated | ||
when they are ported over to the website-redesign. | ||
*/ | ||
|
||
module Styles = { | ||
open Css; | ||
|
||
let buttonLabel = | ||
style([ | ||
Theme.Typeface.monumentGrotesk, | ||
fontSize(`rem(0.75)), | ||
fontWeight(`num(500)), | ||
lineHeight(`rem(1.)), | ||
color(black), | ||
textTransform(`uppercase), | ||
letterSpacing(`px(1)), | ||
]); | ||
|
||
let button = | ||
( | ||
bgColor, | ||
borderColor, | ||
dark, | ||
buttonHeight, | ||
buttonWidth, | ||
paddingX, | ||
paddingY, | ||
) => | ||
merge([ | ||
buttonLabel, | ||
style([ | ||
display(`flex), | ||
justifyContent(`center), | ||
alignItems(`center), | ||
width(buttonWidth), | ||
height(buttonHeight), | ||
border(`px(1), `solid, borderColor), | ||
boxShadow(~x=`px(4), ~y=`px(4), black), | ||
backgroundColor(bgColor), | ||
borderTopLeftRadius(`px(4)), | ||
borderBottomRightRadius(`px(4)), | ||
borderTopRightRadius(`px(1)), | ||
borderBottomLeftRadius(`px(1)), | ||
textDecoration(`none), | ||
fontSize(`px(12)), | ||
color( | ||
{ | ||
bgColor === Theme.Colors.white ? black : white; | ||
}, | ||
), | ||
padding2(~v=`rem(paddingY), ~h=`rem(paddingX)), | ||
textAlign(`center), | ||
alignSelf(`center), | ||
hover([ | ||
color(white), | ||
boxShadow(~x=`px(0), ~y=`px(0), black), | ||
unsafe( | ||
"transition", | ||
"box-shadow 0.2s ease-in, transform 0.5s ease-in", | ||
), | ||
background( | ||
{ | ||
dark | ||
? `url("/static/img/ButtonHoverDark.png") | ||
: `url("/static/img/ButtonHoverLight.png"); | ||
}, | ||
), | ||
]), | ||
]), | ||
]); | ||
}; | ||
|
||
/** | ||
* Button is light by default, and setting dark to true as a prop will make the background image change accordingly. | ||
* Buttons have four different colors: orange, mint, black, and white. | ||
* | ||
*/ | ||
[@react.component] | ||
let make = | ||
( | ||
~href="", | ||
~children=?, | ||
~height=`rem(3.25), | ||
~width=`rem(10.9), | ||
~borderColor=Theme.Colors.minaBlack, | ||
~paddingX=1.5, | ||
~paddingY=1., | ||
~bgColor=Theme.Colors.minaOrange, | ||
~dark=false, | ||
~onClick=?, | ||
) => { | ||
<Next.Link href> | ||
<button | ||
?onClick | ||
className={Styles.button( | ||
bgColor, | ||
borderColor, | ||
dark, | ||
height, | ||
width, | ||
paddingX, | ||
paddingY, | ||
)}> | ||
{switch (children) { | ||
| Some(children) => children | ||
| None => React.null | ||
}} | ||
</button> | ||
</Next.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.