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-widget.astro | 84 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 src/pages/embed-widget.astro (limited to 'src/pages/embed-widget.astro') diff --git a/src/pages/embed-widget.astro b/src/pages/embed-widget.astro new file mode 100644 index 0000000..eafed9e --- /dev/null +++ b/src/pages/embed-widget.astro @@ -0,0 +1,84 @@ +--- +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"; +--- + + +
+
+

+ CIDR Calculator Widget +

+

+ 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: +

+ +
<iframe 
+  src="https://cidr.xyz/embed" 
+  width="100%" height="600" 
+  frameborder="0" 
+  allowtransparency="true"
+  title="CIDR Calculator"
+  loading="lazy"
+></iframe>
+ +

Live Example

+
+ +
+ +
+ +
+

Customization

+

+ The widget adapts to the width of its container. For best results: +

+ + +

Usage Notes

+ +
+
-- cgit v1.3.1