Skip to content

Commit

Permalink
feat: meta data and og image for my events and create event pages (#171)
Browse files Browse the repository at this point in the history
This PR will update the update meta data and image for my events and create event pages to support those pages which accessible and shareable to public
  • Loading branch information
faiq-naufal authored Mar 8, 2024
1 parent 8ccc79f commit bc3667a
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 8 deletions.
23 changes: 19 additions & 4 deletions app/(pages)/events/create/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,25 @@ import { EventType } from '@/_shared/types/event';
import { InternalApiFetcher } from '@/_shared/utils/fetcher';
import { whitelistFeature } from '@/_shared/utils/flag';

export const generateMetadata = (): Metadata => {
return {
title: `Let's Create Your Event — inLive Room`,
};
const title = `Let's Create Your Event — inLive Event`;
const description = `Enjoy features like analytics, hassle-free event registration, and automatic virtual room integration all conveniently accessible within a single application.`;
const ogImage = '/images/webinar/og-image-webinar.png';

export const metadata: Metadata = {
title: title,
openGraph: {
title: title,
description: description,
url: `/events/create`,
images: [ogImage],
type: 'website',
},
twitter: {
card: 'summary_large_image',
title: title,
description: description,
images: [ogImage],
},
};

export default async function Page() {
Expand Down
23 changes: 19 additions & 4 deletions app/(pages)/events/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,25 @@ import type { EventType } from '@/_shared/types/event';
import { InternalApiFetcher } from '@/_shared/utils/fetcher';
import { whitelistFeature } from '@/_shared/utils/flag';

export const generateMetadata = (): Metadata => {
return {
title: `My Events — inLive Room`,
};
const title = 'My Events — inLive Event';
const description = `Enjoy features like analytics, hassle-free event registration, and automatic virtual room integration all conveniently accessible within a single application.`;
const ogImage = '/images/webinar/og-image-webinar.png';

export const metadata: Metadata = {
title: title,
openGraph: {
title: title,
description: description,
url: `/events`,
images: [ogImage],
type: 'website',
},
twitter: {
card: 'summary_large_image',
title: title,
description: description,
images: [ogImage],
},
};

export default async function Page({
Expand Down
Binary file added public/images/webinar/og-image-webinar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit bc3667a

Please sign in to comment.