|
1 | | -import Image, { type ImageProps } from "next/image"; |
2 | | -import { Button } from "@heiglabs/design-system/button"; |
3 | | -import styles from "./page.module.css"; |
4 | | - |
5 | | -type Props = Omit<ImageProps, "src"> & { |
6 | | - srcLight: string; |
7 | | - srcDark: string; |
8 | | -}; |
9 | | - |
10 | | -const ThemeImage = (props: Props) => { |
11 | | - const { srcLight, srcDark, ...rest } = props; |
12 | | - |
13 | | - return ( |
14 | | - <> |
15 | | - <Image {...rest} src={srcLight} className="imgLight" /> |
16 | | - <Image {...rest} src={srcDark} className="imgDark" /> |
17 | | - </> |
18 | | - ); |
19 | | -}; |
| 1 | +import { Button } from '@heiglabs/design-system/button'; |
20 | 2 |
|
21 | 3 | export default function Home() { |
22 | | - return ( |
23 | | - <div className={styles.page}> |
24 | | - <main className={styles.main}> |
25 | | - <ThemeImage |
26 | | - className={styles.logo} |
27 | | - srcLight="turborepo-dark.svg" |
28 | | - srcDark="turborepo-light.svg" |
29 | | - alt="Turborepo logo" |
30 | | - width={180} |
31 | | - height={38} |
32 | | - priority |
33 | | - /> |
34 | | - <ol> |
35 | | - <li> |
36 | | - Get started by editing <code>apps/web/app/page.tsx</code> |
37 | | - </li> |
38 | | - <li>Save and see your changes instantly.</li> |
39 | | - </ol> |
40 | | - |
41 | | - <div className={styles.ctas}> |
42 | | - <a |
43 | | - className={styles.primary} |
44 | | - href="https://vercel.com/new/clone?demo-description=Learn+to+implement+a+monorepo+with+a+two+Next.js+sites+that+has+installed+three+local+packages.&demo-image=%2F%2Fimages.ctfassets.net%2Fe5382hct74si%2F4K8ZISWAzJ8X1504ca0zmC%2F0b21a1c6246add355e55816278ef54bc%2FBasic.png&demo-title=Monorepo+with+Turborepo&demo-url=https%3A%2F%2Fexamples-basic-web.vercel.sh%2F&from=templates&project-name=Monorepo+with+Turborepo&repository-name=monorepo-turborepo&repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fturborepo%2Ftree%2Fmain%2Fexamples%2Fbasic&root-directory=apps%2Fdocs&skippable-integrations=1&teamSlug=vercel&utm_source=create-turbo" |
45 | | - target="_blank" |
46 | | - rel="noopener noreferrer" |
47 | | - > |
48 | | - <Image |
49 | | - className={styles.logo} |
50 | | - src="/vercel.svg" |
51 | | - alt="Vercel logomark" |
52 | | - width={20} |
53 | | - height={20} |
54 | | - /> |
55 | | - Deploy now |
56 | | - </a> |
57 | | - <a |
58 | | - href="https://turborepo.com/docs?utm_source" |
59 | | - target="_blank" |
60 | | - rel="noopener noreferrer" |
61 | | - className={styles.secondary} |
62 | | - > |
63 | | - Read our docs |
64 | | - </a> |
65 | | - </div> |
66 | | - <Button className={styles.secondary}> |
67 | | - Open alert |
68 | | - </Button> |
69 | | - </main> |
70 | | - <footer className={styles.footer}> |
71 | | - <a |
72 | | - href="https://vercel.com/templates?search=turborepo&utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app" |
73 | | - target="_blank" |
74 | | - rel="noopener noreferrer" |
75 | | - > |
76 | | - <Image |
77 | | - aria-hidden |
78 | | - src="/window.svg" |
79 | | - alt="Window icon" |
80 | | - width={16} |
81 | | - height={16} |
82 | | - /> |
83 | | - Examples |
84 | | - </a> |
85 | | - <a |
86 | | - href="https://turborepo.com?utm_source=create-turbo" |
87 | | - target="_blank" |
88 | | - rel="noopener noreferrer" |
89 | | - > |
90 | | - <Image |
91 | | - aria-hidden |
92 | | - src="/globe.svg" |
93 | | - alt="Globe icon" |
94 | | - width={16} |
95 | | - height={16} |
96 | | - /> |
97 | | - Go to turborepo.com → |
98 | | - </a> |
99 | | - </footer> |
100 | | - </div> |
101 | | - ); |
| 4 | + return <Button>Click me</Button>; |
102 | 5 | } |
0 commit comments