diff --git a/common/constants.js b/common/constants.js index d0d86fff..1cc02fca 100644 --- a/common/constants.js +++ b/common/constants.js @@ -52,10 +52,18 @@ export const font = { }; export const typescale = { + lvl0: `0.8rem`, lvl1: `1rem`, lvl2: `1.25rem`, lvl3: `1.563rem`, lvl4: `1.953rem`, + lvl5: `2.441rem`, + lvl6: `3.052rem`, + lvl7: `3.815rem`, + lvl8: `4.768rem`, + lvl9: `5.96rem`, + lvl10: `7.451rem`, + lvl11: `9.313rem`, }; export const code = {}; diff --git a/pages/_/marketing-candidate/community.js b/pages/_/marketing-candidate/community.js index 2d72bc7d..c2cf8b08 100644 --- a/pages/_/marketing-candidate/community.js +++ b/pages/_/marketing-candidate/community.js @@ -15,11 +15,12 @@ const STYLES_ROOT = css` justify-content: space-between; max-width: 1440px; margin: -88px 0 0 0; - background-color: ${Constants.system.wall}; + background-color: ${Constants.system.foreground}; `; const STYLES_H1 = css` - font-size: 3.815rem; + font: ${Constants.font.semiBold}; + font-size: ${Constants.typescale.lvl7}; line-height: 1.25; width: 100%; color: ${Constants.system.slate}; @@ -34,11 +35,11 @@ const STYLES_H1 = css` `; const STYLES_H2 = css` - font-size: 2.441em; + font-size: ${Constants.typescale.lvl5}; line-height: 1.25; padding: 16px 0px 0 0px; width: 100%; - color: ${Constants.system.slate}; + color: ${Constants.system.black}; @media (max-width: ${Constants.sizes.tablet}px) { font-size: 1.563rem; padding: 8px 0px 0px 0px; @@ -51,7 +52,7 @@ const STYLES_H2 = css` `; const STYLES_H3 = css` - font-size: 1.563rem; + font-size: ${Constants.typescale.lvl3}; line-height: 1.5; padding: 16px 0px 0px 0px; color: ${Constants.system.slate}; @@ -65,23 +66,14 @@ const STYLES_H3 = css` } `; -const STYLES_P = css` - font-size: 1rem; - padding: 16px 0px 0px 0px; - color: ${Constants.system.black}; - @media (max-width: ${Constants.sizes.mobile}px) { - font-size: 0.78rem; - } -`; - const STYLES_SECTION_HERO = css` width: 100vw; - padding: 30vh 88px 88px 88px; + padding: 8vh 88px 24px 88px; display: flex; flex-direction: column; justify-content: center; @media (max-width: ${Constants.sizes.mobile}px) { - padding: 40vh 24px 48px 24px; + padding: 16vh 24px 48px 24px; display: block; } `; @@ -89,7 +81,7 @@ const STYLES_SECTION_HERO = css` const STYLES_TEXT_BLOCK = css` display: flex; flex-direction: column; - justify-content: space-between; + justify-content: center; width: 56vw; align-self: center; @media (max-width: ${Constants.sizes.mobile}px) { @@ -99,11 +91,11 @@ const STYLES_TEXT_BLOCK = css` `; const STYLES_HEROIMG = css` - float: right; - margin: -80px 0 0 0; - width: 50vw; + width: 24vw; + margin-left: auto; + margin-right: auto; @media (max-width: ${Constants.sizes.tablet}px) { - margin: 0; + width: 32vw; } `; @@ -118,12 +110,12 @@ const STYLES_BUTTON_PRIMARY = css` border-radius: 2px; outline: 0; border: 0; - min-height: 40px; - padding: 6px 24px 6px 24px; + min-height: 48px; + padding: 0px 24px 0px 24px; display: inline-flex; align-items: center; justify-content: center; - font-size: 12px; + font-size: 16px; letter-spacing: 0.2px; font-family: ${Constants.font.semiBold}; transition: 200ms ease all; @@ -132,11 +124,13 @@ const STYLES_BUTTON_PRIMARY = css` background-color: ${Constants.system.wall}; color: ${Constants.system.slate}; box-shadow: 0px 10px 50px 20px rgba(0, 0, 0, 0.1); + :hover { background-color: ${Constants.system.pitchBlack}; box-shadow: 0px 10px 90px 20px rgba(207, 206, 211, 0.3); color: ${Constants.system.wall}; } + :focus { box-shadow: inset 0 0 5px 2px rgba(0, 0, 0, 0.3); background-color: ${Constants.system.pitchBlack}; @@ -157,47 +151,45 @@ const STYLES_SECTION_WRAPPER = css` } `; const STYLES_SECTION_CHILD_FULL = css` + margin: 80px 0 0 0; display: flex; - width: 100%; + justify-content: space-between; @media (max-width: ${Constants.sizes.mobile}px) { flex-direction: column; } `; const STYLES_SECTION_CHILD_SPLIT = css` - width: 50%; - padding: 16px; + width: 70%; + height: 40vh; @media (max-width: ${Constants.sizes.tablet}px) { - width: 100%; - padding: 16px 0; + flex-direction: column; } `; const STYLES_CARD_GROUP = css` display: flex; - flex-wrap: wrap; margin-top: 48px; `; const STYLES_CARD_NAME = css` - font-size: 1.25rem; - font-weight: 600; - letter-spacing: 0.002em; - text-align: center; + font-size: ${Constants.typescale.lvl1}; + text-align: left; `; const STYLES_CARD_GITHUB = css` - font-size: 1rem; - font-weight: 400; - letter-spacing: 0.002em; - text-align: center; + font-size: ${Constants.typescale.lvl0}; + text-align: left; `; const STYLES_CARD_TEXT = css` - padding: 20px 5px; + padding: 8px 4px; + display: flex; + flex-direction: column; + justify-content: space-between; `; const STYLES_CARD_WRAPPER = css` - width: calc(100% / 7 px); + width: calc(100% / 10 px); transition: 200ms ease box-shadow; padding: 16px 16px 0 0; @media (max-width: ${Constants.sizes.tablet}px) { @@ -205,26 +197,33 @@ const STYLES_CARD_WRAPPER = css` } `; const STYLES_SLATE_CARD_EFFECTS = css` + display: flex; + flex-direction: column; border-radius: 4px; + padding: 8px; height: 100%; cursor: default; - background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/13471/sparkles.gif"); + border: 1px solid ${Constants.system.gray}; + color: ${Constants.system.slate}; + background-color: ${Constants.system.foreground}; background-position: center; z-index: 2; :hover { background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/13471/sparkles.gif"); background-position: center; - background-size: 180%; - mix-blend-mode: color-dodge; + background-size: 100%; + mix-blend-mode: luminosity; + color: ${Constants.system.foreground}; + transition: background-image 2s ease-in-out 2s; opacity: 1; z-index: 2; } :after { } `; -export const getServerSideProps = async context => { +export const getServerSideProps = async (context) => { return { - props: { ...context.query } + props: { ...context.query }, }; }; @@ -236,27 +235,26 @@ export default class CommunityPage extends React.Component { const url = "https://slate.host/community"; return ( - +
-

Community

-

- Slate is designed and built by a growing community of hackers, - artists, and creatives on the web. -

-
-
Slate hive tesseract +

Community

+

+ Slate is designed and built by a growing community of hackers, artists, and creatives on the web. +

+
+
@@ -267,123 +265,103 @@ export default class CommunityPage extends React.Component {
- - Github Profile Photo for Cake - -
- - Github Profile Photo for Martina Long - - +
- -
- - Github Profile Photo for Tara Lin - -
- - Github Profile Photo for William Felker - -
-

William Felker

-

@gndclouds

+ +
+ Github Profile Photo for William Felker +
+

William Felker

+

@gndclouds

+
@@ -397,145 +375,121 @@ export default class CommunityPage extends React.Component {
- - Github Profile Photo for Pooja Shah - -
- - Github Profile Photo for Why - -
- -
- -
- - +
- -
+ +
Github Profile Photo for Akuoko Daniel Jnr -
-
-

Akuoko Daniel Jnr

-

@akuokojnr

+
+

Akuoko Daniel Jnr

+

@akuokojnr

+
@@ -543,42 +497,34 @@ export default class CommunityPage extends React.Component {
- -
- -
+ +
Github Profile Photo for Colin S. Mccaleb -
-
-

Colin S. McCaleb

-

@uonai

+
+

Colin S. McCaleb

+

@uonai

+
@@ -588,52 +534,71 @@ export default class CommunityPage extends React.Component {

Get involved

-

- Slate is a fully open-source file sharing network designed for - research and collaboration. +

+ The Slate Project is the byproduct of a growing community of contributors from around the world. We’d + love for you to join us, get involved in the project and contribute.

-
-
+
+

Contribute

-

- Get involved with the project and contribute. -

-
- +
+

+ Find something you want to work on and file an issue. If you see something you want to fix or + change, submit a pull request. +

+
+
+ +
-
+

Contact

-

- {" "} - Reach out to any of the core contributors, reach us on - Twitter, or join our Slack. -

-
- +
+

+ {" "} + Reach out to any of the core contributors, reach us on Twitter, or join our Slack. +

+
+
+ + +
-
-
-
+

Integrate

-

- Explore our API and SDK and build on top of Slate. -

-
- npm install --save slate-react-system +
+

+ Explore our API and SDK and build on top of Slate. +

+
+
+ npm install --save slate-react-system +
-
-
+

Design System

-

- Check out our open source design system for your projects. -

-
- npm install --save slate-react-system +
+

+ Check out our open source design system for your projects. +

+
+
+ npm install --save slate-react-system +