From 42b6229dfe18e15e40cb5ae33b0291baf3e9a353 Mon Sep 17 00:00:00 2001 From: lstoeferle <48953604+lstoeferle@users.noreply.github.com> Date: Fri, 26 Feb 2021 23:12:33 +0100 Subject: [PATCH] Added proper demo incl. vue-router --- README.md | 36 +++++++++-- index.html | 2 +- package-lock.json | 13 +++- package.json | 3 +- src/App.vue | 10 +-- src/assets/not-found.svg | 1 + src/assets/{logo.svg => vite-logo.svg} | 0 src/assets/vue-logo.svg | 2 + src/components/CompositionSection.vue | 24 ------- src/components/EnvSection.vue | 42 ------------ src/components/Feature.vue | 36 +++++++++++ src/components/FeatureSection.vue | 30 --------- src/components/Features.vue | 40 ++++++++++++ src/components/Hero.vue | 31 +++++++++ src/components/HeroSection.vue | 31 --------- src/components/Navbar.vue | 78 +++++++++++++++++++++++ src/components/icons/IconAlien.vue | 8 +++ src/components/icons/IconArrow.vue | 13 ++++ src/components/icons/IconGithub.vue | 8 +++ src/components/icons/IconMoon.vue | 20 ++++++ src/components/icons/IconSun.vue | 20 ++++++ src/components/shared/ButtonPrimary.vue | 2 +- src/components/shared/ButtonSecondary.vue | 2 +- src/components/shared/Feature.vue | 45 ------------- src/components/shared/Heading2.vue | 2 +- src/components/shared/Heading3.vue | 7 -- src/main.ts | 2 + src/router/index.ts | 37 +++++++++++ src/views/About.vue | 29 +++++++++ src/views/Home.vue | 6 ++ src/views/NotFound.vue | 26 ++++++++ 31 files changed, 410 insertions(+), 196 deletions(-) create mode 100644 src/assets/not-found.svg rename src/assets/{logo.svg => vite-logo.svg} (100%) create mode 100644 src/assets/vue-logo.svg delete mode 100644 src/components/CompositionSection.vue delete mode 100644 src/components/EnvSection.vue create mode 100644 src/components/Feature.vue delete mode 100644 src/components/FeatureSection.vue create mode 100644 src/components/Features.vue create mode 100644 src/components/Hero.vue delete mode 100644 src/components/HeroSection.vue create mode 100644 src/components/Navbar.vue create mode 100644 src/components/icons/IconAlien.vue create mode 100644 src/components/icons/IconArrow.vue create mode 100644 src/components/icons/IconGithub.vue create mode 100644 src/components/icons/IconMoon.vue create mode 100644 src/components/icons/IconSun.vue delete mode 100644 src/components/shared/Feature.vue delete mode 100644 src/components/shared/Heading3.vue create mode 100644 src/router/index.ts create mode 100644 src/views/About.vue create mode 100644 src/views/Home.vue create mode 100644 src/views/NotFound.vue diff --git a/README.md b/README.md index add04a1..96aa5b0 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,33 @@ -# vite-vue2-example +# Vite ⚡ - Vue 2 starter template -Example project for a Vue 2 SPA using Vite and composition API +This starter template will help you to easily create a Vue2 application bundled by the lightning fast build tool called [Vite](https://github.com/vitejs/vite). Besides Vite this template also provides: -## Vite plugins -* [`vite-plugin-vue2`](https://github.com/underfin/vite-plugin-vue2) -* [`vite-plugin-components`](https://github.com/antfu/vite-plugin-components) -* [` vite-plugin-windicss`](https://github.com/windicss/vite-plugin-windicss) \ No newline at end of file +* Typescript support +* Vue Router +* Vue Composition-API +* WindiCSS (TailwindCSS) + Dark Mode + +## :package: Vite plugins + +* [`vite-plugin-vue2`](https://github.com/underfin/vite-plugin-vue2) - + Vue 2 support for Vite +* [`vite-plugin-components`](https://github.com/antfu/vite-plugin-components) - + On demand components auto importing for Vite +* [`vite-plugin-windicss`](https://github.com/windicss/vite-plugin-windicss) - + WindiCSS/TailwindCSS for Vite + +## :rocket: Getting started + +1. Install dependencies + ```bash + npm install + ``` +2. Start dev server + ```bash + npm run dev + ``` +3. Visit the page + http://localhost:8080 + + \ No newline at end of file diff --git a/index.html b/index.html index d1fa6ad..27f3704 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@
- Switch to the dark side
-
- To learn more about env variablels in Vite click - here -
-- {{ env[selectedKey] }} -
-+ {{ text }} +
+ + Learn More ++ You can even find more awesome Vite plugins + + here + +
++ This example project shows how to speed up your Vue 2 application with + the next generation frontend tooling Vite. +
+- This example project shows how to speed up your Vue 2 application with - the next generation frontend tooling Vite. -
-- {{ text }} -
- Learn More - - -+ This starter template will help you to easily create a Vue2 + application bundled by the lightning fast build tool called Vite. + Besides Vite this template also provides typescript support, + TailwindCSS, vue-router and the vue composition-api for Vue2. +
++ Oops, looks like you got kidnapped by aliens. +
+