diff --git a/frontend/website-redesign/pages/docs/index.mdx b/frontend/website-redesign/pages/docs/index.mdx index a61fd338d45..8e7b83020a8 100644 --- a/frontend/website-redesign/pages/docs/index.mdx +++ b/frontend/website-redesign/pages/docs/index.mdx @@ -3,6 +3,8 @@ export default Page({title: "Overview"}); # Overview +Here's where you'll find all the documentation for the whole process of getting up and running with Coda. + ## What is Coda? Coda is the first cryptocurrency protocol with a succinct blockchain. Current cryptocurrencies like Bitcoin and Ethereum store hundreds of gigabytes of data, and as time goes on, their blockchains will only increase in size. With Coda however, no matter how much the usage grows, the blockchain always stays the same size - about ~20 kilobytes (the size of a few tweets). This means Coda can be accessed trustlessly from any device, including phones and browsers, and enables frictionless integration of cryptocurrency into applications for developers. diff --git a/frontend/website-redesign/src/Theme.re b/frontend/website-redesign/src/Theme.re index 5fa4d4ad2ca..d484e92a16b 100644 --- a/frontend/website-redesign/src/Theme.re +++ b/frontend/website-redesign/src/Theme.re @@ -13,6 +13,7 @@ module Colors = { let digitalGray = `hex("575757"); let error = `hex("e93939"); let status = `hex("ffb13b"); + let codeHighlight = `hex("e9eaf3"); }; module Typeface = { @@ -274,8 +275,7 @@ module Type = { ), ]); - let sectionSubhead = - style([ + let sectionSubhead_ = [ Typeface.monumentGrotesk, fontSize(`rem(1.)), lineHeight(`rem(1.5)), @@ -286,7 +286,8 @@ module Type = { MediaQuery.tablet, [fontSize(`rem(1.25)), lineHeight(`rem(1.875))], ), - ]); + ]; + let sectionSubhead = style(sectionSubhead_); let paragraph = style([ @@ -312,6 +313,17 @@ module Type = { ), ]); + let inlineCode_ =[ + Typeface.monumentGroteskMono, + fontSize(`rem(0.9375)), + lineHeight(`rem(1.5)), + color(Colors.digitalBlack), + backgroundColor(Colors.codeHighlight), + padding2(~v=`zero, ~h=`rem(0.625)), + borderRadius(`px(3)) + ]; + let inlineCode = style(inlineCode_); + let paragraphMono = style([ Typeface.monumentGrotesk, diff --git a/frontend/website-redesign/src/components/Alert.re b/frontend/website-redesign/src/components/Alert.re index 712f15942ed..152098b762b 100644 --- a/frontend/website-redesign/src/components/Alert.re +++ b/frontend/website-redesign/src/components/Alert.re @@ -3,13 +3,17 @@ module Styles = { let main = style([ - border(px(1), `solid, Theme.Colors.digitalBlack), + border(px(1), `solid, Theme.Colors.digitalBlackA(0.25)), borderRadius(px(4)), overflow(`hidden), ]); let inner = - merge([style([margin(`zero), padding2(~v=`rem(0.), ~h=`rem(1.))])]); + merge([style([ + margin(`zero), + padding2(~v=`rem(1.), ~h=`rem(1.)), + selector("p", [ margin(`zero) ]) + ])]); let title = c => merge([ diff --git a/frontend/website-redesign/src/components/DocsComponents.re b/frontend/website-redesign/src/components/DocsComponents.re index 39076353968..dfb428a1c1b 100644 --- a/frontend/website-redesign/src/components/DocsComponents.re +++ b/frontend/website-redesign/src/components/DocsComponents.re @@ -14,6 +14,40 @@ module Styles = { backgroundSize(`cover), backgroundImage(url("/static/img/link.svg")), ]); + + let h1Spacing = style([ + marginBottom(`rem(1.)) + ]); + + let headerSpacing = merge([ + h1Spacing, + style([ + marginTop(`rem(3.)) + ])]); + + let paragraphSpacing = style([ + marginBottom(`rem(1.)) + ]); + + let code = style([ + Theme.Typeface.monumentGroteskMono, + fontSize(`rem(1.)), + lineHeight(`rem(1.5)) + ]); + + let list = style([ + color(Theme.Colors.digitalBlack), + Theme.Typeface.monumentGrotesk, + fontSize(`rem(1.125)), + lineHeight(`rem(1.6875)), + marginTop(`rem(0.5)), + marginBottom(`rem(1.)), + marginLeft(`rem(2.6875)), + ]); + + let link = style([ + textDecoration(`none) + ]); }; module type Component = {let element: React.element;}; @@ -52,32 +86,32 @@ open Css; module H1 = WrapHeader({ - let element =
; + let element = ; }); module H2 = WrapHeader({ - let element = ; + let element = ; }); module H3 = WrapHeader({ - let element = ; + let element = ; }); module H4 = WrapHeader({ - let element = ; + let element = ; }); module P = Wrap({ - let element = ; + let element = ; }); module A = Wrap({ - let element = ; + let element = ; }); module Strong = @@ -128,7 +162,7 @@ module Pre = { borderRadius(`px(4)), padding2(~v=`rem(1.), ~h=`rem(1.)), overflow(`scroll), - // selector("code", [Theme.Type.paragraphMono]), + selector("code", [color(Theme.Colors.white)]), ])}> children @@ -138,17 +172,17 @@ module Pre = { module Code = Wrap({ - let element =
;
+ let element =
;
});
module Ul =
Wrap({
- let element =