From 80d92ae81f18473bc1578ca72f7a4232904f3d8b Mon Sep 17 00:00:00 2001 From: Ayo Date: Mon, 7 Nov 2022 12:04:08 +0100 Subject: [PATCH] fix(landing-page): starfield not loading --- apps/landing-page/src/pages/index.astro | 5 +---- apps/landing-page/src/sections/splash.astro | 11 ++--------- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/apps/landing-page/src/pages/index.astro b/apps/landing-page/src/pages/index.astro index 7e4ff10..dd4f452 100644 --- a/apps/landing-page/src/pages/index.astro +++ b/apps/landing-page/src/pages/index.astro @@ -1,10 +1,9 @@ --- +import "~/styles/index.css"; import Header from "~/components/header.astro"; // import Icon from "astro-icon"; import Splash from "~/sections/splash.astro"; -import "~/styles/index.css"; // import AstroSection from "~/sections/astro-section.astro"; -import Starfield from "~/sections/starfield.astro"; const { site } = Astro; const image = new URL("social.jpg", site); @@ -80,7 +79,5 @@ const description =
- - diff --git a/apps/landing-page/src/sections/splash.astro b/apps/landing-page/src/sections/splash.astro index 4989f8d..aec113a 100644 --- a/apps/landing-page/src/sections/splash.astro +++ b/apps/landing-page/src/sections/splash.astro @@ -1,7 +1,7 @@ --- import { generateImage } from "astro-eleventy-img"; import { Icon } from "astro-icon"; -// import Starfield from "~/sections/starfield.astro"; +import Starfield from "~/sections/starfield.astro"; import Copynpm from "~/components/copynpm.astro"; const widths = [450, 800]; @@ -20,6 +20,7 @@ const pngSrcset = png.map(({ srcset }) => srcset).join(","); ---
+
@@ -66,14 +67,6 @@ const pngSrcset = png.map(({ srcset }) => srcset).join(",");
- -