From 9c980a1017111734c534f1fd0513a14fb1b752ea Mon Sep 17 00:00:00 2001 From: Nate Moore Date: Tue, 27 Apr 2021 14:21:33 -0500 Subject: add starter template (#135) --- examples/starter/src/components/Tour.astro | 82 ++++++++++++++++++++++++++++++ examples/starter/src/pages/index.astro | 38 ++++++++++++++ 2 files changed, 120 insertions(+) create mode 100644 examples/starter/src/components/Tour.astro create mode 100644 examples/starter/src/pages/index.astro (limited to 'examples/starter/src') diff --git a/examples/starter/src/components/Tour.astro b/examples/starter/src/components/Tour.astro new file mode 100644 index 000000000..ca0cfafbf --- /dev/null +++ b/examples/starter/src/components/Tour.astro @@ -0,0 +1,82 @@ +
+ + +
+

🚀 Project Structure

+

Inside of your Astro project, you'll see the following folders and files:

+ +
/
+├── public/
+│   ├── robots.txt
+│   └── favicon.ico
+├── src/
+│   ├── components/
+│   │   └── Tour.astro
+│   └── pages/
+│       └── index.astro
+└── package.json
+        
+ +

+ Astro looks for .astro or .md.astro files in the src/pages/ directory. + Each page is exposed as a route based on its file name. +

+ +

+ There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components. +

+ +

Any static assets, like images, can be placed in the public/ directory.

+
+ +
+

👀 Want to learn more?

+

Feel free to check our documentation or jump into our Discord server.

+
+ +
+ + diff --git a/examples/starter/src/pages/index.astro b/examples/starter/src/pages/index.astro new file mode 100644 index 000000000..de052e9c4 --- /dev/null +++ b/examples/starter/src/pages/index.astro @@ -0,0 +1,38 @@ +--- +import Tour from '../components/Tour.astro'; +--- + + + + + + + Astro + + + + + + + + + +
+
+
+ Astro logo +

Welcome to Astro

+
+
+ + +
+ + -- cgit v1.2.3