-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee1169c
commit 201b04e
Showing
5 changed files
with
27 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
import React from "react"; | ||
import {Card, CardImg, CardBody, CardImgOverlay, CardTitle, CardText} from "react-bootstrap"; | ||
import {Card, CardImg, CardBody, CardImgOverlay, CardTitle, CardText, Col} from "react-bootstrap"; | ||
import {Link} from "gatsby"; | ||
import {GatsbyImage, getImage} from "gatsby-plugin-image"; | ||
|
||
const PostCardFront = ({post}) => ( | ||
|
||
<Card className={'mx-3 border-0'}> | ||
<CardImg className={'img-fluid rounded-3'} variant={'top'} as={GatsbyImage} | ||
image={getImage(post.frontmatter.featuredImg)} alt={post.frontmatter.title}/> | ||
<CardImgOverlay> | ||
<CardBody className={'d-flex align-content-end'}> | ||
<Link to={post.frontmatter.slug} className={'link-light text-decoration-none'}><CardTitle | ||
className="stretched-link text-white fw-bold display-6 mb-3 mt-0">{post.frontmatter.title}</CardTitle></Link> | ||
<CardText className="text-white small">{post.frontmatter.date}</CardText> | ||
</CardBody> | ||
</CardImgOverlay> | ||
</Card> | ||
<Col md={4} className="mb-3"> | ||
<Card className={'mx-3 border-0'}> | ||
<CardImg className={'img-fluid rounded-3'} variant={'top'} as={GatsbyImage} | ||
image={getImage(post.frontmatter.featuredImg)} alt={post.frontmatter.title}/> | ||
<CardImgOverlay> | ||
<CardBody className={'d-flex align-content-end'}> | ||
<Link to={post.frontmatter.slug} className={'link-light text-decoration-none'}><CardTitle | ||
className="stretched-link text-white fw-bold display-6 mb-3 mt-0">{post.frontmatter.title}</CardTitle></Link> | ||
<CardText className="text-white small">{post.frontmatter.date}</CardText> | ||
</CardBody> | ||
</CardImgOverlay> | ||
</Card> | ||
</Col> | ||
); | ||
|
||
export default PostCardFront; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
padding-top: 10vh; | ||
font-size: 1rem; | ||
background: #192036; | ||
height: 40vh; | ||
} | ||
|
||
.footer li { | ||
|