Skip to content

Commit 29b4a0e

Browse files
committed
refactor: use next/image and add basic metadata
1 parent 7852488 commit 29b4a0e

File tree

2 files changed

+10
-19
lines changed

2 files changed

+10
-19
lines changed

apps/docs/app/(home)/page.tsx

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,15 @@
11
import { Card, Cards } from '@/components/card';
22
import { Heading } from '@/components/heading';
3+
import type { Metadata } from 'next';
4+
import Image from 'next/image';
35
import Link from 'next/link';
46

5-
// export default function HomePage() {
6-
// return (
7-
// <main className="flex flex-1 flex-col justify-center text-center">
8-
// <h1 className="mb-4 text-2xl font-bold">Hello World</h1>
9-
// <p className="text-fd-muted-foreground">
10-
// You can open{' '}
11-
// <Link
12-
// href="/docs"
13-
// className="text-fd-foreground font-semibold underline"
14-
// >
15-
// /docs
16-
// </Link>{' '}
17-
// and see the documentation.
18-
// </p>
19-
// </main>
20-
// );
21-
// }
7+
export const metadata: Metadata = {
8+
title: {
9+
template: '%s | CommandKit',
10+
default: 'CommandKit - A Discord.js handler',
11+
},
12+
};
2213

2314
const features = [
2415
{
@@ -52,7 +43,7 @@ export default function HomePage() {
5243
<>
5344
<section className="w-72 h-96 mx-auto text-center mt-20 mb-28 md:mb-16 flex items-center justify-center flex-col md:flex-row-reverse md:gap-2 md:text-left md:mt-12 md:w-[700px] lg:w-[850px]">
5445
{/* eslint-disable-next-line @next/next/no-img-element */}
55-
<img
46+
<Image
5647
src="/logo.png"
5748
alt="CommandKit Logo"
5849
className="md:w-[230px] lg:w-[280px] mb-10 md:mb-0"
@@ -96,7 +87,7 @@ export default function HomePage() {
9687
</div>
9788
</div>
9889
</section>
99-
<section className="max-w-[400px] md:max-w-none mx-auto md:w-[700px] lg:w-[850px] text-fd-foreground">
90+
<section className="max-w-[400px] md:max-w-none mx-auto md:w-[700px] lg:w-[850px] text-fd-foreground p-5 sm:p-0 mb-20">
10091
<Heading as="h1" className="text-lg font-semibold mb-2">
10192
Features
10293
</Heading>
File renamed without changes.

0 commit comments

Comments
 (0)