Skip to content

Commit 991101b

Browse files
committed
chore: improve metatadata
1 parent 113b95d commit 991101b

12 files changed

Lines changed: 95 additions & 3 deletions

File tree

apps/docs/src/app/data-modules-settings/page.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1+
import type { Metadata } from 'next'
2+
13
import type { Prop } from '@/types/props'
24

35
import { PageHeading } from '@/components/page-heading'
46
import { PropsTable } from '@/components/props-table'
57
import { Bold, TypographyP } from '@/components/ui/typography'
68

9+
export const metadata: Metadata = {
10+
title: 'DataModulesSettings',
11+
description:
12+
'Configuration options for DataModulesSettings in @lglab/react-qr-code, used to control QR code data module color, shape, and random sizing.',
13+
}
14+
715
const props: Prop[] = [
816
{
917
name: 'color',

apps/docs/src/app/examples/background/page.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import type { Metadata } from 'next'
2+
13
import {
24
DemoGradient,
35
DemoSolid,
@@ -8,6 +10,12 @@ import { PageHeading } from '@/components/page-heading'
810
import { ExampleTabs } from '@/components/ui/example-tabs'
911
import { TypographyH3, TypographyP } from '@/components/ui/typography'
1012

13+
export const metadata: Metadata = {
14+
title: 'Background Example',
15+
description:
16+
'Example showing how to customize QR code backgrounds in @lglab/react-qr-code using solid colors and gradients.',
17+
}
18+
1119
export default function Page() {
1220
return (
1321
<>

apps/docs/src/app/examples/data-modules/page.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1+
import type { Metadata } from 'next'
12
import Link from 'next/link'
23

34
import { Demo, codeBlock } from '@/components/demos/data-modules'
45
import { PageHeading } from '@/components/page-heading'
56
import { ExampleTabs } from '@/components/ui/example-tabs'
67
import { TypographyP } from '@/components/ui/typography'
78

9+
export const metadata: Metadata = {
10+
title: 'Data Modules Example',
11+
description:
12+
'Example demonstrating how to customize QR code data modules in @lglab/react-qr-code, including shape, color, and random sizing.',
13+
}
14+
815
export default function Page() {
916
return (
1017
<>
11-
<PageHeading heading='Data Modules' />
18+
<PageHeading heading='Data modules example' />
1219
<TypographyP>
1320
The data modules in a QR code are the small squares that encode the actual
1421
information. With @lglab/react-qr-code, you can customize their shape and color,

apps/docs/src/app/examples/download/page.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1+
import type { Metadata } from 'next'
2+
13
import { DemoDownload, codeBlock } from '@/components/demos/demo-download'
24
import { PageHeading } from '@/components/page-heading'
35
import { ExampleTabs } from '@/components/ui/example-tabs'
46
import { TypographyP } from '@/components/ui/typography'
57

8+
export const metadata: Metadata = {
9+
title: 'Download Example',
10+
description:
11+
'Example demonstrating how to use the download API in @lglab/react-qr-code to export QR codes as SVG, PNG, or JPEG files.',
12+
}
13+
614
export default function Page() {
715
return (
816
<>

apps/docs/src/app/examples/finder-patterns/page.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1+
import type { Metadata } from 'next'
12
import Link from 'next/link'
23

34
import { Demo, codeBlock } from '@/components/demos/finder-patterns'
45
import { PageHeading } from '@/components/page-heading'
56
import { ExampleTabs } from '@/components/ui/example-tabs'
67
import { TypographyP } from '@/components/ui/typography'
78

9+
export const metadata: Metadata = {
10+
title: 'Finder Patterns Example',
11+
description:
12+
'Example showing how to customize QR code finder patterns in @lglab/react-qr-code, including inner and outer styles.',
13+
}
14+
815
export default function Page() {
916
return (
1017
<>
11-
<PageHeading heading='Data Modules' />
18+
<PageHeading heading='Finder patterns example' />
1219
<TypographyP>
1320
The finder patterns are the three prominent squares located at the corners of a QR
1421
code, essential for orientation during scanning. With @lglab/react-qr-code, you

apps/docs/src/app/examples/image/page.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
1+
import type { Metadata } from 'next'
12
import Link from 'next/link'
23

34
import { Demo, codeBlock } from '@/components/demos/image'
45
import { PageHeading } from '@/components/page-heading'
56
import { ExampleTabs } from '@/components/ui/example-tabs'
67
import { TypographyP } from '@/components/ui/typography'
78

9+
export const metadata: Metadata = {
10+
title: 'Image Example',
11+
description:
12+
'Example showing how to embed images or logos inside QR codes using the ImageSettings options in @lglab/react-qr-code.',
13+
}
14+
815
export default function Page() {
916
return (
1017
<>
11-
<PageHeading heading='Data Modules' />
18+
<PageHeading heading='Image example' />
1219
<TypographyP>
1320
The @lglab/react-qr-code library allows you to embed images or logos within your
1421
QR codes, enhancing branding and visual appeal. This guide details the

apps/docs/src/app/finder-pattern-inner-settings/page.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1+
import type { Metadata } from 'next'
2+
13
import type { Prop } from '@/types/props'
24

35
import { PageHeading } from '@/components/page-heading'
46
import { PropsTable } from '@/components/props-table'
57
import { TypographyP } from '@/components/ui/typography'
68

9+
export const metadata: Metadata = {
10+
title: 'FinderPatternInnerSettings',
11+
description:
12+
'Configuration options for FinderPatternInnerSettings in @lglab/react-qr-code, used to style the inner part of QR code finder patterns.',
13+
}
14+
715
const props: Prop[] = [
816
{
917
name: 'color',

apps/docs/src/app/finder-pattern-outer-settings/page.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1+
import type { Metadata } from 'next'
2+
13
import type { Prop } from '@/types/props'
24

35
import { PageHeading } from '@/components/page-heading'
46
import { PropsTable } from '@/components/props-table'
57
import { TypographyP } from '@/components/ui/typography'
68

9+
export const metadata: Metadata = {
10+
title: 'FinderPatternOuterSettings',
11+
description:
12+
'Configuration options for FinderPatternOuterSettings in @lglab/react-qr-code, used to style the outer part of QR code finder patterns.',
13+
}
14+
715
const props: Prop[] = [
816
{
917
name: 'color',

apps/docs/src/app/gradient-settings/page.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1+
import type { Metadata } from 'next'
2+
13
import type { Prop } from '@/types/props'
24

35
import { PageHeading } from '@/components/page-heading'
46
import { PropsTable } from '@/components/props-table'
57
import { TypographyH2, TypographyP } from '@/components/ui/typography'
68

9+
export const metadata: Metadata = {
10+
title: 'GradientSettings',
11+
description:
12+
'Configuration options for GradientSettings in @lglab/react-qr-code, including gradient type, stops, and rotation for QR code data or backgrounds.',
13+
}
14+
715
const props: Prop[] = [
816
{
917
name: 'type',

apps/docs/src/app/image-settings/page.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1+
import type { Metadata } from 'next'
2+
13
import type { Prop } from '@/types/props'
24

35
import { PageHeading } from '@/components/page-heading'
46
import { PropsTable } from '@/components/props-table'
57
import { TypographyP } from '@/components/ui/typography'
68

9+
export const metadata: Metadata = {
10+
title: 'ImageSettings',
11+
description:
12+
'Configuration options for ImageSettings in @lglab/react-qr-code, allowing you to embed and position images or logos inside QR codes.',
13+
}
14+
715
const props: Prop[] = [
816
{
917
name: 'src',

0 commit comments

Comments
 (0)