From 457eaaf141ef809934a5d535e7415053929ae16f Mon Sep 17 00:00:00 2001 From: Idan Levi <29idan29@gmail.com> Date: Mon, 18 Aug 2025 16:42:57 +0300 Subject: [PATCH] adaptingt he communty page to shadCN --- pages/community/index.page.tsx | 138 +++++++++++++++++++-------------- 1 file changed, 79 insertions(+), 59 deletions(-) diff --git a/pages/community/index.page.tsx b/pages/community/index.page.tsx index d68d6deb8..eb2518359 100644 --- a/pages/community/index.page.tsx +++ b/pages/community/index.page.tsx @@ -1,3 +1,4 @@ +/* eslint-disable linebreak-style */ import React from 'react'; import { getLayout } from '~/components/SiteLayout'; import { SectionContext } from '~/context'; @@ -15,6 +16,8 @@ import { fetchRemoteICalFile, printEventsForNextWeeks, } from '../../lib/calendarUtils'; +import { Button } from '~/components/ui/button'; +import { cn } from '~/lib/utils'; export const getStaticProps: GetStaticProps = async () => { const PATH = 'pages/blog/posts'; @@ -83,7 +86,7 @@ export default function communityPages(props: any) {
- +
@@ -152,10 +155,10 @@ export default function communityPages(props: any) {
-

+

Ambassadors Program

-

+

The JSON Schema Ambassadors Program recognize the people who drive adoption, innovation and knowledge sharing in the JSON Schema community. @@ -164,17 +167,18 @@ export default function communityPages(props: any) { className='mt-10 mx-auto flex justify-center items-center' data-testid='HomeCard-button' > - - Become an ambassador - + + Become an ambassador + +

-
+
@@ -183,25 +187,26 @@ export default function communityPages(props: any) { data-testid='HomeCard-main' className='m-auto flex flex-col items-center text-center' > -

+

Join the JSON Schema Slack workspace!

-

+

Join our Slack to ask questions, get feedback on your projects, and connect with +5000 practitioners and experts.

- - Join Slack - + + Join Slack + +
-
+
@@ -209,43 +214,49 @@ export default function communityPages(props: any) {
-

+

JSON Schema Community Meetings & Events

-

+

We hold monthly Office Hours and weekly Open Community Working Meetings. Office Hours are every first Tuesday of the month at 15:00 BST, and by appointment. Open Community Working Meetings are every Monday at 14:00 PT.

-
- +
-
- + Open Community Working Meetings + + +
-

+

Upcoming events

{props.datesInfo.map((event: any, index: any) => ( @@ -254,12 +265,16 @@ export default function communityPages(props: any) { className='mx-auto gap-2 group-hover:bg-white dark:bg-slate-900/50 dark:group-hover:bg-slate-800 bg-slate-100 h-[90px] max-md:h-[120px] max-sm:h-auto w-full rounded-lg flex flex-row justify-between items-center p-2 mt-2' >
-

{event.day}

+

+ {event.day} +

-

+

{event.title}
@@ -276,14 +291,17 @@ export default function communityPages(props: any) {