diff --git a/src/components/HeroSection.astro b/src/components/HeroSection.astro new file mode 100644 index 0000000..9885af9 --- /dev/null +++ b/src/components/HeroSection.astro @@ -0,0 +1,36 @@ +--- +import CodeEditor from "./CodeEditor.astro"; + +const { title, thpcode, subtitle } = Astro.props; + +if (!subtitle) { + throw new Error("subtitle is required"); +} + +if (!thpcode) { + throw new Error("thpcode is required"); +} + +if (!title) { + throw new Error("title is required"); +} +--- + +
- Inspired by Rust, Zig and Kotlin, THP has a modern syntax, - semantics, type system and stdlib. -
-mixed
.
- No client Any
.Type inference included.
- mixed
. No client Any
.Type inference included.
+