Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nxtcoder19 committed Sep 19, 2024
1 parent b2ba71a commit 302abfe
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions src/apps/devdoc/pages/events/[event].tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
import { CalendarBlank, Clock, Globe } from '@jengaicons/react';
import fs from 'fs';
import path from 'path';
import graymatter from 'gray-matter';
import { CalendarBlank, Clock, Globe } from '@jengaicons/react';
import { Avatar } from 'kl-design-system/atoms/avatar';
import { Button } from 'kl-design-system/atoms/button';
import { Metadata } from 'next';
import { MDXRemote } from 'next-mdx-remote';
import { serialize } from 'next-mdx-remote/serialize';
import Link from 'next/link';
import path from 'path';
import { Block } from '~/app/components/commons';
import Container from '~/app/components/container';
import { GraphItem } from '~/app/components/graph';
import ResponsiveContainer from '~/app/components/responsive-container';
import { cn } from '~/app/utils/commons';
import { MDXRemote } from 'next-mdx-remote';
import { serialize } from 'next-mdx-remote/serialize';
import { createComponents } from '~/app/layout/mdx-components';
import ResponsiveImage from '~/app/components/website/responsive-image';
import { Button } from 'kl-design-system/atoms/button';
import useCountdown from '~/app/utils/use-countdown';
import { Metadata } from 'next';
import ExternalLayout from '~/app/layout/alternate-layout';
import { createComponents } from '~/app/layout/mdx-components';
import { cn } from '~/app/utils/commons';
import useCountdown from '~/app/utils/use-countdown';

type IEvent = {
event: string;
Expand Down Expand Up @@ -83,7 +84,7 @@ export default function Event({ event }: { event: IEvent }) {
<Container
className={cn(
'wb-min-h-[calc(100vh-76px)] wb-flex-row',
'lg:wb-m-auto lg:!wb-max-w-[896px] wb-w-full wb-px-3xl md:!wb-px-5xl lg:!wb-px-8xl xl:!wb-px-11xl 2xl:!wb-px-12xl xl:!wb-max-w-[1024px] 2xl:!wb-max-w-[1120px] 3xl:!wb-min-w-[1408px] lg:!wb-box-content',
'lg:wb-m-auto lg:!wb-max-w-[896px] wb-w-full wb-px-3xl md:!wb-px-5xl lg:!wb-px-8xl xl:!wb-px-11xl 2xl:!wb-px-12xl xl:!wb-max-w-[1024px] 2xl:!wb-max-w-[1120px] 3xl:!wb-min-w-[1408px] lg:!wb-box-content'
)}
>
<Block title={title}>
Expand Down Expand Up @@ -116,7 +117,11 @@ export default function Event({ event }: { event: IEvent }) {
<TimeSeparator />
<TimeItem value={`${countdown.seconds}`} unit="sec" />
</div>
<Button block content="Register now" variant="primary" />
<Link
href={`https://webinar.kloudlite.io/${event.hash}/join`}
>
<Button block content="Register now" variant="primary" />
</Link>
</div>
</GraphItem>
<GraphItem
Expand Down Expand Up @@ -200,7 +205,7 @@ export async function getStaticProps({ params }: any) {
'pages',
'events',
'_md',
`${params.event}.md`,
`${params.event}.md`
);

const fileContents = fs.readFileSync(filePath, 'utf8');
Expand Down

0 comments on commit 302abfe

Please sign in to comment.