Skip to content

Commit eba9b1a

Browse files
committed
Fix: Update
Signed-off-by: vr-varad <varadgupta21@gmail.com>
1 parent 057d8e7 commit eba9b1a

4 files changed

Lines changed: 15 additions & 3 deletions

File tree

gatsby-node.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ exports.createPages = async ({ actions, graphql, reporter }) => {
7272
redirectInBrowser: true,
7373
isPermanent: true,
7474
});
75+
createRedirect({
76+
fromPath: "/learn/service-mesh-workshops",
77+
toPath: "/learn/workshops",
78+
redirectInBrowser: true,
79+
isPermanent: true,
80+
});
7581
createRedirect({
7682
fromPath: "/workshops",
7783
toPath: "/learn/workshops",

src/components/Workshop-Card/WorkshopsCardWrapper.style.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ const WorkshopCardWrapper = styled.div`
4242
width: 100%;
4343
height: auto;
4444
margin-bottom: 1.25rem;
45+
46+
.image {
47+
height: 35rem;
48+
}
49+
4550
}
4651
4752
.image {
@@ -67,7 +72,7 @@ const WorkshopCardWrapper = styled.div`
6772
display: block;
6873
width: 100%;
6974
text-align: center;
70-
margin-top: 0.625rem;
75+
margin-top: -5rem;
7176
transition: all 0.25s ease-in;
7277
}
7378

src/reusecore/PageHeader/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const authorField = (author, isSlugAvailable) => {
2020
);
2121
};
2222

23-
const PageHeader = ({ category, title, img, feedlink, subtitle, author, thumbnail, superscript, date }) => {
23+
const PageHeader = ({ category, title, img, feedlink, subtitle, author, thumbnail, superscript, date, noAspectRatio = false }) => {
2424
let isSlugAvailable = false;
2525
if (author){
2626
const validMembers = useStaticQuery(
@@ -45,7 +45,7 @@ const PageHeader = ({ category, title, img, feedlink, subtitle, author, thumbnai
4545
return (
4646
<PageHeaderWrapper>
4747
<div className="page-header">
48-
{ thumbnail && <div className="feature-image" style={{ aspectRatio: "16/9", minHeight: "250px" }}>
48+
{ thumbnail && <div className="feature-image" style={noAspectRatio ? { minHeight: "250px" }: { aspectRatio: "16/9", minHeight: "250px" }}>
4949
<Image {...thumbnail} imgStyle={{ objectFit: "contain" }} alt={title}/>
5050
</div>}
5151
<h1 className="page-title" >{title} <sup className="supscript">{superscript}</sup>{ img && feedlink && (<a href= {feedlink} target="_blank" rel="noreferrer"> <img src={img} alt="RSS Feed"/> </a>) } </h1>

src/sections/Learn/Workshop-single/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const WorkshopSinglePage = ({ frontmatter, body }) => {
2727
title={frontmatter.title}
2828
subtitle={frontmatter.abstract}
2929
thumbnail={frontmatter.thumbnail}
30+
noAspectRatio={true}
3031
/>
3132
<Container>
3233
<div className="cardContent">

0 commit comments

Comments
 (0)