From 69cc1db574e319c77d5ae049979a6b35518b26fe Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Thu, 22 May 2025 13:00:55 +0200 Subject: Add subnet guide, layout, nav and embed --- src/pages/cidr-calculator-subnet-guide.astro | 117 --------------------------- src/pages/embed-example.astro | 66 +++++++++++++++ src/pages/embed.astro | 72 +++++++++++++++++ src/pages/index.astro | 24 +++--- src/pages/subnet-guide.astro | 111 +++++++++++++++++++++++++ 5 files changed, 261 insertions(+), 129 deletions(-) delete mode 100644 src/pages/cidr-calculator-subnet-guide.astro create mode 100644 src/pages/embed-example.astro create mode 100644 src/pages/embed.astro create mode 100644 src/pages/subnet-guide.astro (limited to 'src/pages') diff --git a/src/pages/cidr-calculator-subnet-guide.astro b/src/pages/cidr-calculator-subnet-guide.astro deleted file mode 100644 index 3f2c4d1..0000000 --- a/src/pages/cidr-calculator-subnet-guide.astro +++ /dev/null @@ -1,117 +0,0 @@ ---- -import Layout from "../layouts/Layout.astro"; -import Cidr from "../components/Cidr"; -import { faqs } from "../content/faqs.ts"; -import Prose from "../components/Prose.astro"; - -// ──────────────────────────────────────────────────────────── -// Metadata -// ──────────────────────────────────────────────────────────── -const title = "CIDR Calculator & Subnet Guide — IP Ranges, Masks & IPv6"; -const description = - "Free interactive CIDR calculator and comprehensive plain‑language guide covering subnetting, IP ranges, subnet masks and IPv6 addressing."; - -// FAQ structured‑data (kept in sync with UI) -const faqJsonLd = { - "@context": "https://schema.org", - "@type": "FAQPage", - mainEntity: faqs.map(({ q, a }) => ({ - "@type": "Question", - name: q, - acceptedAnswer: { "@type": "Answer", text: a }, - })), -}; - -import { Content as GuideContent } from "../content/cidr-guide.md"; ---- - - -
- - - - - Back Home - -
-

- CIDR Calculator & Subnet Guide -

-

- Convert CIDR blocks to IP ranges and master subnetting for IPv4 - & IPv6 — in one streamlined resource. -

-
-
- -
- -
- - - - - - - - {/** Structured‑data block */} - + + + +
+ +
+ + + + diff --git a/src/pages/index.astro b/src/pages/index.astro index 9458dab..23588d9 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -19,18 +19,18 @@ const faqJsonLd = { --- -

- CIDR Calculator -

-

- Visualize and Calculate Network Ranges with IPv4 CIDR Blocks -

- Read the guide +
+
+

+ CIDR Calculator +

+

+ Visualize and Calculate Network Ranges with IPv4 CIDR Blocks +

+
+
diff --git a/src/pages/subnet-guide.astro b/src/pages/subnet-guide.astro new file mode 100644 index 0000000..9a0d67f --- /dev/null +++ b/src/pages/subnet-guide.astro @@ -0,0 +1,111 @@ +--- +import Layout from "../layouts/Layout.astro"; +import Cidr from "../components/Cidr"; +import { faqs } from "../content/faqs.ts"; +import Prose from "../components/Prose.astro"; + +// ──────────────────────────────────────────────────────────── +// Metadata +// ──────────────────────────────────────────────────────────── +const title = "CIDR Calculator & Subnet Guide — IP Ranges, Masks & IPv6"; +const description = + "Free interactive CIDR calculator and comprehensive plain‑language guide covering subnetting, IP ranges, subnet masks and IPv6 addressing."; + +// FAQ structured‑data (kept in sync with UI) +const faqJsonLd = { + "@context": "https://schema.org", + "@type": "FAQPage", + mainEntity: faqs.map(({ q, a }) => ({ + "@type": "Question", + name: q, + acceptedAnswer: { "@type": "Answer", text: a }, + })), +}; + +import { Content as GuideContent } from "../content/cidr-guide.md"; +--- + + +
+
+

+ CIDR Subnet Guide +

+

+ Convert CIDR blocks to IP ranges and master subnetting for IPv4 + & IPv6 — in one streamlined resource. +

+
+
+ + + + + + + + + + {/** Structured‑data block */} +