From 9263e965932b9a6a116801c063c6b7105c39643e Mon Sep 17 00:00:00 2001 From: Erika <3019731+Princesseuh@users.noreply.github.com> Date: Mon, 4 Nov 2024 16:15:11 +0100 Subject: create-astro updates (#12083) Co-authored-by: Reuben Tier <64310361+TheOtterlord@users.noreply.github.com> Co-authored-by: Sarah Rainsberger Co-authored-by: Bjorn Lu Co-authored-by: Florian Lefebvre Co-authored-by: Reuben Tier --- examples/basics/src/components/Card.astro | 61 --------------- examples/basics/src/layouts/Layout.astro | 39 +--------- examples/basics/src/pages/index.astro | 121 +----------------------------- 3 files changed, 4 insertions(+), 217 deletions(-) delete mode 100644 examples/basics/src/components/Card.astro (limited to 'examples/basics/src') diff --git a/examples/basics/src/components/Card.astro b/examples/basics/src/components/Card.astro deleted file mode 100644 index bd6d5971e..000000000 --- a/examples/basics/src/components/Card.astro +++ /dev/null @@ -1,61 +0,0 @@ ---- -interface Props { - title: string; - body: string; - href: string; -} - -const { href, title, body } = Astro.props; ---- - - - diff --git a/examples/basics/src/layouts/Layout.astro b/examples/basics/src/layouts/Layout.astro index 181097125..a25b9e69d 100644 --- a/examples/basics/src/layouts/Layout.astro +++ b/examples/basics/src/layouts/Layout.astro @@ -1,50 +1,13 @@ ---- -interface Props { - title: string; -} - -const { title } = Astro.props; ---- - - - {title} + Astro Basics - diff --git a/examples/basics/src/pages/index.astro b/examples/basics/src/pages/index.astro index fb6262872..a2bf4ee37 100644 --- a/examples/basics/src/pages/index.astro +++ b/examples/basics/src/pages/index.astro @@ -1,123 +1,8 @@ --- +import { Welcome } from 'astro:components'; import Layout from '../layouts/Layout.astro'; -import Card from '../components/Card.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