|
1 |
| -import { viga, inter } from '@/ui/fonts'; |
| 1 | +import { viga } from '@/ui/fonts'; |
| 2 | +import { NavigableTabs } from '@/components/index'; |
2 | 3 |
|
3 | 4 | export default function DevBlueprints() {
|
4 | 5 | const templates = {
|
@@ -60,6 +61,7 @@ export default function DevBlueprints() {
|
60 | 61 | practical insights for developers.
|
61 | 62 | </p>
|
62 | 63 | <div className="custom-scrollbar my-6 flex flex-row gap-4 overflow-x-auto py-4">
|
| 64 | + {/* TODO: put this on a separate page */} |
63 | 65 | {Object.keys(templates).map((template, index) => (
|
64 | 66 | <div
|
65 | 67 | key={index}
|
@@ -97,111 +99,7 @@ export default function DevBlueprints() {
|
97 | 99 | ))}
|
98 | 100 | </div>
|
99 | 101 | <hr className="my-14 border border-blck/10" />
|
100 |
| - <div> |
101 |
| - <h2 className={`${viga.className} text-xl`}>Gatsby Quick-Start</h2> |
102 |
| - <p className="font-bold text-blck/60"> |
103 |
| - Personally, creating a Gatsby app using the cli is the ideal way of |
104 |
| - starting. There are other methods in the internet if you're |
105 |
| - curious. |
106 |
| - </p> |
107 |
| - <div className="my-2 space-y-1 px-4 text-sm"> |
108 |
| - <p> |
109 |
| - Install{' '} |
110 |
| - <span className={`${inter.className} font-bold`}>gatsby-cli</span>: |
111 |
| - </p> |
112 |
| - <pre className="w-1/2 rounded bg-blck/80 px-3 py-2"> |
113 |
| - <code className="font-bold text-yllw">$ npm i -g gatsby-cli</code> |
114 |
| - </pre> |
115 |
| - <p>Check version to see if it's installed:</p> |
116 |
| - <pre className="w-1/2 rounded bg-blck/80 px-3 py-2"> |
117 |
| - <code className="font-bold text-yllw">$ gatsby -v</code> |
118 |
| - </pre> |
119 |
| - <p> |
120 |
| - Install the starter site (follow instructions from{' '} |
121 |
| - <a |
122 |
| - href="https://www.gatsbyjs.com/docs/starters/" |
123 |
| - target="_blank" |
124 |
| - rel="noopener noreferrer" |
125 |
| - className="font-bold text-rd hover:text-rd/70" |
126 |
| - > |
127 |
| - official docs ↗ |
128 |
| - </a> |
129 |
| - ): |
130 |
| - </p> |
131 |
| - <pre className="w-1/2 whitespace-pre-wrap rounded bg-blck/80 px-3 py-2"> |
132 |
| - <code className="font-bold text-gry"> |
133 |
| - # gatsby new dir-name (starter site url) |
134 |
| - </code> |
135 |
| - <br /> |
136 |
| - <code className="font-bold text-yllw"> |
137 |
| - $ gatsby new my-project |
138 |
| - https://github.com/gatsbyjs/gatsby-starter-default |
139 |
| - </code> |
140 |
| - </pre> |
141 |
| - <p>Run the final command:</p> |
142 |
| - <pre className="w-1/2 whitespace-pre-wrap rounded bg-blck/80 px-3 py-2"> |
143 |
| - <code className="font-bold text-yllw">$ gatsby develop</code> |
144 |
| - </pre> |
145 |
| - </div> |
146 |
| - </div> |
147 |
| - <hr className="my-10 border border-blck/10" /> |
148 |
| - <div> |
149 |
| - <h2 className={`${viga.className} text-xl`}>Creating a NextJS App:</h2> |
150 |
| - <div className="my-2 space-y-1 px-4 text-sm"> |
151 |
| - <p className="mb-2">Start a Next app:</p> |
152 |
| - <pre className="w-1/2 whitespace-pre-wrap rounded bg-blck/80 px-3 py-2"> |
153 |
| - <code className="font-bold text-yllw"> |
154 |
| - $ npx create-next-app@latest |
155 |
| - </code> |
156 |
| - </pre> |
157 |
| - </div> |
158 |
| - <p className="font-bold text-blck/60"> |
159 |
| - And then follow the prompts! Make sure to use the{' '} |
160 |
| - <a |
161 |
| - href="https://nextjs.org/docs/app" |
162 |
| - target="_blank" |
163 |
| - rel="noopener noreferrer" |
164 |
| - className="font-bold text-rd hover:text-rd/70" |
165 |
| - > |
166 |
| - App Router ↗ |
167 |
| - </a>{' '} |
168 |
| - and it is up to you for the other technologies. |
169 |
| - </p> |
170 |
| - </div> |
171 |
| - <hr className="my-10 border border-blck/10" /> |
172 |
| - <div> |
173 |
| - <h2 className={`${viga.className} text-xl`}>Vite Frontend Tooling:</h2> |
174 |
| - <div className="my-2 space-y-1 px-4 text-sm"> |
175 |
| - <p className="mb-2">Starting your first Vite project:</p> |
176 |
| - <pre className="w-1/2 whitespace-pre-wrap rounded bg-blck/80 px-3 py-2"> |
177 |
| - <code className="font-bold text-yllw"> |
178 |
| - $ npm create vite@latest |
179 |
| - </code> |
180 |
| - </pre> |
181 |
| - <p className="mb-2">Or directly specify the configurations:</p> |
182 |
| - <pre className="w-1/2 whitespace-pre-wrap rounded bg-blck/80 px-3 py-2"> |
183 |
| - <code className="font-bold text-yllw"> |
184 |
| - $ npm create vite@latest dir_name -- --template vue |
185 |
| - </code> |
186 |
| - </pre> |
187 |
| - <p> |
188 |
| - Check the{' '} |
189 |
| - <a |
190 |
| - href="https://github.com/vitejs/vite/tree/main/packages/create-vite" |
191 |
| - target="_blank" |
192 |
| - rel="noopener noreferrer" |
193 |
| - className="font-bold text-rd hover:text-rd/70" |
194 |
| - > |
195 |
| - github docs ↗ |
196 |
| - </a>{' '} |
197 |
| - for more template information. |
198 |
| - </p> |
199 |
| - </div> |
200 |
| - <p className="font-bold text-blck/60"> |
201 |
| - You can also use the "." for the directory name to scaffold |
202 |
| - in the current directory. |
203 |
| - </p> |
204 |
| - </div> |
| 102 | + <NavigableTabs /> |
205 | 103 | </main>
|
206 | 104 | );
|
207 | 105 | }
|
0 commit comments