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

Create a new section highlighting contributor and user badges #6119

Open
wants to merge 2 commits into
base: master
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
109 changes: 109 additions & 0 deletions src/sections/Community/community.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,115 @@ const CommunitySectionWrapper = styled.div`
}
}

.recognition-program {
margin-top: 5rem;

.recognition-content {
display: grid;
grid-template-columns: minmax(300px, 40%) 1fr;
min-height: 500px;
position: relative;
gap: 2rem;

.badges-section {
position: relative;
display: flex;
align-items: center;
justify-content: center;

.badge-stack {
position: relative;
width: 100%;
height: 100%;
max-width: 400px;

.badge-item {
position: absolute;
width: 180px;
height: 180px;
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);

img {
width: 140%;
height: 140%;
object-fit: contain;
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

&:nth-child(1) {
top: 0;
left: 0;
z-index: 3;
}
&:nth-child(2) {
top: 90px;
left: 90px;
z-index: 2;
}
&:nth-child(3) {
top: 180px;
left: 180px;
z-index: 1;
}
}
}
}

.content {
h1.subtitle {
margin: 0.5rem auto 0.5rem auto;
font-size: 1.75rem;
font-weight: 500;
color: ${(props) => props.theme.primaryColor};
}
}

@media (max-width: 62rem) {
grid-template-columns: 1fr;
text-align: center;

.content {
padding: 1.875rem 1.25rem;
}
}

@media (max-width: 1000px) {
.badges-section {
min-height: 300px;
padding: 1.25rem;

.badge-stack {
height: 260px;

.badge-item {
width: 150px;
height: 150px;

img {
width: 120%;
height: 120%;
object-fit: contain;
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

&:nth-child(1) {
top: 0;
left: calc(50% - 60px);
}
&:nth-child(2) {
top: 140px;
left: calc(50% - 120px);
}
&:nth-child(3) {
top: 140px;
left: calc(50% + 0px);
}
}
}
}
}
}
}
`;

export default CommunitySectionWrapper;
51 changes: 51 additions & 0 deletions src/sections/Community/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,57 @@ const CommunityPage = () => {
</Col>
</Row>
</div>
<Container>
<Row className="recognition-program">
<div className="recognition-content">
<div className="badges-section">
<div className="badge-stack">
<div className="badge-item">
<img
src="https://badges.layer5.io/assets/badges/docker-captain/docker-captain.png"
alt="Docker Captain Badge"
/>
</div>
<div className="badge-item">
<img
src="https://badges.layer5.io/assets/badges/cncf-ambassador/cncf-ambassador.png"
alt="CNCF Ambassador Badge"
/>
</div>
<div className="badge-item">
<img
src="https://badges.layer5.io/assets/badges/meshery/meshery.png"
alt="Meshery Badge"
/>
</div>
</div>
</div>

<Col className="content">
<h1 className="subtitle">Your Achievements, Recognized</h1>
<h1>Layer5 Recognition Program</h1>
<p>
The <strong>Layer5 Recognition Program</strong> is more than a
badge. It's a testament to your skills, dedication, and impact
in the cloud-native ecosystem. Every contribution – big or
small – is a step toward earning a badge that tells your
unique story.
</p>
<p>
Showcase your journey, connect with peers, and let the world
see the milestones you've achieved. Whether you're solving
challenges, sharing knowledge, or coding solutions, there's a
badge waiting for you.
</p>
<Button
$primary
title="Explore Badges Now"
$url="https://badges.layer5.io"
/>
</Col>
</div>
</Row>
</Container>
<Container>
<Row className="meshmate">
<Col className="content" $sm={12} $lg={6}>
Expand Down
Loading