docs: convert website from postcss to emotion (#2068)
This commit is contained in:
committed by
Shawn Erquhart
parent
7b0838dfef
commit
3d474b1944
@ -5,16 +5,9 @@ import Prism from 'prismjs';
|
||||
import { BlogPostTemplate } from '../templates/blog-post';
|
||||
import { DocsTemplate } from '../templates/doc-page';
|
||||
import WidgetDoc from '../components/widget-doc';
|
||||
import Release from '../components/release';
|
||||
import WhatsNew from '../components/whats-new';
|
||||
import Notification from '../components/notification';
|
||||
import Community from '../components/community';
|
||||
import '../css/imports/hero.css';
|
||||
import '../css/imports/docs.css';
|
||||
import '../css/imports/whatsnew.css';
|
||||
import '../css/imports/header.css';
|
||||
import '../css/imports/collab.css';
|
||||
import '../css/imports/community.css';
|
||||
|
||||
const withHighlight = WrappedComponent =>
|
||||
class Highlight extends React.Component {
|
||||
@ -70,16 +63,15 @@ const WidgetDocPreview = ({ entry, widgetFor }) => (
|
||||
);
|
||||
|
||||
const ReleasePreview = ({ entry }) => (
|
||||
<WhatsNew>
|
||||
{entry.getIn(['data', 'updates']).map((release, idx) => (
|
||||
<Release
|
||||
key={idx}
|
||||
version={release.get('version')}
|
||||
date={dayjs(release.get('date')).format('MMMM D, YYYY')}
|
||||
description={release.get('description')}
|
||||
/>
|
||||
))}
|
||||
</WhatsNew>
|
||||
<WhatsNew
|
||||
updates={[
|
||||
entry.getIn(['data', 'updates']).map(release => ({
|
||||
version: release.get('version'),
|
||||
date: dayjs(release.get('date')).format('MMMM D, YYYY'),
|
||||
description: release.get('description'),
|
||||
})),
|
||||
]}
|
||||
/>
|
||||
);
|
||||
|
||||
const NotificationPreview = ({ entry }) =>
|
||||
|
Reference in New Issue
Block a user