@@ -77,204 +76,91 @@ function handlePhoneClick() {
\ No newline at end of file
+
diff --git a/src/components/TariffCards.vue b/src/components/TariffCards.vue
index 95dc3fd..246e80e 100644
--- a/src/components/TariffCards.vue
+++ b/src/components/TariffCards.vue
@@ -11,27 +11,27 @@
bordered
>
-
-
Кому подходит
-
Малому и среднему бизнесу
-
+
+
Кому подходит
+
Малому и среднему бизнесу
+
-
-
Какие задачи решает
-
Сдача отчётности, расчёт налогов
-
+
+
Какие задачи решает
+
Сдача отчётности, расчёт налогов
+
-
-
Преимущества
-
Экономия времени и снижение рисков
+
+
Преимущества
+
Экономия времени и снижение рисков
+
-
{{ tariff.price }} ₽
-
+
Выбрать
@@ -40,7 +40,8 @@
-
-
diff --git a/src/router/index.js b/src/router/index.js
new file mode 100644
index 0000000..172bafa
--- /dev/null
+++ b/src/router/index.js
@@ -0,0 +1,14 @@
+import { createRouter, createWebHistory } from 'vue-router'
+import HomePage from '../pages/HomePage.vue'
+import OrderPage from '../pages/OrderPage.vue'
+
+const routes = [
+ { path: '/', redirect: '/moscow' },
+ { path: '/:region', component: HomePage },
+ { path: '/:region/order', component: OrderPage }
+]
+
+export default createRouter({
+ history: createWebHistory(),
+ routes
+})
diff --git a/vite.config.js b/vite.config.js
index d27aa78..974ad5b 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -5,8 +5,13 @@ import vue from '@vitejs/plugin-vue'
export default defineConfig({
plugins: [vue()],
resolve: {
- alias: {
- 'vue': 'vue/dist/vue.esm-bundler.js'
+ alias: {
+ 'vue': 'vue/dist/vue.esm-bundler.js'
+ }
+ },
+ server: {
+ proxy: {
+ '/api': 'http://localhost:3000'
+ }
}
-}
})