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

+

Here's how the embedded widget looks:

+
+ +
+ +
+ +
+

Customization

+

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

+ + +

Usage Notes

+ +
+
-- cgit v1.3.1