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 @@ Example - + diff --git a/package-lock.json b/package-lock.json index 8157f1d..5c400a7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,8 @@ "@vueuse/core": "4.2.2", "core-js": "3.9.0", "typescript": "4.1.5", - "vue": "2.6.12" + "vue": "2.6.12", + "vue-router": "3.5.1" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "4.15.2", @@ -4844,6 +4845,11 @@ "node": ">=6.0.0" } }, + "node_modules/vue-router": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.5.1.tgz", + "integrity": "sha512-RRQNLT8Mzr8z7eL4p7BtKvRaTSGdCbTy2+Mm5HTJvLGYSSeG9gDzNasJPP/yOYKLy+/cLG/ftrqq5fvkFwBJEw==" + }, "node_modules/vue-template-compiler": { "version": "2.6.12", "resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.6.12.tgz", @@ -8770,6 +8776,11 @@ } } }, + "vue-router": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.5.1.tgz", + "integrity": "sha512-RRQNLT8Mzr8z7eL4p7BtKvRaTSGdCbTy2+Mm5HTJvLGYSSeG9gDzNasJPP/yOYKLy+/cLG/ftrqq5fvkFwBJEw==" + }, "vue-template-compiler": { "version": "2.6.12", "resolved": "https://registry.npmjs.org/vue-template-compiler/-/vue-template-compiler-2.6.12.tgz", diff --git a/package.json b/package.json index 622794e..695803b 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,8 @@ "@vueuse/core": "4.2.2", "core-js": "3.9.0", "typescript": "4.1.5", - "vue": "2.6.12" + "vue": "2.6.12", + "vue-router": "3.5.1" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "4.15.2", diff --git a/src/App.vue b/src/App.vue index 20e0746..7bdb42c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,8 +1,8 @@ diff --git a/src/assets/not-found.svg b/src/assets/not-found.svg new file mode 100644 index 0000000..47a0a54 --- /dev/null +++ b/src/assets/not-found.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/logo.svg b/src/assets/vite-logo.svg similarity index 100% rename from src/assets/logo.svg rename to src/assets/vite-logo.svg diff --git a/src/assets/vue-logo.svg b/src/assets/vue-logo.svg new file mode 100644 index 0000000..a1d285e --- /dev/null +++ b/src/assets/vue-logo.svg @@ -0,0 +1,2 @@ + + diff --git a/src/components/CompositionSection.vue b/src/components/CompositionSection.vue deleted file mode 100644 index 3c5d4a3..0000000 --- a/src/components/CompositionSection.vue +++ /dev/null @@ -1,24 +0,0 @@ - - - diff --git a/src/components/EnvSection.vue b/src/components/EnvSection.vue deleted file mode 100644 index f6eb9d4..0000000 --- a/src/components/EnvSection.vue +++ /dev/null @@ -1,42 +0,0 @@ - - - diff --git a/src/components/Feature.vue b/src/components/Feature.vue new file mode 100644 index 0000000..b65bc7a --- /dev/null +++ b/src/components/Feature.vue @@ -0,0 +1,36 @@ + + + diff --git a/src/components/FeatureSection.vue b/src/components/FeatureSection.vue deleted file mode 100644 index b4379b3..0000000 --- a/src/components/FeatureSection.vue +++ /dev/null @@ -1,30 +0,0 @@ - diff --git a/src/components/Features.vue b/src/components/Features.vue new file mode 100644 index 0000000..b9adf03 --- /dev/null +++ b/src/components/Features.vue @@ -0,0 +1,40 @@ + diff --git a/src/components/Hero.vue b/src/components/Hero.vue new file mode 100644 index 0000000..2cd6835 --- /dev/null +++ b/src/components/Hero.vue @@ -0,0 +1,31 @@ + diff --git a/src/components/HeroSection.vue b/src/components/HeroSection.vue deleted file mode 100644 index eb8f923..0000000 --- a/src/components/HeroSection.vue +++ /dev/null @@ -1,31 +0,0 @@ - diff --git a/src/components/Navbar.vue b/src/components/Navbar.vue new file mode 100644 index 0000000..1fc6e60 --- /dev/null +++ b/src/components/Navbar.vue @@ -0,0 +1,78 @@ + + + diff --git a/src/components/icons/IconAlien.vue b/src/components/icons/IconAlien.vue new file mode 100644 index 0000000..0c0f2ba --- /dev/null +++ b/src/components/icons/IconAlien.vue @@ -0,0 +1,8 @@ + diff --git a/src/components/icons/IconArrow.vue b/src/components/icons/IconArrow.vue new file mode 100644 index 0000000..ebe8620 --- /dev/null +++ b/src/components/icons/IconArrow.vue @@ -0,0 +1,13 @@ + diff --git a/src/components/icons/IconGithub.vue b/src/components/icons/IconGithub.vue new file mode 100644 index 0000000..a736e5a --- /dev/null +++ b/src/components/icons/IconGithub.vue @@ -0,0 +1,8 @@ + diff --git a/src/components/icons/IconMoon.vue b/src/components/icons/IconMoon.vue new file mode 100644 index 0000000..39858bb --- /dev/null +++ b/src/components/icons/IconMoon.vue @@ -0,0 +1,20 @@ + diff --git a/src/components/icons/IconSun.vue b/src/components/icons/IconSun.vue new file mode 100644 index 0000000..9b03d5d --- /dev/null +++ b/src/components/icons/IconSun.vue @@ -0,0 +1,20 @@ + diff --git a/src/components/shared/ButtonPrimary.vue b/src/components/shared/ButtonPrimary.vue index 5b81f06..05bfb8e 100644 --- a/src/components/shared/ButtonPrimary.vue +++ b/src/components/shared/ButtonPrimary.vue @@ -1,6 +1,6 @@