${t.eyebrow}
+${t.h1}
+${t.lead}
+ +- ${t.facts.map((f) => `
- ${ICONS.ok}${f} `).join('')}
diff --git a/web/README.md b/web/README.md index 6395b2c..7ad1548 100644 --- a/web/README.md +++ b/web/README.md @@ -5,7 +5,8 @@ A [Cloudflare Worker](https://developers.cloudflare.com/workers/) that puts a sitemaps.org-compliant `sitemap.xml` to copy or download. - `GET /` — the page (`page.js`), bilingual **en/it** (auto-detected from `Accept-Language`; `/en` · `/it` force a locale) -- `GET /og.png` · `GET /favicon.svg` — Open Graph share image (1200×630) + favicon +- `GET /og.png` · `GET /favicon.png` (also `/favicon.ico`, `/favicon.svg`, `/apple-touch-icon.png`) — Open Graph share image (1200×630) + GeoSuite's favicon +- `GET /logos/{chatgpt,gemini,perplexity}.svg` — engine logos for the call to action - `GET /api/crawl?url=https://example.com` — `{ site, count, capped, xml }` > ⚠️ **Capped edge version.** The crawl is a small BFS (≤40 pages, depth ≤2) diff --git a/web/apple-touch-icon.png b/web/apple-touch-icon.png new file mode 100644 index 0000000..530c184 Binary files /dev/null and b/web/apple-touch-icon.png differ diff --git a/web/favicon.png b/web/favicon.png new file mode 100644 index 0000000..9a612c7 Binary files /dev/null and b/web/favicon.png differ diff --git a/web/logos/chatgpt.svg b/web/logos/chatgpt.svg new file mode 100644 index 0000000..2312a77 --- /dev/null +++ b/web/logos/chatgpt.svg @@ -0,0 +1,10 @@ + \ No newline at end of file diff --git a/web/logos/gemini.svg b/web/logos/gemini.svg new file mode 100644 index 0000000..ecc24b6 --- /dev/null +++ b/web/logos/gemini.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/web/logos/perplexity.svg b/web/logos/perplexity.svg new file mode 100644 index 0000000..5f5a5ab --- /dev/null +++ b/web/logos/perplexity.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/web/page.js b/web/page.js index f8269ee..fd6ecad 100644 --- a/web/page.js +++ b/web/page.js @@ -3,62 +3,115 @@ // dictionary below. The interactive crawl form talks to /api/crawl and renders the // result; its visitor-visible strings are injected as I18N and read at runtime. // +// It wears GeoSuite's design (theme.js, shared with the hub at tools.trygeosuite.it): +// same bar, hero, panels and closing call to action, so the free tools read as +// one site. Icons are inline line SVGs, never emoji, and a state is always +// spelled out in text next to its color. +// // Product names and "sitemap.xml" stay as-is; only prose/labels/buttons translate. +import { FONTS, BASE_CSS, ENGINES } from './theme.js'; + const BASE = 'https://sitemap-builder.geosuite.workers.dev'; +const HUB = 'https://tools.trygeosuite.it'; +const REPO = 'https://github.com/TryGeoSuite/sitemap-builder'; +const NPM = 'https://www.npmjs.com/package/@geosuite/sitemap-builder'; +const ANALYSIS = 'https://trygeosuite.it/analisi-gratuita?utm_source=geosuite-open&utm_medium=tool&utm_campaign=sitemap-builder'; +const CMD = 'npx @geosuite/sitemap-builder <url>'; + +// Filled circle + white mark, colored by the surrounding state class. Always +// next to a text label, never the only signal. +const ICONS = { + ok: '', + warn: '', + crit: '', +}; +const STAR = ''; const S = { en: { - title: 'Sitemap Builder — generate a sitemap.xml by crawling your site', + title: 'Sitemap Builder: generate a sitemap.xml by crawling your site', desc: 'Paste a URL and get a sitemaps.org-compliant sitemap.xml by crawling your site. Free, capped quick version; use the CLI for a full crawl.', - h1: 'Sitemap Builder', - lead: `Paste a URL — we crawl your site and build a sitemap.xml you can copy or download.`, - promo: `Built by GeoSuite — the AI-visibility platform that measures & improves how ChatGPT, Gemini, Claude & Perplexity describe your brand.`, - promoCta: 'Explore GeoSuite →', - star: '★ Star on GitHub', - placeholder: 'https://example.com', - build: 'Build', + nav: 'Site', + tools: 'Free tools', + eyebrow: 'Sitemap Builder, a free GeoSuite tool', + h1: 'Turn your site into a sitemap.xml', + lead: `Paste a URL: we crawl your site and build a sitemap.xml you can copy or download.`, + label: 'Your website', + placeholder: 'yoursite.com', + build: 'Build the sitemap', + facts: ['Free', 'No sign-up', 'Open source (MIT)', 'sitemaps.org compliant'], + howLabel: 'How it works', + how: [ + 'We start from the page you paste and follow the links that stay on your site.', + 'Up to ~40 pages, two clicks deep, so the answer comes back in seconds.', + 'You get a valid sitemap.xml to copy or download, ready for your site root.', + ], + cliLabel: 'From the terminal', hintPre: 'Quick crawl, capped at ~40 pages (depth 2) to stay fast. For a full crawl of a large site, use the CLI:', - footerOss: 'Open source (MIT):', - footerBuilt: `Built by Matteo Perino · a GeoSuite open-source tool.`, + copyCmd: 'Copy', + copiedCmd: 'Copied', + copyLabel: 'Copy the command', + star: 'Star on GitHub', + ctaTitle: 'Being found is step one. Being recommended is the goal.', + ctaText: 'A sitemap.xml helps crawlers, AI ones included, find every page you want read. GeoSuite checks what happens next: it asks ChatGPT, Gemini and Perplexity the questions your customers really ask, and tells you where you appear, who wins instead and what to fix first. The report arrives by email.', + ctaButton: 'Get the free analysis', + footer: `Open source (MIT) by Matteo Perino, maintained under GeoSuite, the Italian platform for AI visibility. Code on GitHub, package on npm.`, // Strings read at runtime by the interactive crawl script. js: { crawling: 'Crawling', crawlingTail: '… (up to ~40 pages)', - networkError: 'Network error — try again.', - cappedPre: '⚠️ Capped at', + networkError: 'Network error, try again.', + cappedPre: 'Capped at', cappedPost: 'pages (the edge version stays fast). Run the CLI for a full crawl.', sitemapFor: 'sitemap.xml for', + page: 'page', pages: 'pages', copy: 'Copy', - copied: 'Copied ✓', + copied: 'Copied', download: 'Download', }, }, it: { - title: 'Sitemap Builder — genera un sitemap.xml esplorando il tuo sito', + title: 'Sitemap Builder: genera un sitemap.xml esplorando il tuo sito', desc: 'Incolla un URL e ottieni un sitemap.xml conforme a sitemaps.org esplorando il tuo sito. Versione rapida e limitata gratuita; usa la CLI per un crawl completo.', - h1: 'Sitemap Builder', - lead: `Incolla un URL — esploriamo il tuo sito e costruiamo un sitemap.xml che puoi copiare o scaricare.`, - promo: `Creato da GeoSuite — la piattaforma di visibilità AI che misura e migliora come ChatGPT, Gemini, Claude e Perplexity descrivono il tuo brand.`, - promoCta: 'Scopri GeoSuite →', - star: '★ Stella su GitHub', - placeholder: 'https://esempio.com', - build: 'Costruisci', + nav: 'Sito', + tools: 'Strumenti gratuiti', + eyebrow: 'Sitemap Builder, uno strumento gratuito di GeoSuite', + h1: 'Trasforma il tuo sito in un sitemap.xml', + lead: `Incolla un URL: esploriamo il tuo sito e costruiamo un sitemap.xml che puoi copiare o scaricare.`, + label: 'Il tuo sito', + placeholder: 'tuosito.it', + build: 'Costruisci la sitemap', + facts: ['Gratis', 'Senza registrazione', 'Open source (MIT)', 'Conforme a sitemaps.org'], + howLabel: 'Come funziona', + how: [ + 'Partiamo dalla pagina che incolli e seguiamo i link che restano sul tuo sito.', + 'Fino a ~40 pagine, a due clic di profondità, così la risposta arriva in pochi secondi.', + 'Ottieni un sitemap.xml valido da copiare o scaricare, pronto per la radice del sito.', + ], + cliLabel: 'Dal terminale', hintPre: 'Crawl rapido, limitato a ~40 pagine (profondità 2) per restare veloce. Per un crawl completo di un sito grande, usa la CLI:', - footerOss: 'Open source (MIT):', - footerBuilt: `Creato da Matteo Perino · uno strumento open-source di GeoSuite.`, + copyCmd: 'Copia', + copiedCmd: 'Copiato', + copyLabel: 'Copia il comando', + star: 'Stella su GitHub', + ctaTitle: 'Farsi trovare è il primo passo. Farsi consigliare è l’obiettivo.', + ctaText: 'Un sitemap.xml aiuta i crawler, anche quelli delle AI, a trovare tutte le pagine che vuoi far leggere. GeoSuite controlla cosa succede dopo: fa a ChatGPT, Gemini e Perplexity le domande che i tuoi clienti fanno davvero, e ti dice dove compari, chi vince al posto tuo e cosa correggere per primo. Il report arriva via mail.', + ctaButton: 'Richiedi l’analisi gratuita', + footer: `Open source (MIT) di Matteo Perino, mantenuto da GeoSuite, la piattaforma italiana per la visibilità sulle AI. Codice su GitHub, pacchetto su npm.`, // Stringhe lette a runtime dallo script interattivo del crawl. js: { crawling: 'Esplorazione di', crawlingTail: '… (fino a ~40 pagine)', - networkError: 'Errore di rete — riprova.', - cappedPre: '⚠️ Limitato a', + networkError: 'Errore di rete, riprova.', + cappedPre: 'Limitato a', cappedPost: 'pagine (la versione edge resta veloce). Lancia la CLI per un crawl completo.', sitemapFor: 'sitemap.xml per', + page: 'pagina', pages: 'pagine', copy: 'Copia', - copied: 'Copiato ✓', + copied: 'Copiato', download: 'Scarica', }, }, @@ -79,7 +132,8 @@ export function renderPage(lang) { - + + @@ -93,101 +147,106 @@ export function renderPage(lang) { +${FONTS}
${t.lead}
+${t.eyebrow}
+${t.lead}
+ +${t.hintPre} npx @geosuite/sitemap-builder <url>
${t.ctaText}
+ ${ENGINES} +