diff --git a/src/components/courses/CoursesCarousel.js b/src/components/courses/CoursesCarousel.js index 761025b..e03d736 100644 --- a/src/components/courses/CoursesCarousel.js +++ b/src/components/courses/CoursesCarousel.js @@ -9,12 +9,12 @@ import { formatTimestampToHowLongAgo } from '@/utils/time'; const responsiveOptions = [ { - breakpoint: '1199px', + breakpoint: '3000px', numVisible: 3, numScroll: 1 }, { - breakpoint: '767px', + breakpoint: '1462px', numVisible: 2, numScroll: 1 }, @@ -25,6 +25,7 @@ const responsiveOptions = [ } ]; + export default function CoursesCarousel() { const courses = useSelector((state) => state.events.courses); const [processedCourses, setProcessedCourses] = useState([]); @@ -107,7 +108,7 @@ export default function CoursesCarousel() { return ( <> -

courses

+

courses

); diff --git a/src/components/navbar/Navbar.js b/src/components/navbar/Navbar.js index 7123a33..5b18cf7 100644 --- a/src/components/navbar/Navbar.js +++ b/src/components/navbar/Navbar.js @@ -92,7 +92,7 @@ const Navbar = () => { diff --git a/src/components/workshops/WorkshopsCarousel.js b/src/components/workshops/WorkshopsCarousel.js index ba323ef..f8465ba 100644 --- a/src/components/workshops/WorkshopsCarousel.js +++ b/src/components/workshops/WorkshopsCarousel.js @@ -9,12 +9,12 @@ import { formatTimestampToHowLongAgo } from '@/utils/time'; const responsiveOptions = [ { - breakpoint: '1199px', + breakpoint: '3000px', numVisible: 3, numScroll: 1 }, { - breakpoint: '767px', + breakpoint: '1462px', numVisible: 2, numScroll: 1 }, @@ -105,7 +105,7 @@ export default function WorkshopsCarousel() { return ( <> -

workshops

+

workshops

); diff --git a/src/pages/details/[slug].js b/src/pages/details/[slug].js index 9394777..0b4781c 100644 --- a/src/pages/details/[slug].js +++ b/src/pages/details/[slug].js @@ -8,6 +8,20 @@ import { Tag } from 'primereact/tag'; import Image from 'next/image'; import 'primeicons/primeicons.css'; +import ReactMarkdown from 'react-markdown'; +import rehypeRaw from 'rehype-raw'; + +const MarkdownContent = ({ content }) => { + console.log('content:', content); + return ( +
+ + {content} + +
+ ); +}; + export default function Details() { const [event, setEvent] = useState(null); const [processedEvent, setProcessedEvent] = useState({}); @@ -55,59 +69,68 @@ export default function Details() { }, [event]); return ( -
- router.push('/')} /> -
-
- - - - - -
-

{processedEvent?.title}

-

{processedEvent?.summary}

-
- resource thumbnail -

- Created by{' '} - - {author?.username} - -

+
+
+ router.push('/')} /> +
+
+
+ + + + + +
+

{processedEvent?.title}

+

{processedEvent?.summary}

+
+ resource thumbnail +

+ Created by{' '} + + {author?.username} + +

+
+
+
+ {processedEvent && ( +
+ resource thumbnail +
+ )} +
-
- {processedEvent && ( -
- resource thumbnail -
- )} +
+ { + processedEvent?.content && + }
); diff --git a/src/styles/globals.css b/src/styles/globals.css index 04b107f..457731f 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -10,9 +10,20 @@ } body { - font-family: 'Blinker', sans-serif; + @apply font-blinker; } +h1 { + @apply text-h1 font-blinker; +} + +h2 { + @apply text-h2 font-blinker; +} + +h3 { + @apply text-h3 font-blinker; +} .p-tabmenu .p-tabmenu-nav { background-color: transparent !important; diff --git a/tailwind.config.js b/tailwind.config.js index d4b3319..b65f723 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -18,6 +18,11 @@ module.exports = { fontFamily: { 'blinker': ['Blinker', 'sans-serif'], }, + fontSize: { + 'h1': ['2.25rem', { lineHeight: '2.5rem' }], + 'h2': ['1.5rem', { lineHeight: '2rem' }], + 'h3': ['1.25rem', { lineHeight: '1.75rem' }], + }, }, }, plugins: [],