Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit d28a2d0

Browse files
author
Sayan Mondal
authored
Added HacktoberFest Card (#124) (#125)
* Added HacktoberFest Card * Updated Hacktober Logo to Latest 2020 * Updated Hacktober link + Updated text Signed-off-by: Sayan Mondal <[email protected]>
1 parent 20083d2 commit d28a2d0

File tree

22 files changed

+66
-10
lines changed

22 files changed

+66
-10
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"componentChunkName":"component---src-pages-community-tsx","path":"/community/","result":{"pageContext":{}},"staticQueryHashes":["1505837148","243816524","281358774","3205528609","3408949196","74630084","822897411"]}
1+
{"componentChunkName":"component---src-pages-community-tsx","path":"/community/","result":{"pageContext":{}},"staticQueryHashes":["1505837148","1578129905","243816524","281358774","3408949196","74630084","822897411"]}
Loading
Loading
Loading
Binary file not shown.
Binary file not shown.
Loading
Binary file not shown.
Binary file not shown.
Loading
Binary file not shown.
Binary file not shown.
Loading
Loading
Binary file not shown.
Binary file not shown.
Loading
Loading
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import { graphql, useStaticQuery } from "gatsby";
2+
import Img from "gatsby-image";
3+
import React from "react";
4+
import styled from "styled-components";
5+
6+
const Wrapper = styled.div`
7+
width: 100%;
8+
height: 100%;
9+
`;
10+
11+
const StyledImage = styled(Img)`
12+
margin: auto;
13+
width: 100%;
14+
height: ${(props) =>
15+
props.theme.screens.sm
16+
? "8rem"
17+
: props.theme.screens.xl
18+
? "10rem"
19+
: "10rem"};
20+
object-fit: contain;
21+
`;
22+
23+
const HacktoberFestImage: React.FC = () => {
24+
const data = useStaticQuery(graphql`
25+
query {
26+
image: file(relativePath: { eq: "hacktoberfest.png" }) {
27+
childImageSharp {
28+
fluid(maxWidth: 1024, quality: 100) {
29+
...GatsbyImageSharpFluid_withWebp
30+
...GatsbyImageSharpFluidLimitPresentationSize
31+
}
32+
}
33+
}
34+
}
35+
`);
36+
37+
return (
38+
<Wrapper>
39+
<StyledImage
40+
fluid={data.image.childImageSharp.fluid}
41+
alt="Image of Litmus Features"
42+
/>
43+
</Wrapper>
44+
);
45+
};
46+
47+
export { HacktoberFestImage };

src/components/sections/community/CommunityEvents.tsx

+18-9
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
} from "../../../components/layout";
88
import { Heading, Paragraph } from "../../../components/texts";
99
import { CNCFImage } from "../../image-fetch/CNCF";
10-
import { CommunitySyncUpImage } from "../../image-fetch/CommunitySyncUp";
10+
import { HacktoberFestImage } from "../../image-fetch/HacktoberFest";
1111

1212
const CommunityEvents: React.FC = () => {
1313
return (
@@ -26,22 +26,31 @@ const CommunityEvents: React.FC = () => {
2626
</BoundedContainer>
2727
<BoundedContainer breakpoint="xl" width="40rem" margin="0 auto">
2828
<ResponsiveRow breakpoint="xl">
29+
{/* <Card
30+
width="100%"
31+
height="100%"
32+
subheading="Community Sync Up"
33+
body="Meet and learn from the maintainers, contributors, and developers of Litmus everything about Chaos Engineering."
34+
image={<CommunitySyncUpImage />}
35+
link="https://zoom.us/j/91358162694"
36+
/> */}
37+
2938
<Card
3039
width="100%"
3140
height="100%"
32-
subheading="Kubernetes Chaos Engineering Meetup"
33-
body=" Discussion about the best practices and tutorials for practicing chaos engineering"
34-
image={<CNCFImage />}
35-
link="https://community.cncf.io/events/details/cncf-kubernetes-chaos-engineering-meetup-group-presents-kubernetes-chaos-engineering-meetup-1/#/"
41+
subheading="HacktoberFest"
42+
body="Contribute to LitmusChaos and get a chance to win not only swags but also a grand prize and much more"
43+
image={<HacktoberFestImage />}
44+
link="https://mayadata.io/hacktoberfest-2020"
3645
/>
3746

3847
<Card
3948
width="100%"
4049
height="100%"
41-
subheading="Community Sync Up"
42-
body="Meet and learn from the maintainers, contributors, and developers of Litmus everything about Chaos Engineering."
43-
image={<CommunitySyncUpImage />}
44-
link="https://zoom.us/j/91358162694"
50+
subheading="Kubernetes Chaos Engineering Meetup"
51+
body=" Discussion about the best practices and tutorials for practicing chaos engineering"
52+
image={<CNCFImage />}
53+
link="https://community.cncf.io/events/details/cncf-kubernetes-chaos-engineering-meetup-group-presents-kubernetes-chaos-engineering-meetup-1/#/"
4554
/>
4655
</ResponsiveRow>
4756
</BoundedContainer>

src/images/hacktoberfest.png

48.6 KB
Loading

0 commit comments

Comments
 (0)