From f11fd265f85c365c43a8e6f8d76524f14909ebf3 Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Mon, 29 Mar 2021 13:48:27 -0700 Subject: [PATCH] revert bad snowpack example changes --- examples/snowpack/astro/pages/index.astro | 154 ++++++++++++++++++++-- 1 file changed, 146 insertions(+), 8 deletions(-) diff --git a/examples/snowpack/astro/pages/index.astro b/examples/snowpack/astro/pages/index.astro index 00076e72e..31dba0f51 100644 --- a/examples/snowpack/astro/pages/index.astro +++ b/examples/snowpack/astro/pages/index.astro @@ -1,15 +1,153 @@ --- +import Menu from '../components/Menu.astro'; +import Hero from '../components/Hero.astro'; import BaseHead from '../components/BaseHead.astro'; +import BaseLayout from '../components/BaseLayout.astro'; -let title = 'Astro'; -let description = 'A better way to build a (static) site.'; +let title = 'Snowpack'; +let description = 'Snowpack is a lightning-fast frontend build tool, designed for the modern web.'; --- - - - - - - + + + + + + + + + +
+
+ + +
+
+
+ + 2020 JavaScript Open Source Award Winner banner + + +
+
+

What is Snowpack?

+

+ Snowpack is a lightning-fast frontend build tool, designed + for the modern web. + It is an alternative to heavier, more complex bundlers like + webpack or Parcel in your development workflow. Snowpack + leverages JavaScript's native module system (known + as + ESM) to avoid unnecessary work and stay fast no matter how big + your project grows. +

+

+ Once you try it, it's impossible to go back to anything else. +

+
+ +
    +
  • +

    Instant startup

    + Snowpack's unbundled web development server + starts up in 50ms or less + and stays fast in large projects. +
  • +
  • +

    Build once, cache forever

    + Snowpack never builds the same file twice. Powered by + JavaScript’s native module system (ESM) in the browser. +
  • +
  • +

    HMR feat. Fast Refresh

    + No refresh required. See changes reflected instantly in the + browser with + HMR + Fast Refresh + for React, Preact & Svelte. +
  • +
  • +

    Out-of-the-box support

    + Enjoy Snowpack's built-in support for JSX, TypeScript, React, + Preact, CSS Modules + and more. +
  • +
  • +

    Optimize for production

    + Build for production with built-in optimizations and plugin + support for your favorite bundlers. +
  • +
  • +

    Plugins? Plugins!

    + Babel? Sass? MDX? Browse the entire + Snowpack Plugin Catalog + to connect your favorite build tool (or + create your own!) +
  • +
+ + +
+
+
+
+
+
+
+ + + +