Working more with the article feature layout..

This commit is contained in:
2018-10-30 22:17:45 +11:00
parent c740652a48
commit 2ca45b154c
3 changed files with 74 additions and 28 deletions

View File

@ -25,8 +25,10 @@ import React from 'react';
import BannerImageSection from '@sections/image/banner/BannerImageSection';
import { PageBoundary } from '@components/page/Page';
import Image from '@objects/image/Image';
import Button from '@objects/input/button/Button';
import ContentBox from '@objects/content/box/ContentBox';
import { Title, Paragraph } from '@objects/typography/Typography';
@ -38,16 +40,23 @@ export default props => {
return (
<BannerImageSection
className="c-featured-article"
src={ require('@assets/images/photo.jpg') } alt={ article.title }
loadable
src={ article.image } alt={ article.title } loadable
>
<Title className="c-featured-article__title">
{ article.title }
</Title>
<PageBoundary className="c-featured-article__content" full>
<Paragraph className="c-featured-article__description">
{ article.shortDescription }
</Paragraph>
<ContentBox box className="c-featured-article__header">
<Title className="c-featured-article__title">
{ article.title }
</Title>
</ContentBox>
<ContentBox box className="c-featured-article__body">
<Paragraph className="c-featured-article__description">
{ article.shortDescription }
</Paragraph>
</ContentBox>
</PageBoundary>
</BannerImageSection>
);
};