|
1 | 1 | import { For, createSignal } from 'solid-js' |
| 2 | +import { |
| 3 | + MainPanel, |
| 4 | + Section, |
| 5 | + SectionDescription, |
| 6 | + SectionIcon, |
| 7 | + SectionTitle, |
| 8 | +} from '@tanstack/devtools-ui' |
2 | 9 | import { useStyles } from '../styles/use-styles' |
3 | 10 | import { useHeadChanges } from '../hooks/use-head-changes' |
4 | 11 |
|
@@ -174,32 +181,33 @@ export const SeoTab = () => { |
174 | 181 | }) |
175 | 182 |
|
176 | 183 | return ( |
177 | | - <div class={styles().seoTabContainer}> |
178 | | - <section class={styles().seoTabSection}> |
179 | | - <h3 class={styles().sectionTitle}> |
180 | | - <svg |
181 | | - class={styles().sectionIcon} |
182 | | - xmlns="http://www.w3.org/2000/svg" |
183 | | - width="24" |
184 | | - height="24" |
185 | | - viewBox="0 0 24 24" |
186 | | - fill="none" |
187 | | - stroke="currentColor" |
188 | | - stroke-width="2" |
189 | | - stroke-linecap="round" |
190 | | - stroke-linejoin="round" |
191 | | - > |
192 | | - <path d="m10 9-3 3 3 3" /> |
193 | | - <path d="m14 15 3-3-3-3" /> |
194 | | - <path d="M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719" /> |
195 | | - </svg> |
| 184 | + <MainPanel withPadding> |
| 185 | + <Section> |
| 186 | + <SectionTitle> |
| 187 | + <SectionIcon> |
| 188 | + <svg |
| 189 | + xmlns="http://www.w3.org/2000/svg" |
| 190 | + width="20" |
| 191 | + height="20" |
| 192 | + viewBox="0 0 24 24" |
| 193 | + fill="none" |
| 194 | + stroke="currentColor" |
| 195 | + stroke-width="2" |
| 196 | + stroke-linecap="round" |
| 197 | + stroke-linejoin="round" |
| 198 | + > |
| 199 | + <path d="m10 9-3 3 3 3" /> |
| 200 | + <path d="m14 15 3-3-3-3" /> |
| 201 | + <path d="M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719" /> |
| 202 | + </svg> |
| 203 | + </SectionIcon> |
196 | 204 | Social previews |
197 | | - </h3> |
198 | | - <p class={styles().sectionDescription}> |
| 205 | + </SectionTitle> |
| 206 | + <SectionDescription> |
199 | 207 | See how your current page will look when shared on popular social |
200 | 208 | networks. The tool checks for essential meta tags and highlights any |
201 | 209 | that are missing. |
202 | | - </p> |
| 210 | + </SectionDescription> |
203 | 211 | <div class={styles().seoPreviewSection}> |
204 | 212 | <For each={reports()}> |
205 | 213 | {(report, i) => { |
@@ -231,8 +239,7 @@ export const SeoTab = () => { |
231 | 239 | }} |
232 | 240 | </For> |
233 | 241 | </div> |
234 | | - </section> |
235 | | - {/* Future sections can be added here as <section class={styles().seoTabSection}>...</section> */} |
236 | | - </div> |
| 242 | + </Section> |
| 243 | + </MainPanel> |
237 | 244 | ) |
238 | 245 | } |
0 commit comments