From 2089604dbec76c429c3d43014b70e32f8098885e Mon Sep 17 00:00:00 2001 From: Idan Levi <29idan29@gmail.com> Date: Fri, 8 Aug 2025 00:15:29 +0300 Subject: [PATCH 1/5] adapt to shad cn --- pages/index.page.tsx | 491 +++++++++++++++++++++++-------------------- 1 file changed, 267 insertions(+), 224 deletions(-) diff --git a/pages/index.page.tsx b/pages/index.page.tsx index 95fb51ddd..82fa84d55 100644 --- a/pages/index.page.tsx +++ b/pages/index.page.tsx @@ -1,3 +1,4 @@ +/* eslint-disable linebreak-style */ import React, { useEffect, useState } from 'react'; import { getLayout } from '../components/SiteLayout'; import { DocSearch } from '@docsearch/react'; @@ -14,6 +15,8 @@ import { } from '../lib/calendarUtils'; import { Headline4 } from '~/components/Headlines'; import { GetStaticProps } from 'next'; +import { Button } from '~/components/ui/button'; +import { Card, CardContent, CardTitle } from '~/components/ui/card'; /* eslint-disable */ import ical from 'node-ical'; @@ -23,7 +26,8 @@ import { useTheme } from 'next-themes'; const algoliaAppId: string = process.env.NEXT_PUBLIC_ALGOLIA_APP_ID as string; const algoliaApiKey: string = process.env.NEXT_PUBLIC_ALGOLIA_API_KEY as string; -/* eslint-enable */ + + export const getStaticProps: GetStaticProps = async () => { const files = fs.readdirSync(PATH); const blogPosts = files @@ -171,18 +175,18 @@ const Home = (props: any) => {
- Simplify your validation logic to reduce your code’s complexity - and save time on development. Define constraints for your data - structures to catch and prevent errors, inconsistencies, and - invalid data. -
-- Establish a common language for data exchange, no matter the - scale or complexity of your project. Define precise validation - rules for your data structures to create shared understanding - and increase interoperability across different systems and - platforms. -
-- Create a clear, standardized representation of your data to - improve understanding and collaboration among developers, - stakeholders, and collaborators. -
-- Adopt JSON Schema with an expansive range of community-driven - tools, libraries, and frameworks across many programming - languages. -
-+ Simplify your validation logic to reduce your code's + complexity and save time on development. Define constraints + for your data structures to catch and prevent errors, + inconsistencies, and invalid data. +
++ Establish a common language for data exchange, no matter the + scale or complexity of your project. Define precise validation + rules for your data structures to create shared understanding + and increase interoperability across different systems and + platforms. +
++ Create a clear, standardized representation of your data to + improve understanding and collaboration among developers, + stakeholders, and collaborators. +
++ Adopt JSON Schema with an expansive range of community-driven + tools, libraries, and frameworks across many programming + languages. +
+- Join our Slack to ask questions, get feedback on your - projects, and connect with +5000 practitioners and experts. -
- - -- {blogPosts[0].frontmatter.authors.length > 2 ? ( - <> - {blogPosts[0].frontmatter.authors - .slice(0, 2) - .map((author: any, index: number) => ( - - {author.name} - {index === 0 && ' & '} - - ))} - {'...'} - > - ) : ( - blogPosts[0].frontmatter.authors.map((author: any) => ( - {author.name} - )) - )} -
- -+ {blogPosts[0].frontmatter.authors.length > 2 ? ( + <> + {blogPosts[0].frontmatter.authors + .slice(0, 2) + .map((author: any, index: number) => ( + + {author.name} + {index === 0 && ' & '} + + ))} + {'...'} + > + ) : ( + blogPosts[0].frontmatter.authors.map( + (author: any) => ( + {author.name} + ), + ) + )} +
+ +- We hold monthly Office Hours and Open Community Working - Meetings. Office Hours are every first Tuesday of the month - and by appointment. Open Community Working Meetings are every - third Monday of the month at 12:00 PT. -
-+ We hold monthly Office Hours and Open Community Working + Meetings. Office Hours are every first Tuesday of the month + and by appointment. Open Community Working Meetings are + every third Monday of the month at 12:00 PT. +
++ {event.title} +
++ {event.time} ({event.timezone}) +
++ No upcoming events scheduled +
+- Join our Slack to ask questions, get feedback on your - projects, and connect with +5000 practitioners and experts. -
-- {blogPosts[0].frontmatter.authors.length > 2 ? ( - <> - {blogPosts[0].frontmatter.authors - .slice(0, 2) - .map((author: any, index: number) => ( - - {author.name} - {index === 0 && ' & '} - - ))} - {'...'} - > - ) : ( - blogPosts[0].frontmatter.authors.map( - (author: any) => ( - {author.name} - ), - ) - )} -
++ {blogPosts[0].frontmatter.authors.length > 2 ? ( + <> + {blogPosts[0].frontmatter.authors + .slice(0, 2) + .map((author: any, index: number) => ( + + {author.name} + {index === 0 && ' & '} + + ))} + {'...'} + > + ) : ( + blogPosts[0].frontmatter.authors.map( + (author: any) => ( + {author.name} + ), + ) + )} +
++ {blogPosts[0].frontmatter.date} · {timeToRead} min read +
- We hold monthly Office Hours and Open Community Working - Meetings. Office Hours are every first Tuesday of the month - and by appointment. Open Community Working Meetings are - every third Monday of the month at 12:00 PT. -
-+ Join our Slack to ask questions, get feedback on your + projects, and connect with +5000 practitioners and experts. +
+ ++ We hold monthly Office Hours and Open Community Working + Meetings. Office Hours are every first Tuesday of the month + and by appointment. Open Community Working Meetings are + every third Monday of the month at 12:00 PT. +
+ +- {event.day} -
-{event.title}
-- {event.time} ({event.timezone}) -
-+ Join our Slack to ask questions, get feedback on your + projects, and connect with +5000 practitioners and experts. +
+ + ++ We hold monthly Office Hours and Open Community Working + Meetings. Office Hours are every first Tuesday of the month + and by appointment. Open Community Working Meetings are + every third Monday of the month at 12:00 PT. +
+ ++ {blogPosts[0].frontmatter.authors.length > 2 ? ( + <> + {blogPosts[0].frontmatter.authors + .slice(0, 2) + .map((author: any, index: number) => ( + + {author.name} + {index === 0 && ' & '} + + ))} + {'...'} + > + ) : ( + blogPosts[0].frontmatter.authors.map( + (author: any) => ( + {author.name} + ), + ) + )} +
++ {blogPosts[0].frontmatter.date} · {timeToRead} min read +
+- {blogPosts[0].frontmatter.authors.length > 2 ? ( - <> - {blogPosts[0].frontmatter.authors - .slice(0, 2) - .map((author: any, index: number) => ( - - {author.name} - {index === 0 && ' & '} - - ))} - {'...'} - > - ) : ( - blogPosts[0].frontmatter.authors.map( - (author: any) => ( - {author.name} - ), - ) - )} -
-- {blogPosts[0].frontmatter.date} · {timeToRead} min read -
-- Join our Slack to ask questions, get feedback on your - projects, and connect with +5000 practitioners and experts. -
- - -- We hold monthly Office Hours and Open Community Working - Meetings. Office Hours are every first Tuesday of the month - and by appointment. Open Community Working Meetings are - every third Monday of the month at 12:00 PT. -
- -