From d47b3ccf615639ee7c83a7be10aaa581e5a934e1 Mon Sep 17 00:00:00 2001
From: Yuval Adam <_@yuv.al>
Date: Thu, 22 May 2025 13:13:14 +0200
Subject: Add embed page and more cleanup
---
src/pages/embed-example.astro | 66 ----------------------------------
src/pages/embed-widget.astro | 84 +++++++++++++++++++++++++++++++++++++++++++
src/pages/embed.astro | 31 ++++++++--------
src/pages/subnet-guide.astro | 2 +-
4 files changed, 100 insertions(+), 83 deletions(-)
delete mode 100644 src/pages/embed-example.astro
create mode 100644 src/pages/embed-widget.astro
(limited to 'src/pages')
diff --git a/src/pages/embed-example.astro b/src/pages/embed-example.astro
deleted file mode 100644
index f66feab..0000000
--- a/src/pages/embed-example.astro
+++ /dev/null
@@ -1,66 +0,0 @@
----
-import Layout from "../layouts/Layout.astro";
-
-const title = "CIDR Calculator Widget Embed Example";
-const description = "Learn how to embed the CIDR calculator widget in your website";
----
-
-
- 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:
-
+ Embed the CIDR Calculator in your website
+
+ 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:
+
+ The widget adapts to the width of its container. For best results:
+
- 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
-
-
-
+ CIDR Calculator Widget
+
+
+
+ <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
+
+
+