diff --git a/src/components/headlines-display.tsx b/src/components/headlines-display.tsx index 970bff8..8dff9a7 100644 --- a/src/components/headlines-display.tsx +++ b/src/components/headlines-display.tsx @@ -20,32 +20,29 @@ interface HeadlinesDisplayProps { export function HeadlinesDisplay({ headlines }: HeadlinesDisplayProps) { return ( -
-

Headlines

-
- - - - Tag - Text - Length +
+
+ + + Tag + Text + Length + + + + {headlines.map((headline, index) => ( + + + + {headline.tag} + + + {headline.text} + {headline.length} - - - {headlines.map((headline, index) => ( - - - - {headline.tag} - - - {headline.text} - {headline.length} - - ))} - -
-
+ ))} + +
); } \ No newline at end of file diff --git a/src/components/meta-form.tsx b/src/components/meta-form.tsx index da895bd..836ccac 100644 --- a/src/components/meta-form.tsx +++ b/src/components/meta-form.tsx @@ -121,165 +121,177 @@ export function MetaForm() { )} {!loading && metaData && ( - - - - Extraction Results - - - -
-
-
-

- SERP Preview -

- -
- - {metaData.image && ( +
+ + + + Meta Analysis + + + +
+

- Preview Image + SERP Preview

-
- {!imageError ? ( - Meta preview image setImageError(true)} - /> - ) : ( -
- - Image not available -
- )} -
+
- )} - {metaData.faq && metaData.faq.length > 0 && ( - - )} -
-
-
-
-
-

- Meta Title + {metaData.image && ( +
+

+ Preview Image

- - - {editableTitle.length} Characters - -
-
- - +

-
-

- The title of the page, ideally between 30 and 60 - characters. -

- {isEditingTitle ? ( - setEditableTitle(e.target.value)} - className="w-full" - placeholder="Meta Title" - /> - ) : ( -

- {editableTitle || "Not found"} -

+ )} + + {metaData.faq && metaData.faq.length > 0 && ( + )}
-
-
-
-

- Meta Description -

- - - {editableDescription.length} Characters - +
+
+
+
+

+ Meta Title +

+ + + {editableTitle.length} Characters + +
+
+ + +
-
- -
+
+
+
+

+ Meta Description +

+ + + {editableDescription.length} Characters + +
+
+ + +
+
+

+ A brief summary of the page's content, ideally between 120 + and 158 characters. +

+ {isEditingDescription ? ( +