From 36d7609b8c042332cf82129813f248695e54b4b3 Mon Sep 17 00:00:00 2001 From: "p.belezov" Date: Tue, 23 Jan 2024 14:25:11 +0800 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D0=B7=D1=8E=D0=BC=D0=B5=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=BD=D0=B5=D1=81=D0=B5=D0=BD=D0=BE=20=D0=BD?= =?UTF-8?q?=D0=B0=20=D1=80=D0=BE=D1=83=D1=82=20/resume.=20=D0=93=D0=BB?= =?UTF-8?q?=D0=B0=D0=B2=D0=BD=D0=B0=D1=8F=20=D1=81=D1=82=D1=80=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D1=86=D0=B0=20=D0=B7=D0=B0=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=BD=D0=B0=20=D0=B7=D0=B0=D0=B3=D0=BB=D1=83=D1=88?= =?UTF-8?q?=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 2 +- resources/views/Polyfill.vue | 15 +++++++++++++++ resources/views/Welcome.vue | 18 ++++++++++++++++++ resources/views/resume.blade.php | 13 +++++++++++++ resources/views/welcome.blade.php | 20 ++++++++++---------- resources/welcome.js | 15 +++++++++++++++ routes/web.php | 4 ++++ vite.config.js | 2 +- 8 files changed, 77 insertions(+), 12 deletions(-) create mode 100644 resources/views/Polyfill.vue create mode 100644 resources/views/Welcome.vue create mode 100644 resources/views/resume.blade.php create mode 100644 resources/welcome.js diff --git a/composer.json b/composer.json index cf91b44..75e1ed0 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "dhaverd/resume", "type": "project", - "description": "My resume site", + "description": "My site", "keywords": ["laravel", "framework"], "license": "MIT", "require": { diff --git a/resources/views/Polyfill.vue b/resources/views/Polyfill.vue new file mode 100644 index 0000000..e69e202 --- /dev/null +++ b/resources/views/Polyfill.vue @@ -0,0 +1,15 @@ + + + + + diff --git a/resources/views/Welcome.vue b/resources/views/Welcome.vue new file mode 100644 index 0000000..feb368e --- /dev/null +++ b/resources/views/Welcome.vue @@ -0,0 +1,18 @@ + + + + + diff --git a/resources/views/resume.blade.php b/resources/views/resume.blade.php new file mode 100644 index 0000000..58e531d --- /dev/null +++ b/resources/views/resume.blade.php @@ -0,0 +1,13 @@ + + + + + + Резюме + @vite('resources/app.js') + @vite('resources/css/app.css') + + +
+ + diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index 58e531d..360e279 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -1,13 +1,13 @@ - - - - Резюме - @vite('resources/app.js') - @vite('resources/css/app.css') - - -
- + + + + Резюме + @vite('resources/welcome.js') + @vite('resources/css/app.css') + + +
+ diff --git a/resources/welcome.js b/resources/welcome.js new file mode 100644 index 0000000..a36974b --- /dev/null +++ b/resources/welcome.js @@ -0,0 +1,15 @@ +import './js/bootstrap'; +import {createApp} from 'vue' +import App from './views/Welcome.vue' +import { createVuetify } from 'vuetify' +import 'vuetify/styles' +import * as components from 'vuetify/components' +import * as directives from 'vuetify/directives' +import '@mdi/font/css/materialdesignicons.css' + +const vuetify = createVuetify({ + components, + directives +}) + +createApp(App).use(vuetify).mount("#app") diff --git a/routes/web.php b/routes/web.php index 9e46ef4..f1d0c69 100644 --- a/routes/web.php +++ b/routes/web.php @@ -18,4 +18,8 @@ Route::get('/', function () { return view('welcome'); }); +Route::get('/resume', function () { + return view('resume'); +}); + Route::get('/download/{file}', 'App\Http\Controllers\DownloadController@download'); diff --git a/vite.config.js b/vite.config.js index 135c5d8..9fe42ed 100644 --- a/vite.config.js +++ b/vite.config.js @@ -6,7 +6,7 @@ export default defineConfig({ plugins: [ vue(), laravel({ - input: ['resources/css/app.css', 'resources/app.js'], + input: ['resources/css/app.css', 'resources/app.js', 'resources/welcome.js'], refresh: true, }), ],