diff --git a/astro.config.ts b/astro.config.ts index 79c1885..63e9274 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -6,9 +6,5 @@ import { defineConfig } from 'astro/config'; // https://astro.build/config export default defineConfig({ integrations: [react(), tailwind(), image()], - vite: { - ssr: { - external: ['svgo'], - }, - }, + vite: { ssr: { external: ['svgo'] } }, }); diff --git a/src/components/atoms/labelled-value.astro b/src/components/atoms/labelled-value.astro index 13ecddb..895f1e2 100644 --- a/src/components/atoms/labelled-value.astro +++ b/src/components/atoms/labelled-value.astro @@ -7,7 +7,7 @@ export interface Props extends astroHTML.JSX.HTMLAttributes { const { label, value, ...props } = Astro.props; --- -
+
{label}: {value}
diff --git a/src/pages/playground/button.astro b/src/pages/playground/button.astro new file mode 100644 index 0000000..11fb01e --- /dev/null +++ b/src/pages/playground/button.astro @@ -0,0 +1,7 @@ +--- +import Button from '@/atoms/button.astro'; +--- + +
+ +
diff --git a/src/pages/playground/labelled-value.astro b/src/pages/playground/labelled-value.astro new file mode 100644 index 0000000..63bfa65 --- /dev/null +++ b/src/pages/playground/labelled-value.astro @@ -0,0 +1,7 @@ +--- +import LabelledValue from '@/atoms/labelled-value.astro'; +--- + +
+ +
diff --git a/src/pages/playground/section-card.astro b/src/pages/playground/section-card.astro new file mode 100644 index 0000000..8d30b5d --- /dev/null +++ b/src/pages/playground/section-card.astro @@ -0,0 +1,7 @@ +--- +import SectionCard from '@/atoms/section-card.astro'; +--- + +
+ SectionCard text +
diff --git a/src/pages/playground/typography.astro b/src/pages/playground/typography.astro new file mode 100644 index 0000000..68d27ad --- /dev/null +++ b/src/pages/playground/typography.astro @@ -0,0 +1,44 @@ +--- +import Typography from '@/atoms/typography.astro'; + +const text = 'A quick brown fox jumps over the lazy dog'; +--- + +
+
+

paragraph (default)

+ {text} +
+
+

main-title

+ {text} +
+
+

main-subtitle

+ {text} +
+
+

section-title

+ {text} +
+
+

section-subtitle

+ {text} +
+
+

item-title

+ {text} +
+
+

item-subtitle

+ {text} +
+
+

tile-title

+ {text} +
+
+

tile-subtitle

+ {text} +
+