Add link styles

main
Jake Dexheimer 7 years ago
parent b60afeaa7e
commit ad43cd7d32

@ -4,12 +4,12 @@ import { PALETTE } from '../lib/constants'
const Footer = (props) => ( const Footer = (props) => (
<div className="mt3"> <div className="mt3">
<div className="mt2"> <div className="mt3">
<Link href="/about"><a>about</a></Link> <Link href="/about"><a className="link">about</a></Link>
<a href="mailto:hi@dawnlabs.io?subject=Carbon%20Feedback&anp;body=">send feedback</a> <a className="link" href="mailto:hi@dawnlabs.io?subject=Carbon%20Feedback&anp;body=">send feedback</a>
<a href="https://github.com/dawnlabs/carbon">source</a> <a className="link" href="https://github.com/dawnlabs/carbon">source</a>
</div> </div>
<div className="mt2">a project by <a href="https://twitter.com/dawn_labs">@dawn_labs</a> ¬</div> <div className="mt3 mb2">a project by <a className="dawn-link" href="https://twitter.com/dawn_labs">@dawn_labs</a> ¬</div>
<style jsx>{` <style jsx>{`
div > div { div > div {
text-align: center; text-align: center;
@ -19,16 +19,19 @@ const Footer = (props) => (
a { a {
margin-right: 16px; margin-right: 16px;
color: #fff;
text-decoration: none;
} }
a:last-child { a:last-child {
margin-right: 0; margin-right: 0;
} }
a:hover { .dawn-link {
border-bottom: 1px solid #fff; color: ${PALETTE.PRIMARY};
text-decoration: none;
}
.dawn-link:hover {
color: #fff;
} }
`}</style> `}</style>
</div> </div>

@ -5,11 +5,11 @@ const Header = ({ enableHeroText }) => (
<div className="header mb4"> <div className="header mb4">
<div className="header-content"> <div className="header-content">
<a href="/"><Logo /></a> <a href="/"><Logo /></a>
{ enableHeroText ? (<h2 className="mt3">The easiest way to create images from source code.<br/> Start typing, or drag a file into the text area to get started.</h2>) : null } { enableHeroText ? (<h2 className="mt3">Create and share beautiful images of your source code.<br/> Start typing, or drag a file into the text area to get started.</h2>) : null }
</div> </div>
<style jsx>{` <style jsx>{`
.header { .header {
width: 632px; width: 656px;
} }
.header-content { .header-content {

@ -42,6 +42,21 @@ export default () => (
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
} }
.link {
color: #fff;
text-decoration: none;
padding-bottom: 2px;
background: linear-gradient(to right, rgba(255,255,255, 0.7) 0%, rgba(255,255,255, 0.7) 100%);
background-size: 1px 1px;
background-position: 0 100%;
background-repeat: repeat-x;
}
.link:hover {
color: ${PALETTE.PRIMARY};
background: none;
}
::selection { ::selection {
background: rgba(255,255,255,.99); background: rgba(255,255,255,.99);
color: #121212; color: #121212;

@ -231,8 +231,9 @@ export const LANGUAGES = [
export const PALETTE = { export const PALETTE = {
EDITOR_BG: '#121212', EDITOR_BG: '#121212',
PRIMARY: '#F8E81C',
SECONDARY: '#fff', SECONDARY: '#fff',
GRAY: '#646464' GRAY: 'rgba(255, 255, 255, 0.6)'
} }
export const DEFAULT_CODE = `const pluckDeep = key => obj => key.split('.').reduce((accum, key) => accum[key], obj) export const DEFAULT_CODE = `const pluckDeep = key => obj => key.split('.').reduce((accum, key) => accum[key], obj)

@ -17,7 +17,7 @@ export default () => (
<p className="mb1 mt2">There are a few different ways to import code into Carbon:</p> <p className="mb1 mt2">There are a few different ways to import code into Carbon:</p>
<ul className="mt0 mb3"> <ul className="mt0 mb3">
<li>Drag a file into the editor</li> <li>Drag a file into the editor</li>
<li>Append a GitHub gist id to the url (<a href="#">example</a>)</li> <li>Append a GitHub gist id to the url (<a className="link" href="#">example</a>)</li>
<li>Paste your code directly</li> <li>Paste your code directly</li>
</ul> </ul>
<h4 className="mb0">Customization</h4> <h4 className="mb0">Customization</h4>
@ -28,12 +28,12 @@ export default () => (
<div className="mb4"> <div className="mb4">
<h2>I want to make this better.</h2> <h2>I want to make this better.</h2>
<p> <p>
<a href="https://github.com/dawnlabs/carbon">Please do.</a> <a className="link" href="https://github.com/dawnlabs/carbon">Please do.</a>
</p> </p>
</div> </div>
</div> </div>
<style jsx>{` <style jsx>{`
h4 { p, li {
color: ${PALETTE.GRAY}; color: ${PALETTE.GRAY};
} }
@ -44,12 +44,6 @@ export default () => (
.about { .about {
max-width: 632px; max-width: 632px;
} }
a {
color: #fff;
text-decoration: none;
border-bottom: 1px solid #fff;
}
`}</style> `}</style>
</Page> </Page>
) )

Loading…
Cancel
Save