|
| 1 | +import styled from 'styled-components' |
| 2 | + |
| 3 | +import { ArticlePreview, Heading, StaticImage } from 'components' |
| 4 | +import { GridSection } from 'components/layout' |
| 5 | +import { TABLET_LARGE_SIZE, MOBILE_SIZE } from 'styles/constants' |
| 6 | + |
| 7 | +const StyledSection = styled.section` |
| 8 | + margin: 165px auto 0; |
| 9 | + padding: 0 20px; |
| 10 | +
|
| 11 | + @media only screen and (max-width: ${TABLET_LARGE_SIZE}) { |
| 12 | + margin: 124px 0 0; |
| 13 | + } |
| 14 | +
|
| 15 | + @media only screen and (max-width: ${MOBILE_SIZE}) { |
| 16 | + margin: 142px 16px 0; |
| 17 | + } |
| 18 | +` |
| 19 | + |
| 20 | +const FeaturedArticlesHeading = styled(Heading)` |
| 21 | + text-align: center; |
| 22 | + margin: 0 24px 3rem 24px; |
| 23 | +` |
| 24 | + |
| 25 | +const FeaturedArticlesItems = styled(GridSection)` |
| 26 | + border-bottom: 1px solid #000; |
| 27 | + padding-bottom: 110px; |
| 28 | +
|
| 29 | + @media only screen and (max-width: ${TABLET_LARGE_SIZE}) { |
| 30 | + padding-bottom: 124px; |
| 31 | + } |
| 32 | +
|
| 33 | + @media only screen and (max-width: ${MOBILE_SIZE}) { |
| 34 | + padding-bottom: 142px; |
| 35 | + } |
| 36 | +` |
| 37 | + |
| 38 | +const FeaturedArticles = () => ( |
| 39 | + <StyledSection> |
| 40 | + <FeaturedArticlesHeading variant={Heading.VARIANT.h2}> |
| 41 | + Featured Articles |
| 42 | + </FeaturedArticlesHeading> |
| 43 | + <FeaturedArticlesItems> |
| 44 | + <ArticlePreview |
| 45 | + media={ |
| 46 | + <StaticImage |
| 47 | + name="person-looking-at-monitor.jpeg" |
| 48 | + alt="Person looking at computer monitor" |
| 49 | + /> |
| 50 | + } |
| 51 | + heading="My job at Commit is to create an incredible experience for engineers" |
| 52 | + text="One August in the 1990s, I drove across Canada, with a good friend. |
| 53 | + I have so many fond memories of the journey: our debates about how |
| 54 | + to solve the world's problems, the lengthy and..." |
| 55 | + link="https://blog.commit.dev/articles/b5i3amkjq2nz7y4apq4jsfd66hudu8" |
| 56 | + /> |
| 57 | + <ArticlePreview |
| 58 | + media={<StaticImage name="lillian-liang.jpeg" alt="Lillian Liang" />} |
| 59 | + heading="Lillian Liang, Plastiq Inc." |
| 60 | + text="Lillian Liang is a Commit engineer who joined Plastiq earlier this |
| 61 | + year. We talked to her about her journey to Commit and Plastiq..." |
| 62 | + link="https://blog.commit.dev/articles/committed-to-success-lillian-liang-plastiq-inc" |
| 63 | + /> |
| 64 | + <ArticlePreview |
| 65 | + media={ |
| 66 | + <StaticImage |
| 67 | + name="monolith-diagram.png" |
| 68 | + alt="Monolith architecture" |
| 69 | + /> |
| 70 | + } |
| 71 | + heading="Streaming out the monolith" |
| 72 | + text="As a monolithic code base builds up over time, it can become harder |
| 73 | + and harder to maintain, and more difficult to extract data from, |
| 74 | + especially if..." |
| 75 | + link="https://blog.commit.dev/articles/streaming-out-the-monolith" |
| 76 | + /> |
| 77 | + </FeaturedArticlesItems> |
| 78 | + </StyledSection> |
| 79 | +) |
| 80 | + |
| 81 | +export default FeaturedArticles |
0 commit comments