From bfbb307ee64f96cf4a75023b500579c833e461ce Mon Sep 17 00:00:00 2001 From: TomasBankauskas Date: Wed, 3 Apr 2024 12:39:42 +0300 Subject: initial commit --- src/env.d.ts | 1 + src/layouts/Layout.astro | 22 ++++++++++++++++++++++ src/pages/index.astro | 13 +++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 src/env.d.ts create mode 100644 src/layouts/Layout.astro create mode 100644 src/pages/index.astro (limited to 'src') diff --git a/src/env.d.ts b/src/env.d.ts new file mode 100644 index 0000000..f964fe0 --- /dev/null +++ b/src/env.d.ts @@ -0,0 +1 @@ +/// diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro new file mode 100644 index 0000000..5c9eaae --- /dev/null +++ b/src/layouts/Layout.astro @@ -0,0 +1,22 @@ +--- +interface Props { + title: string; +} + +const { title } = Astro.props; +--- + + + + + + + + + + {title} + + + + + \ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro new file mode 100644 index 0000000..cac48e0 --- /dev/null +++ b/src/pages/index.astro @@ -0,0 +1,13 @@ +--- +import Layout from '../layouts/Layout.astro'; +--- + + +
+

Welcome to Astro

+

+ To get started, open the directory src/pages in your project.
+ Code Challenge: Tweak the "Welcome to Astro" message above. +

+
+
-- cgit v1.2.3