Skip to content

Commit

Permalink
Merge branch 'develop' into feature/snapp-transaction-snark-rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
imeckler authored Sep 9, 2020
2 parents d74e3b1 + 1af8a6e commit 4397147
Show file tree
Hide file tree
Showing 36 changed files with 1,245 additions and 549 deletions.
2 changes: 1 addition & 1 deletion buildkite/src/Monorepo.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ let makeCommand : JobSpec.Type -> Cmd.Type = \(job : JobSpec.Type) ->
''

let prefixCommands = [
Cmd.run "git config http.sslVerify false", -- make git work inside container
Cmd.run "git config --global http.sslCAInfo /etc/ssl/certs/ca-bundle.crt", -- Tell git where to find certs for https connections
Cmd.run "git fetch origin", -- Freshen the cache
Cmd.run "./buildkite/scripts/generate-diff.sh > _computed_diff.txt"
]
Expand Down

This file was deleted.

This file was deleted.

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.
67 changes: 47 additions & 20 deletions frontend/website-redesign/src/Theme.re
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ module Colors = {
let black = Css.black;
let purple = `hex("5362C8");
let digitalBlack = `hex("2d2d2d");

};

module Typeface = {
Expand All @@ -29,7 +28,7 @@ module MediaQuery = {
};

/** this function is needed to include the font files with the font styles */
let generateStyles = rules => (Css.style(rules), rules);
let generateStyles = rules => (style(rules), rules);

module Type = {
let h1jumbo =
Expand All @@ -38,7 +37,7 @@ module Type = {
fontWeight(`normal),
fontSize(`rem(3.5)),
lineHeight(`rem(4.1875)),
color(black),
color(Colors.digitalBlack),
media(
MediaQuery.tablet,
[fontSize(`rem(4.5)), lineHeight(`rem(5.4))],
Expand All @@ -51,7 +50,7 @@ module Type = {
fontWeight(`normal),
fontSize(`rem(2.25)),
lineHeight(`rem(2.7)),
color(black),
color(Colors.digitalBlack),
media(
MediaQuery.tablet,
[fontSize(`rem(3.0)), lineHeight(`rem(3.6))],
Expand All @@ -63,7 +62,7 @@ module Type = {
Typeface.monumentGrotesk,
fontSize(`rem(1.875)),
lineHeight(`rem(2.25)),
color(black),
color(Colors.digitalBlack),
media(
MediaQuery.tablet,
[fontSize(`rem(2.5)), lineHeight(`rem(3.))],
Expand All @@ -75,7 +74,7 @@ module Type = {
Typeface.monumentGrotesk,
fontSize(`rem(1.6)),
lineHeight(`rem(2.1)),
color(black),
color(Colors.digitalBlack),
media(
MediaQuery.tablet,
[fontSize(`rem(2.0)), lineHeight(`rem(2.375))],
Expand All @@ -92,6 +91,7 @@ module Type = {
lineHeight(`rem(1.7)),
textTransform(`uppercase),
letterSpacing(`em(0.02)),
color(Colors.digitalBlack),
media(
MediaQuery.tablet,
[fontSize(`rem(1.25)), lineHeight(`rem(1.9))],
Expand All @@ -112,7 +112,7 @@ module Type = {
Typeface.monumentGrotesk,
fontSize(`rem(1.3)),
lineHeight(`rem(1.56)),
color(black),
color(Colors.digitalBlack),
media(
MediaQuery.tablet,
[fontSize(`rem(1.5)), lineHeight(`rem(1.8))],
Expand All @@ -124,7 +124,7 @@ module Type = {
Typeface.monumentGrotesk,
fontSize(`rem(1.125)),
lineHeight(`rem(1.375)),
color(black),
color(Colors.digitalBlack),
media(
MediaQuery.tablet,
[fontSize(`rem(1.125)), lineHeight(`rem(1.4))],
Expand All @@ -139,7 +139,7 @@ module Type = {
lineHeight(`rem(1.37)),
textTransform(`uppercase),
letterSpacing(`em(0.02)),
color(black),
color(Colors.digitalBlack),
media(
MediaQuery.tablet,
[fontSize(`rem(1.25)), lineHeight(`rem(1.875))],
Expand All @@ -151,7 +151,7 @@ module Type = {
Typeface.monumentGrotesk,
fontSize(`rem(0.75)),
lineHeight(`rem(1.)),
color(black),
color(Colors.digitalBlack),
textTransform(`uppercase),
letterSpacing(`em(0.03)),
media(
Expand All @@ -166,7 +166,7 @@ module Type = {
fontSize(`rem(0.75)),
fontWeight(`num(500)),
lineHeight(`rem(1.)),
color(black),
color(Colors.digitalBlack),
textTransform(`uppercase),
letterSpacing(`px(1)),
]);
Expand All @@ -185,23 +185,23 @@ module Type = {
Typeface.monumentGrotesk,
fontSize(`rem(1.1)),
lineHeight(`rem(1.1)),
color(black),
color(Colors.digitalBlack),
]);

let sidebarLink =
style([
Typeface.monumentGrotesk,
fontSize(`rem(1.)),
lineHeight(`rem(1.5)),
color(black),
color(Colors.digitalBlack),
]);

let tooltip =
style([
Typeface.monumentGrotesk,
fontSize(`px(13)),
lineHeight(`rem(1.)),
color(black),
color(Colors.digitalBlack),
]);

let creditName =
Expand Down Expand Up @@ -242,7 +242,7 @@ module Type = {
Typeface.monumentGrotesk,
fontSize(`rem(1.125)),
lineHeight(`rem(1.68)),
color(black),
color(Colors.digitalBlack),
media(
MediaQuery.tablet,
[fontSize(`rem(1.31)), lineHeight(`rem(1.93))],
Expand All @@ -255,7 +255,7 @@ module Type = {
fontSize(`rem(1.)),
lineHeight(`rem(1.5)),
letterSpacing(`px(-1)),
color(black),
color(Colors.digitalBlack),
media(
MediaQuery.tablet,
[fontSize(`rem(1.25)), lineHeight(`rem(1.875))],
Expand All @@ -267,7 +267,7 @@ module Type = {
Typeface.monumentGrotesk,
fontSize(`rem(1.)),
lineHeight(`rem(1.5)),
color(black),
color(Colors.digitalBlack),
media(
MediaQuery.tablet,
[fontSize(`rem(1.125)), lineHeight(`rem(1.69))],
Expand All @@ -279,7 +279,7 @@ module Type = {
Typeface.monumentGrotesk,
fontSize(`rem(0.875)),
lineHeight(`rem(1.31)),
color(black),
color(Colors.digitalBlack),
media(
MediaQuery.tablet,
[fontSize(`rem(1.)), lineHeight(`rem(1.5))],
Expand All @@ -292,7 +292,7 @@ module Type = {
fontSize(`rem(1.)),
lineHeight(`rem(1.5)),
letterSpacing(`rem(0.03125)),
color(black),
color(Colors.digitalBlack),
media(
MediaQuery.tablet,
[
Expand All @@ -309,10 +309,37 @@ module Type = {
fontSize(`rem(1.31)),
lineHeight(`rem(1.875)),
letterSpacing(`em(-0.03)),
color(black),
color(Colors.digitalBlack),
media(
MediaQuery.tablet,
[fontSize(`rem(2.5)), lineHeight(`rem(3.125))],
),
]);
};

// Match Tachyons setting pretty much everything to border-box
global(
"a,article,aside,blockquote,body,code,dd,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,html,input[type=email],input[type=number],input[type=password],input[type=tel],input[type=text],input[type=url],legend,li,main,nav,ol,p,pre,section,table,td,textarea,th,tr,ul",
[boxSizing(`borderBox)],
);

// Reset padding that appears only on some browsers
global(
"h1,h2,h3,h4,h5,fieldset,ul,li,p,figure",
[
unsafe("paddingInlineStart", "0"),
unsafe("paddingInlineEnd", "0"),
unsafe("paddingBlockStart", "0"),
unsafe("paddingBlockEnd", "0"),
unsafe("marginInlineStart", "0"),
unsafe("marginInlineEnd", "0"),
unsafe("marginBlockStart", "0"),
unsafe("marginBlockEnd", "0"),
unsafe("WebkitPaddingBefore", "0"),
unsafe("WebkitPaddingStart", "0"),
unsafe("WebkitPaddingEnd", "0"),
unsafe("WebkitPaddingAfter", "0"),
unsafe("WebkitMarginBefore", "0"),
unsafe("WebkitMarginAfter", "0"),
],
);
12 changes: 2 additions & 10 deletions frontend/website-redesign/src/components/AnnouncementBanner.re
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,14 @@ module Styles = {
merge([
Theme.Type.announcement,
style([
color(Theme.Colors.black),
color(Theme.Colors.digitalBlack),
display(`flex),
justifyContent(`spaceBetween),
alignItems(`center),
width(`percent(100.)),
important(backgroundSize(`cover)),
backgroundImage(`url("/static/AnnouncementBannerMobile.png")),
backgroundImage(`url("/static/img/AnnouncementBanner.png")),
padding2(~v=`rem(0.5), ~h=`rem(0.5)),
media(
Theme.MediaQuery.tablet,
[background(`url("/static/AnnouncementBannerTablet.png"))],
),
media(
Theme.MediaQuery.desktop,
[background(`url("/static/AnnouncementBannerDesktop.png"))],
),
]),
]);

Expand Down
2 changes: 1 addition & 1 deletion frontend/website-redesign/src/components/Button.re
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module Styles = {
fontSize(`px(12)),
color(
{
bgColor === Theme.Colors.white ? black : white;
bgColor === Theme.Colors.white ? Theme.Colors.digitalBlack : white;
},
),
padding2(~v=`rem(paddingY), ~h=`rem(paddingX)),
Expand Down
3 changes: 2 additions & 1 deletion frontend/website-redesign/src/components/CookieWarning.re
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,15 @@ module Styles = {
merge([
Button.Styles.button(
Theme.Colors.mint,
Theme.Colors.digitalBlack,
true,
`rem(3.25),
`rem(7.75),
1.5,
1.,
),
style([
color(Theme.Colors.black),
color(Theme.Colors.digitalBlack),
marginRight(`auto),
media(Theme.MediaQuery.tablet, [marginRight(`rem(2.))]),
media(Theme.MediaQuery.desktop, [marginRight(`rem(4.))]),
Expand Down
Loading

0 comments on commit 4397147

Please sign in to comment.