From 96dff6d8fe796e136c1301aae04c4f493fefaf46 Mon Sep 17 00:00:00 2001 From: Jake Dexheimer Date: Sun, 23 Jul 2017 12:01:00 -0500 Subject: [PATCH] Style /about page --- components/Footer.js | 3 ++- components/Meta.js | 5 +++-- components/svg/Logo.js | 2 +- lib/constants.js | 5 +++-- pages/about.js | 18 +++++++++--------- 5 files changed, 18 insertions(+), 15 deletions(-) diff --git a/components/Footer.js b/components/Footer.js index 0b8ae9d..af5ec35 100644 --- a/components/Footer.js +++ b/components/Footer.js @@ -1,5 +1,6 @@ import React from 'react' import Link from 'next/link' +import { PALETTE } from '../lib/constants' const Footer = (props) => (
@@ -19,7 +20,7 @@ const Footer = (props) => ( text-align: center; font-size: 14px; margin: 16px 0; - color: #777; + color: ${PALETTE.GRAY}; } a { diff --git a/components/Meta.js b/components/Meta.js index 06fe74c..6aa493a 100644 --- a/components/Meta.js +++ b/components/Meta.js @@ -26,7 +26,7 @@ export default () => ( body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; color: #fff; - background: #000; + background: #121212; } h1, h2, h3, h4, h5, h6 { @@ -43,7 +43,8 @@ export default () => ( } ::selection { - background-color: rgba(256, 256, 256, 0.165); + background: rgba(255,255,255,.99); + color: #121212; } #toolbar > div { diff --git a/components/svg/Logo.js b/components/svg/Logo.js index e56eefd..1055b8e 100644 --- a/components/svg/Logo.js +++ b/components/svg/Logo.js @@ -1,7 +1,7 @@ import React from 'react' export default () => ( - + diff --git a/lib/constants.js b/lib/constants.js index 18a8f21..85f8ec9 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -230,8 +230,9 @@ export const LANGUAGES = [ ] export const PALETTE = { - EDITOR_BG: '#000', - SECONDARY: '#fff' + EDITOR_BG: '#121212', + SECONDARY: '#fff', + GRAY: '#646464' } export const DEFAULT_CODE = `const pluckDeep = key => obj => key.split('.').reduce((accum, key) => accum[key], obj) diff --git a/pages/about.js b/pages/about.js index 3c4dc2d..98e0e02 100644 --- a/pages/about.js +++ b/pages/about.js @@ -2,7 +2,7 @@ import Page from '../components/Page' import Meta from '../components/Meta' import Header from '../components/Header' import Footer from '../components/Footer' - +import { PALETTE } from '../lib/constants' export default () => ( @@ -14,16 +14,16 @@ export default () => (

How do I use it?

Import

-

There are a few different ways to import code into Carbon:

-
    +

    There are a few different ways to import code into Carbon:

    +
    • Drag a file into the editor
    • Append a GitHub Gist id to the url
    • Paste your code directly
    -

    Customization

    -

    Once you've got all of your code into Carbon, you can customize your image by changing the syntax theme, background color, window theme, or padding.

    -

    Export/Sharing

    -

    After you've customized your image, you can copy a link to the image, save it, or share it on Twitter.

    +

    Customization

    +

    Once you've got all of your code into Carbon, you can customize your image by changing the syntax theme, background color, window theme, or padding.

    +

    Export/Sharing

    +

    After you've customized your image, you can copy a link to the image, save it, or share it on Twitter.

I want to make this better.

@@ -31,8 +31,8 @@ export default () => (