|
1 |
| -import Head from 'next/head'; |
2 |
| -import styles from '../styles/Home.module.css'; |
| 1 | +import dynamic from 'next/dynamic'; |
| 2 | +import "lowcoder-sdk/dist/style.css"; |
3 | 3 |
|
4 |
| -export default function Home() { |
5 |
| - return ( |
6 |
| - <div className={styles.container}> |
7 |
| - <Head> |
8 |
| - <title>Create Next App</title> |
9 |
| - <link rel="icon" href="/favicon.ico" /> |
10 |
| - </Head> |
11 |
| - |
12 |
| - <main> |
13 |
| - <h1 className={styles.title}> |
14 |
| - Welcome to <a href="https://nextjs.org">Next.js!</a> |
15 |
| - </h1> |
16 |
| - |
17 |
| - <p className={styles.description}> |
18 |
| - Get started by editing <code>pages/index.js</code> |
19 |
| - </p> |
20 |
| - |
21 |
| - <div className={styles.grid}> |
22 |
| - <a href="https://nextjs.org/docs" className={styles.card}> |
23 |
| - <h3>Documentation →</h3> |
24 |
| - <p>Find in-depth information about Next.js features and API.</p> |
25 |
| - </a> |
| 4 | +const LowcoderAppWrapper = dynamic( |
| 5 | + () => import('../components/LowcoderAppWrapper'), {ssr: false} |
| 6 | +); |
26 | 7 |
|
27 |
| - <a href="https://nextjs.org/learn" className={styles.card}> |
28 |
| - <h3>Learn →</h3> |
29 |
| - <p>Learn about Next.js in an interactive course with quizzes!</p> |
30 |
| - </a> |
| 8 | +const LowcoderModuleWrapper = dynamic( |
| 9 | + () => import('../components/LowcoderModuleWrapper'), {ssr: false} |
| 10 | +); |
31 | 11 |
|
32 |
| - <a |
33 |
| - href="https://github.com/vercel/next.js/tree/canary/examples" |
34 |
| - className={styles.card} |
35 |
| - > |
36 |
| - <h3>Examples →</h3> |
37 |
| - <p>Discover and deploy boilerplate example Next.js projects.</p> |
38 |
| - </a> |
39 |
| - |
40 |
| - <a |
41 |
| - href="https://vercel.com/import?filter=next.js&utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" |
42 |
| - className={styles.card} |
43 |
| - > |
44 |
| - <h3>Deploy →</h3> |
45 |
| - <p> |
46 |
| - Instantly deploy your Next.js site to a public URL with Vercel. |
47 |
| - </p> |
48 |
| - </a> |
49 |
| - </div> |
50 |
| - </main> |
51 |
| - |
52 |
| - <footer> |
53 |
| - <a |
54 |
| - href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" |
55 |
| - target="_blank" |
56 |
| - rel="noopener noreferrer" |
57 |
| - > |
58 |
| - Powered by{' '} |
59 |
| - <img src="/vercel.svg" alt="Vercel" className={styles.logo} /> |
60 |
| - </a> |
61 |
| - </footer> |
62 |
| - |
63 |
| - <style jsx>{` |
64 |
| - main { |
65 |
| - padding: 5rem 0; |
66 |
| - flex: 1; |
67 |
| - display: flex; |
68 |
| - flex-direction: column; |
69 |
| - justify-content: center; |
70 |
| - align-items: center; |
71 |
| - } |
72 |
| - footer { |
73 |
| - width: 100%; |
74 |
| - height: 100px; |
75 |
| - border-top: 1px solid #eaeaea; |
76 |
| - display: flex; |
77 |
| - justify-content: center; |
78 |
| - align-items: center; |
79 |
| - } |
80 |
| - footer img { |
81 |
| - margin-left: 0.5rem; |
82 |
| - } |
83 |
| - footer a { |
84 |
| - display: flex; |
85 |
| - justify-content: center; |
86 |
| - align-items: center; |
87 |
| - text-decoration: none; |
88 |
| - color: inherit; |
89 |
| - } |
90 |
| - code { |
91 |
| - background: #fafafa; |
92 |
| - border-radius: 5px; |
93 |
| - padding: 0.75rem; |
94 |
| - font-size: 1.1rem; |
95 |
| - font-family: |
96 |
| - Menlo, |
97 |
| - Monaco, |
98 |
| - Lucida Console, |
99 |
| - Liberation Mono, |
100 |
| - DejaVu Sans Mono, |
101 |
| - Bitstream Vera Sans Mono, |
102 |
| - Courier New, |
103 |
| - monospace; |
104 |
| - } |
105 |
| - `}</style> |
| 12 | +export default function Home() { |
| 13 | + return ( |
| 14 | + <div style={{ |
| 15 | + padding: '1rem', |
| 16 | + }}> |
| 17 | + |
| 18 | + <LowcoderAppWrapper |
| 19 | + appId='6555df30b100825d173060ef' |
| 20 | + /> |
| 21 | + |
| 22 | + <LowcoderModuleWrapper |
| 23 | + appId="660f13367c18a91b174fe96d" |
| 24 | + /> |
106 | 25 |
|
107 |
| - <style jsx global>{` |
108 |
| - html, |
109 |
| - body { |
110 |
| - padding: 0; |
111 |
| - margin: 0; |
112 |
| - font-family: |
113 |
| - -apple-system, |
114 |
| - BlinkMacSystemFont, |
115 |
| - Segoe UI, |
116 |
| - Roboto, |
117 |
| - Oxygen, |
118 |
| - Ubuntu, |
119 |
| - Cantarell, |
120 |
| - Fira Sans, |
121 |
| - Droid Sans, |
122 |
| - Helvetica Neue, |
123 |
| - sans-serif; |
124 |
| - } |
125 |
| - * { |
126 |
| - box-sizing: border-box; |
127 |
| - } |
128 |
| - `}</style> |
129 | 26 | </div>
|
130 | 27 | );
|
131 | 28 | }
|
0 commit comments