starting work on abstracting card design

This commit is contained in:
2024-08-02 00:01:11 +02:00
parent 3428bda4bc
commit 3885b5135b
10 changed files with 872 additions and 38 deletions
@@ -0,0 +1,16 @@
---
import { JSDOM } from 'jsdom'
import Container from './Container.astro'
const language = Astro.props['data-language'] ?? 'text'
const html = await Astro.slots.render('default')
console.log(html)
const rawCode = new JSDOM(html).window.document.body.textContent
---
<pre {...Astro.props}><slot /></pre>
{language === 'astro' && <Container set:html={rawCode} />}