From d6f0a415bd67ff50f69aaeecf358d0df284e026e Mon Sep 17 00:00:00 2001 From: Sean Boettger Date: Sat, 11 Oct 2025 07:17:16 +1100 Subject: [PATCH 01/18] Add CodeActivity component (very WIP) - embeds an SKO iFrame and sends the code between the <> in - added to a couple of pages as test/demo - not sure about the name --- src/components/CodeActivity.astro | 39 +++++++++++++++++++ .../1-tour/01-01-read-name.mdx | 24 ++++++++++++ .../1-tour/02-02-drawing.mdx | 27 ++++++++++++- 3 files changed, 89 insertions(+), 1 deletion(-) create mode 100644 src/components/CodeActivity.astro diff --git a/src/components/CodeActivity.astro b/src/components/CodeActivity.astro new file mode 100644 index 00000000..f7df4376 --- /dev/null +++ b/src/components/CodeActivity.astro @@ -0,0 +1,39 @@ +--- +import type { Props } from "@astrojs/starlight/props"; +import { Icon } from 'astro-icon' +const { icon, title, projectName } = Astro.props; + +//const srcURL = "https://thoth-tech.github.io/SplashkitOnline"; +const srcURL = "http://127.0.0.1:8000/"; + +const codeSnippetID = `code-activity-${crypto.randomUUID()}` +const iFrameID = `code-activity-${crypto.randomUUID()}` +--- +