parent
bdfe81ce1f
commit
03584d67d8
4 changed files with 57 additions and 42 deletions
@ -0,0 +1,15 @@ |
||||
import Link from 'next/link'; |
||||
import { BlockLink, BlockSubtitle, BlockTitle } from './style'; |
||||
|
||||
const RoadmapBlock = ({ roadmap }) => ( |
||||
<div className="col-xl-4 col-lg-4 col-md-6 col-sm-12 col-12 grid-item-container"> |
||||
<Link href={ roadmap.slug } passHref> |
||||
<BlockLink> |
||||
<BlockTitle>{ roadmap.title }</BlockTitle> |
||||
<BlockSubtitle>{ roadmap.featuredDescription || roadmap.description }</BlockSubtitle> |
||||
</BlockLink> |
||||
</Link> |
||||
</div> |
||||
); |
||||
|
||||
export default RoadmapBlock; |
@ -0,0 +1,38 @@ |
||||
import styled from 'styled-components'; |
||||
|
||||
export const BlockLink = styled.a` |
||||
border: 1px solid #f7f7f7; |
||||
display: block; |
||||
text-decoration: none; |
||||
color: #000000; |
||||
background: #ffffff; |
||||
padding: 28px 25px 25px; |
||||
border-radius: 10px; |
||||
box-shadow: rgba(0, 0, 0, 0.12) 0 5px 10px; |
||||
transition: box-shadow 0.2s ease 0s; |
||||
cursor: pointer; |
||||
margin-bottom: 32px; |
||||
|
||||
&:hover { |
||||
text-decoration: none; |
||||
color: #000000; |
||||
box-shadow: rgba(0, 0, 0, 0.12) 0 30px 60px; |
||||
} |
||||
`;
|
||||
|
||||
export const BlockTitle = styled.h4` |
||||
line-height: 27px; |
||||
font-weight: 600; |
||||
font-size: 22px; |
||||
white-space: nowrap; |
||||
text-overflow: ellipsis; |
||||
flex: 0 0 auto; |
||||
overflow: hidden; |
||||
`;
|
||||
|
||||
export const BlockSubtitle = styled.p` |
||||
font-size: 15px; |
||||
line-height: 25px; |
||||
color: #999999; |
||||
margin-bottom: 0; |
||||
`;
|
Loading…
Reference in new issue