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";
----
-
-
- Convert CIDR blocks to IP ranges and master subnetting for IPv4
- & IPv6 — in one streamlined resource.
-
+ You can embed the CIDR calculator widget in your website or application using an iframe.
+ Copy the code below and adjust the width and height as needed:
+ Here's how the embedded widget looks:
+ The widget adapts to the width of its container. For best results:
+
- CIDR Calculator & Subnet Guide
-
-
+ CIDR Calculator Widget
+
+
+ Embed the CIDR Calculator in your website
+
+
+
+
+ <iframe
+ src="https://cidr.xyz/embed"
+ width="100%"
+ height="600"
+ frameborder="0"
+ allowtransparency="true"
+ title="CIDR Calculator"
+ loading="lazy"
+></iframe>Live Example
+ Customization
+
+
+
+ Usage Notes
+
+
+
+ Visualize and Calculate Network Ranges with IPv4 CIDR Blocks +
++ Convert CIDR blocks to IP ranges and master subnetting for IPv4 + & IPv6 — in one streamlined resource. +
+