chore: fix docs site cms

This commit is contained in:
Shawn Erquhart
2019-06-26 15:52:47 -04:00
parent 5fd4a30f7b
commit 30c2b895ba
4 changed files with 73 additions and 53 deletions

View File

@ -3,7 +3,7 @@ import Helmet from 'react-helmet';
import { graphql } from 'gatsby';
import Layout from '../components/layout';
import Markdownify from '../components/markdownify';
import Community from '../components/community';
import '../css/imports/collab.css';
@ -12,43 +12,8 @@ const CommunityPage = ({ data }) => {
return (
<Layout>
<div className="community page">
<Helmet title={title} />
<section className="hero">
<div className="contained">
<div className="hero-copy">
<h1 className="headline">
<Markdownify source={headline} />
</h1>
<h2 className="subhead">
<Markdownify source={subhead} />
</h2>
</div>
</div>
</section>
<section className="community-channels clearfix">
<div className="contained">
<div className="half">
{sections.map(({ title: sectionTitle, channels }, channelIdx) => (
<React.Fragment key={channelIdx}>
<h4 className="section-label">{sectionTitle}</h4>
<ul className="community-channels-list">
{channels.map(({ title, description, url }, idx) => (
<li key={idx}>
<a href={url}>
<strong>{title}</strong>
<p>{description}</p>
</a>
</li>
))}
</ul>
</React.Fragment>
))}
</div>
</div>
</section>
</div>
<Helmet title={title} />
<Community headline={headline} subhead={subhead} sections={sections} />
</Layout>
);
};