@@ -3,7 +3,7 @@ import { Flex } from 'components/Flex'
33import { Text } from 'components/Text'
44import { Button } from 'components/Button'
55import ArticleCard from 'components/ArticleCard'
6- import { ArticleType , allArticleTypes , allCourseRevisionOfferings } from 'contentlayer/generated'
6+ import { ArticleType , allArticleTypes , allCourseRevisionOfferings , allWorkshopsOfferings } from 'contentlayer/generated'
77import { compareDesc } from 'date-fns'
88import { NextPage } from 'next'
99import Head from 'next/head'
@@ -13,6 +13,7 @@ import { MagnifyingGlass } from 'phosphor-react'
1313import { ArticleRow } from '../components/ArticleRow'
1414import { ArticlesCarousel } from 'components/ArticlesCarousel'
1515import CourseRevisionContainerHomePage from 'components/course-revision/CourseRevisionContainerHomePage'
16+ import WorkshopsContainerHomePage from 'components/workshops/WorkshopsContainerHomePage'
1617
1718export async function getStaticProps ( ) {
1819 const articles = allArticleTypes . sort ( ( a , b ) => {
@@ -23,7 +24,7 @@ export async function getStaticProps() {
2324 )
2425 const flattenedTags = tagLists . flat ( 1 )
2526 const allTags = [ ...[ 'All Topics' ] , ...new Set ( flattenedTags ) ]
26- return { props : { articles, allTags, courseOfferingContent : allCourseRevisionOfferings } }
27+ return { props : { articles, allTags, courseOfferingContent : allCourseRevisionOfferings , workshopOfferingContent : allWorkshopsOfferings } }
2728}
2829
2930const SearchBar = styled ( 'input' , {
@@ -43,7 +44,7 @@ const TagsContainer = styled('div', {
4344} )
4445
4546// I'm tired, I didn't type this properly ok
46- const Articles : NextPage = ( { articles, allTags, courseOfferingContent } : any ) => {
47+ const Articles : NextPage = ( { articles, allTags, courseOfferingContent, workshopOfferingContent } : any ) => {
4748 const [ currentTag , setCurrentTag ] = useState ( 'All Topics' )
4849 const [ currentSearch , setCurrentSearch ] = useState ( '' )
4950 const [ filteredArticles , setFilteredArticles ] = useState ( articles )
@@ -135,6 +136,29 @@ const Articles: NextPage = ({ articles, allTags, courseOfferingContent }: any) =
135136 < CourseRevisionContainerHomePage allCourseRevisionOfferings = { courseOfferingContent } />
136137 </ Flex >
137138
139+ { /* Uncomment once we have content for workshops */ }
140+
141+ { /* <Flex
142+ as="main"
143+ css={{
144+ flexDirection: 'column',
145+ alignItems: 'center',
146+ padding: '0 1rem',
147+ }}>
148+ <Text
149+ size="headline"
150+ css={{ fontWeight: 600, paddingTop: '$8', paddingBottom: '$4' }}>
151+ Workshops
152+ </Text>
153+ <Text
154+ as="span"
155+ size="title-sm"
156+ css={{ color: '$slate12', paddingTop: '$1', textAlign: "center", width: "70%" }}>
157+ Explore the many workshops our Education Team has curated to become big brain.
158+ </Text>
159+ <WorkshopsContainerHomePage allWorkshopsOffering={workshopOfferingContent} />
160+ </Flex> */ }
161+
138162 < Text
139163 size = "headline"
140164 css = { { fontWeight : 600 , paddingTop : '$8' , paddingBottom : '$3' } } >
0 commit comments