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) {
{event.day}
++ {event.day} +
+
{event.title}
Want to publish a blog post? Check out the
+
{blogPosts[0].frontmatter.authors.length > 2 ? (
<>
{blogPosts[0].frontmatter.authors
@@ -366,7 +385,7 @@ export default function communityPages(props: any) {
)
)}
@@ -276,14 +291,17 @@ export default function communityPages(props: any) {
+
Welcome to
the JSON Schema Blog!
+
+
{blogPosts[0].frontmatter.title}
-