From ac07b73384de511e04542e9ac3a500eb81f92b92 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 21 May 2025 09:12:30 +0200 Subject: Extract common layout --- src/layouts/Layout.astro | 123 ++++++++++++++++++++++++++++ src/pages/404.astro | 61 ++++---------- src/pages/index.astro | 204 ++++++++++++++--------------------------------- 3 files changed, 196 insertions(+), 192 deletions(-) create mode 100644 src/layouts/Layout.astro (limited to 'src') diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro new file mode 100644 index 0000000..d4d4e7e --- /dev/null +++ b/src/layouts/Layout.astro @@ -0,0 +1,123 @@ +--- +import "../styles/global.css"; + +import { GOOGLE_ANALYTICS_ID } from "../config"; + +export interface Props { + title: string; + description?: string; + ogImage?: string; + ogImageAlt?: string; + noindex?: boolean; +} + +const { + title, + description, + ogImage = "https://cidr.xyz/og.webp", + ogImageAlt = "Color-coded octets illustrating an IP range and CIDR mask", + noindex = false, +} = Astro.props; +--- + + +
+ + + + + + + + ++ The page you're looking for doesn't exist. +
+ ← Back to IP / CIDR Calculator -- The page you're looking for doesn't exist. -
- ← Back to IP / CIDR Calculator -