Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

455 blog author image scaling responsiveness #457

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions web/src/templates/blog/BlogPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export default function BlogPreview({ blog }) {
return (
<Col xs={12} md={6} className="mt-4 px-0 px-sm-2" key={edge.id}>
<Container className="blog-card border border-2 rounded-1">
<Row className="p-3 h-100">
<Col xs={12} className="p-0">
<Row className="p-3">
<Col xs={12} className="p-0 d-flex">
<Container
className="blog-image d-flex flex-column"
style={{
Expand Down
4 changes: 3 additions & 1 deletion web/src/templates/blog/BlogPreview.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
letter-spacing: 0 !important;
}
.blog-card {
height: 60vh;

height: 500px;


@include screen-xs {
height: 85vh;
Expand Down
13 changes: 5 additions & 8 deletions web/src/templates/blog/blog-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,21 @@ const Blog = ({ pageContext }) => {
<Col sm={{ span: 8, offset: 2 }}>
<Title className="mt-5">{blogInfo.title}</Title>
<Container className="my-4">
<Row className="">
<Col
xs={{ span: 2 }}
sm={{ span: 1 }}
className="d-flex justify-content-center p-0 rounded-circle border border-1 border-dark"
>
<Row >
<Col xs={{span:3}} sm={{span:4}} md={{span: 2}} >
<GatsbyImage
objectFit="cover"
image={authorImage}
// image={'../../images/ainc-logo-horizontal-white-text.png'}
alt={blogInfo.reference.name}
className="rounded-circle border border-3 border-white p-1"
className="rounded-circle p-4"
style={{ outline: "1px solid black", border: "3px solid white" }}
/>
</Col>
<Col
xs={{ span: 10 }}
sm={{ span: 10 }}
className="d-flex justify-content-start align-content-center flex-column mt-2 mt-sm-1 mx-0 mx-sm-1"
className="d-flex justify-content-start align-content-center flex-column mt-2 mx-0"
>
<Title className={`${styles.author} mb-0`}>
{blogInfo.reference.name}, {blogInfo.reference.title}
Expand Down