Skip to content
Merged
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
130 changes: 130 additions & 0 deletions src/pages/community/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,105 @@ const channels = [
},
];

function IssueIcon() {
return (
<svg viewBox='0 0 24 24' aria-hidden='true'>
<circle
cx='12'
cy='12'
r='8.25'
fill='none'
stroke='currentColor'
strokeWidth='1.8'
/>
<path
d='M12 7.5v5.25M12 16.25h.01'
fill='none'
stroke='currentColor'
strokeWidth='1.8'
strokeLinecap='round'
/>
</svg>
);
}

function CallIcon() {
return (
<svg viewBox='0 0 24 24' aria-hidden='true'>
<rect
x='2.75'
y='6.25'
width='13'
height='11.5'
rx='2'
fill='none'
stroke='currentColor'
strokeWidth='1.8'
/>
<path
d='m15.75 10.5 5.5-3.25v9.5l-5.5-3.25'
fill='none'
stroke='currentColor'
strokeWidth='1.8'
strokeLinejoin='round'
/>
</svg>
);
}

function GroupIcon() {
return (
<svg viewBox='0 0 24 24' aria-hidden='true'>
<circle
cx='9'
cy='8.5'
r='2.75'
fill='none'
stroke='currentColor'
strokeWidth='1.8'
/>
<path
d='M3.75 19c0-2.9 2.35-5.25 5.25-5.25S14.25 16.1 14.25 19'
fill='none'
stroke='currentColor'
strokeWidth='1.8'
strokeLinecap='round'
/>
<path
d='M15.5 6.5a2.6 2.6 0 0 1 0 5M17.75 19c0-2.35-1.6-4.35-3.75-4.98'
fill='none'
stroke='currentColor'
strokeWidth='1.8'
strokeLinecap='round'
/>
</svg>
);
}

const contributeActions = [
{
title: 'Good first issues',
description: 'Curated, beginner-friendly issues to make your first PR.',
cta: 'Browse issues',
href: 'https://github.com/openchoreo/openchoreo/issues?q=is%3Aissue%20state%3Aopen%20label%3A%22good%20first%20issue%22',
icon: IssueIcon,
},
{
title: 'Community call',
description: 'Monthly call to hear project updates and engage with the community.',
cta: 'See schedule',
href: 'https://zoom-lfx.platform.linuxfoundation.org/meetings/openchoreo?view=list',
icon: CallIcon,
},
{
title: 'Working group',
description: 'Help shape direction on a focused area of the project.',
cta: 'Join a group',
href: 'https://github.com/openchoreo/openchoreo/tree/main/working-groups/observability-plane-architecture',
icon: GroupIcon,
},
];

export default function Community(): React.JSX.Element {
const now = useNow();
const { upcoming, past } = useMemo(() => splitEvents(events, now), [now]);
Expand Down Expand Up @@ -278,6 +377,37 @@ export default function Community(): React.JSX.Element {
</div>
</div>
</section> */}
<section className={styles.section}>
<div className={styles.container}>
<h2>How to contribute</h2>
<p className={styles.sectionLead}>
Contribute through code, discussion, or planning, every path is
open to you.
</p>

<div className={styles.contributeGrid}>
{contributeActions.map((action) => {
const Icon = action.icon;

return (
<article className={styles.contributeCard} key={action.title}>
<div className={styles.contributeIcon} aria-hidden='true'>
<Icon />
</div>
<h3>{action.title}</h3>
<p>{action.description}</p>
<Link
className={`button button--primary button--sm ${styles.contributeButton}`}
to={action.href}
>
{action.cta}
</Link>
</article>
);
})}
</div>
</div>
</section>
<section className={styles.section}>
<div className={styles.container}>
<h2>Join the community</h2>
Expand Down
67 changes: 65 additions & 2 deletions src/pages/community/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}

.section {
padding: 56px 0;
padding: 45px 0;
}

.section h2 {
Expand Down Expand Up @@ -410,8 +410,57 @@
text-decoration: none;
}

.contributeGrid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
}

.contributeCard {
padding: 24px;
border: 1px solid var(--ifm-color-emphasis-200);
border-radius: 10px;
background: var(--ifm-card-background-color);
text-align: center;
}

.contributeIcon {
display: grid;
place-items: center;
width: 44px;
height: 44px;
margin: 0 auto 16px;
border-radius: 10px;
background: rgba(47, 129, 247, 0.12);
color: var(--ifm-color-primary);
}

.contributeIcon svg {
width: 22px;
height: 22px;
}

.contributeCard h3 {
margin: 0 0 6px;
font-size: 1.05rem;
}

.contributeCard p {
min-height: 44px;
margin: 0 0 16px;
color: var(--ifm-color-emphasis-700);
font-size: 0.9rem;
line-height: 1.5;
}

.contributeButton {
padding: 0.35rem 0.9rem;
font-size: 0.85rem;
}

@media (max-width: 900px) {
.eventGrid {
.eventGrid,
.contributeGrid {
grid-template-columns: 1fr;
}
}
Expand Down Expand Up @@ -473,4 +522,18 @@
.channelGrid {
grid-template-columns: 1fr;
}

.contributeGrid {
grid-template-columns: 1fr;
}

.contributeCard {
padding: 20px;
text-align: center;
}

.contributeIcon {
margin-left: auto;
margin-right: auto;
}
}