Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[www] Refactor Homepage and Navigation & convert diagram to html/css #1605

Merged
merged 21 commits into from
Jul 27, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix tech icon alignment, move to component
  • Loading branch information
Florian Kissling committed Jul 26, 2017
commit 288bcd521cd216d8f358bd7b574118c3d52624d5
54 changes: 17 additions & 37 deletions www/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@ import BlogPostPreviewItem from "../components/blog-post-preview-item"
import FuturaParagraph from "../components/futura-paragraph"
import CtaButton from "../components/cta-button"

const TechWithIcon = ({ icon, children }) =>
<span css={{ whiteSpace: `nowrap` }}>
{children}&nbsp;<img
src={icon}
css={{
height: `1.2em`,
width: `auto`,
margin: 0,
verticalAlign: `text-bottom`,
}}
/>
</span>

const IndexRoute = React.createClass({
render() {
console.log(this.props)
Expand All @@ -37,32 +50,9 @@ const IndexRoute = React.createClass({
<CardHeadline>Modern web tech without the headache</CardHeadline>
<FuturaParagraph>
Enjoy all the power of the latest web technologies –{` `}
<span css={{ whiteSpace: `nowrap` }}>
React.js&nbsp;
<img
src={ReactJSIcon}
css={{
height: `1.2em`,
width: `auto`,
margin: 0,
verticalAlign: `middle`,
}}
/>
</span>
,{` `}
<span css={{ whiteSpace: `nowrap` }}>
Webpack&nbsp;
<img
src={WebpackIcon}
css={{
height: `1.2em`,
width: `auto`,
margin: 0,
verticalAlign: `middle`,
}}
/>
</span>
, modern JavaScript and CSS and more – all setup and waiting for
<TechWithIcon icon={ReactJSIcon}>React.js</TechWithIcon>,{` `}
<TechWithIcon icon={WebpackIcon}>Webpack</TechWithIcon>,{` `}
modern JavaScript and CSS and more – all setup and waiting for
you to start building.
</FuturaParagraph>
</Card>
Expand All @@ -73,17 +63,7 @@ const IndexRoute = React.createClass({
the data you want – from one or many sources: Pull data from
headless CMSs, SaaS services, APIs, databases, your file system
& more directly into your pages using{` `}
<span css={{ whiteSpace: `nowrap` }}>
GraphQL&nbsp;<img
src={GraphQLIcon}
css={{
height: `1.2em`,
width: `auto`,
margin: 0,
verticalAlign: `middle`,
}}
/>
</span>.
<TechWithIcon icon={GraphQLIcon}>GraphQL</TechWithIcon>.
</FuturaParagraph>
</Card>
<Card>
Expand Down