-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpage.tsx
More file actions
39 lines (33 loc) · 1.27 KB
/
page.tsx
File metadata and controls
39 lines (33 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import type { Metadata } from 'next'
import {
DemoGradient,
DemoSolid,
gradientCodeBlock,
solidCodeBlock,
} from '@/components/demos/demo-background'
import { PageHeading } from '@/components/page-heading'
import { ExampleTabs } from '@/components/ui/example-tabs'
import { TypographyH3, TypographyP } from '@/components/ui/typography'
export const metadata: Metadata = {
title: 'Background Example',
description:
'Example showing how to customize QR code backgrounds in @lglab/react-qr-code using solid colors and gradients.',
}
export default function Page() {
return (
<>
<PageHeading heading='Background' />
<TypographyP>
The @lglab/react-qr-code library allows you to customize the background of your QR
codes to match your brand or design preferences. Below are different ways to set
backgrounds using solid colors, gradients, and transparency. For a transparent
background, don't pass any background prop.
</TypographyP>
<TypographyH3>Solid Color</TypographyH3>
<ExampleTabs codeBlock={solidCodeBlock} preview={<DemoSolid />} />
<hr className='border-0' />
<TypographyH3>Gradient</TypographyH3>
<ExampleTabs codeBlock={gradientCodeBlock} preview={<DemoGradient />} />
</>
)
}