From 82258addeb8115d68339a1d972adccd870520934 Mon Sep 17 00:00:00 2001 From: GauthierWebDev Date: Sun, 13 Apr 2025 20:52:57 +0200 Subject: [PATCH] feat: Add Iframe component for rendering embedded content --- app/components/common/Iframe.tsx | 19 ++ app/data/certifications/dwwm/at1/cp1/page.md | 8 +- app/data/certifications/dwwm/at1/cp2/page.md | 106 ++++++++++ app/data/certifications/dwwm/at1/cp3/page.md | 195 +++++++++++++++++++ app/data/snippets/html/lazy-loading.html | 7 + app/data/snippets/nginx/reverse-proxy.conf | 11 ++ app/markdoc/tags.tsx | 11 ++ app/vite.config.ts | 2 +- 8 files changed, 354 insertions(+), 5 deletions(-) create mode 100644 app/components/common/Iframe.tsx create mode 100644 app/data/certifications/dwwm/at1/cp2/page.md create mode 100644 app/data/certifications/dwwm/at1/cp3/page.md create mode 100644 app/data/snippets/html/lazy-loading.html create mode 100644 app/data/snippets/nginx/reverse-proxy.conf diff --git a/app/components/common/Iframe.tsx b/app/components/common/Iframe.tsx new file mode 100644 index 0000000..7a6de69 --- /dev/null +++ b/app/components/common/Iframe.tsx @@ -0,0 +1,19 @@ +import clsx from "clsx"; + +type IframeProps = { + src: string; + width?: string; + height?: string; + className?: string; +}; + +export function Iframe(props: IframeProps) { + return ( +