From b33bda5cc33ed5eabed857a1961c1006765969a6 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Wed, 30 Mar 2022 16:31:57 -0400 Subject: [PATCH] feat: spruce up homepage --- .../astro-star-explorer/src/pages/index.astro | 56 ++++++++++++++++++- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/examples/astro-star-explorer/src/pages/index.astro b/examples/astro-star-explorer/src/pages/index.astro index bdbee4e9b6..df63a58e5c 100644 --- a/examples/astro-star-explorer/src/pages/index.astro +++ b/examples/astro-star-explorer/src/pages/index.astro @@ -1,9 +1,59 @@ --- import Layout from '../components/Layout.astro' + +const { NASA_API_KEY } = import.meta.env +const exampleDate = '2021-03-29' +const { title, url } = await fetch( + `https://api.nasa.gov/planetary/apod?date=${exampleDate}&api_key=${NASA_API_KEY}` +).then((res) => res.json()); --- -

Galaxy explorer

-

Explore the universe, buy some prints!

+
+

Galaxy explorer

+

A universe of imagery, all ready to print!

- Show me the latest + +
+ +