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

adding-badges-section-in-newcomers-members-page #4895

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 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
61 changes: 61 additions & 0 deletions src/sections/Community/Members-grid/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ import VintageBox from "../../../reusecore/VintageBox";
// Assets
import { MembersGridWrapper } from "./membersGrid.style";
import communityImg from "../../../assets/images/community/community-green.svg";
import badgeImg from "../../../assets/images/recognition-program/recognition-program.png";
import { FaBook } from "@react-icons/all-files/fa/FaBook";
import { FaUsers } from "@react-icons/all-files/fa/FaUsers";
import { FaCertificate } from "@react-icons/all-files/fa/FaCertificate";

const MembersGrid = (props) => {
return (
Expand All @@ -32,6 +34,7 @@ const MembersGrid = (props) => {
))}
</Row>
</div>

<div className="AboutCommunity">
<div>
<h3 className="sectionTitle">Community Membership</h3>
Expand Down Expand Up @@ -108,6 +111,64 @@ const MembersGrid = (props) => {
</div>
</div>
</div>
<div className="AboutCommunity">
<div>
<h3 className="sectionTitle">Recognition Program</h3>
<img id="Badge_img" src={badgeImg} alt="Layer5 Community" style={{
marginLeft: "6rem"
}}/>
</div>
<div className="detailsCommunity">
<p>
Layer5 badges are one of the many ways that we recognize the efforts
of our contributors and uplift our users. Layer5 badges represent milestones
that you achieve both in using and in contributing to Layer5-supported
open source projects. As a contributor, this is how you demonstrate your ownership,
dedication, skills and loyalty to Layer5. As a user,
this is how you demonstrate your prowess.
</p>
<p>
Whether as a user or a contributor,
community members are awarded badges as and when they
achieve any number of different milestones throughout
their journey whether that accomplishment lie within a
community activity or an aspect of using or contributing to a project .
leecalcote marked this conversation as resolved.
Show resolved Hide resolved
Every community member, whether contributing with code or not,
has the opportunity to obtain any number of badges in
recognition of your achievements.
</p>
<p>
See what badges you can earn by visiting the Layer5 badges site. Collect the whole set!
</p>

{/* <p className="text-gray">Would you like to participate?</p> */}
<div className="">
<VintageBox right={true} vintageOne={true}>
<Button
primary
className="banner-btn memberProfileBtn"
title="Collect Badges"
url="https://badges.layer5.io/"
external={true}
style={{
marginLeft: 0,
}}
>
<FaCertificate size={21} className="icon-left" />
</Button>
<Button
secondary
className="banner-btn two memberProfileBtn"
title="Join the Community"
url="https://slack.layer5.io"
>
<FaUsers size={21} className="icon-left" />
</Button>
</VintageBox>
</div>
</div>

</div>
</Container>
</div>
</MembersGridWrapper>
Expand Down
25 changes: 20 additions & 5 deletions src/sections/Community/Members-grid/membersGrid.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const img = (icon) => ({
paddingLeft: 8,
width: "auto",
});

export const selectStyles = {
menu: (styles) => ({
...styles,
Expand Down Expand Up @@ -159,11 +158,20 @@ export const MembersGridWrapper = styled.div`
.members-profile-cards {
z-index: -1 !important;
}
#Badge_img {
PRANJALRANA11 marked this conversation as resolved.
Show resolved Hide resolved
width: 20.75rem;
height: auto;
margin-top: 0;
margin-left: 3rem !important;
}
@media only screen and (max-width: 990px) and (min-width: 580px) {
.members-profile-cards {
max-width: 550px;
margin: auto;
}
#Badge_img {
margin-left: 0 !important;
}
}
@media only screen and (min-width: 991px) and (max-width: 1200px) {
.members-profile-cards {
Expand All @@ -182,9 +190,10 @@ export const MembersGridWrapper = styled.div`
}
.AboutCommunity {
display: flex;
text-align: center;
text-align: center !important;
margin: auto auto 4rem;
align-items: center;
margin-top: 10rem;

.sectionTitle {
width: 100%;
Expand All @@ -196,8 +205,9 @@ export const MembersGridWrapper = styled.div`
padding-right: 3rem;
padding-left: 3rem;
margin-right: 3rem;
margin-top: 3rem;
margin-top: 2rem;
}

.detailsCommunity {
width: 60%;
flex-grow: 1;
Expand All @@ -217,9 +227,13 @@ export const MembersGridWrapper = styled.div`
display: inline-block;
width: 90%;
font-size: 2.25rem;
margin: 1rem auto 1.5rem;
margin: 3rem auto 1.5rem;
align-items: center;
text-align: center;
text-align: center !important;
}
#Badge_img {
margin-left: 0 !important;
width:15rem;
}

img {
Expand All @@ -237,6 +251,7 @@ export const MembersGridWrapper = styled.div`
}
.memberProfileBtn {
margin: 1rem;
margin-left: 0;
}
}
`;
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const NewcomersGuideWrapper = styled.section`
margin: 0 auto;
width: 21.875rem;
text-align: center;
margin-top:1rem;
margin-top:0;
}
}
.community-collage {
Expand All @@ -130,6 +130,7 @@ export const NewcomersGuideWrapper = styled.section`
.table-wrapper{
text-align: center;
margin-bottom: 4rem;
margin-top: 5rem;
}
@media only screen and (max-width: 991px) {
.heading-start {
Expand Down
27 changes: 27 additions & 0 deletions src/sections/Community/Newcomers-guide/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import longArrow from "./long-arrow.svg";
import { StaticImage } from "gatsby-plugin-image";

const CommunityImage2 = "../../../assets/images/newcomers-page-images/community-image3.webp";
const BadgeImage = "../../../assets/images/recognition-program/recognition-program.png";
const CommunityImage3 = "../../../assets/images/newcomers-page-images/community-collage.webp";

const NewcomersGuide = () => {
Expand Down Expand Up @@ -216,6 +217,32 @@ const NewcomersGuide = () => {
</p>
</Col>
</Row>
<Row>
<Col sm={12} lg={6} style={{marginTop:"3rem"}}>
<h3>Recognizing Community Members</h3>
<ol type="i">
<li>
Whether as a user or a contributor, community members are awarded badges as and when they achieve any number of different milestones throughout their journey whether that accomplishment lie within a community activity or an aspect of using or contributing to a project
.
leecalcote marked this conversation as resolved.
Show resolved Hide resolved
</li>
<li>
Every community member, whether contributing with code or not, has the opportunity to obtain any number of badges in recognition of your achievements.{" "}
</li>
<li>See what badges you can earn by visiting the {" "}
<a
href="https://badges.layer5.io"
target="_blank" rel="noreferrer"
>
Layer5 badges site
</a>{" "}
Collect the whole set!
</li>
</ol>
</Col>
<Col sm={12} lg={6} className="community-img">
<StaticImage src={BadgeImage} alt="Layer5 Community Badge" />
</Col>
</Row>
</div>
<div className="table-wrapper">
<h2>Tutorials</h2>
Expand Down