Резюме перенесено на роут /resume. Главная страница заменена на заглушку
This commit is contained in:
		
							parent
							
								
									56c975a18d
								
							
						
					
					
						commit
						36d7609b8c
					
				|  | @ -1,7 +1,7 @@ | ||||||
| { | { | ||||||
|     "name": "dhaverd/resume", |     "name": "dhaverd/resume", | ||||||
|     "type": "project", |     "type": "project", | ||||||
|     "description": "My resume site", |     "description": "My site", | ||||||
|     "keywords": ["laravel", "framework"], |     "keywords": ["laravel", "framework"], | ||||||
|     "license": "MIT", |     "license": "MIT", | ||||||
|     "require": { |     "require": { | ||||||
|  |  | ||||||
|  | @ -0,0 +1,15 @@ | ||||||
|  | <template> | ||||||
|  |     <v-sheet class="d-flex justify-center align-center"> | ||||||
|  |         <p class="text-h5">Эта страничка пока пустая. Резюме находится <a href="/resume">здесь.</a></p> | ||||||
|  |     </v-sheet> | ||||||
|  | </template> | ||||||
|  | 
 | ||||||
|  | <script> | ||||||
|  | export default { | ||||||
|  |     name: "Polyfill" | ||||||
|  | } | ||||||
|  | </script> | ||||||
|  | 
 | ||||||
|  | <style scoped> | ||||||
|  | 
 | ||||||
|  | </style> | ||||||
|  | @ -0,0 +1,18 @@ | ||||||
|  | <template> | ||||||
|  |     <v-app> | ||||||
|  |         <Polyfill></Polyfill> | ||||||
|  |     </v-app> | ||||||
|  | </template> | ||||||
|  | 
 | ||||||
|  | <script> | ||||||
|  | import Polyfill from "./Polyfill.vue"; | ||||||
|  | 
 | ||||||
|  | export default { | ||||||
|  |     name: "Welcome", | ||||||
|  |     components: {Polyfill} | ||||||
|  | } | ||||||
|  | </script> | ||||||
|  | 
 | ||||||
|  | <style scoped> | ||||||
|  | 
 | ||||||
|  | </style> | ||||||
|  | @ -0,0 +1,13 @@ | ||||||
|  | <!DOCTYPE html> | ||||||
|  | <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> | ||||||
|  |     <head> | ||||||
|  |         <meta charset="utf-8"> | ||||||
|  |         <meta name="viewport" content="width=device-width, initial-scale=1"> | ||||||
|  |         <title>Резюме</title> | ||||||
|  |         @vite('resources/app.js') | ||||||
|  |         @vite('resources/css/app.css') | ||||||
|  |     </head> | ||||||
|  |     <body class="antialiased"> | ||||||
|  |         <div id="app"></div> | ||||||
|  |     </body> | ||||||
|  | </html> | ||||||
|  | @ -1,13 +1,13 @@ | ||||||
| <!DOCTYPE html> | <!DOCTYPE html> | ||||||
| <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> | <html lang="{{ str_replace('_', '-', app()->getLocale()) }}"> | ||||||
|     <head> | <head> | ||||||
|         <meta charset="utf-8"> |     <meta charset="utf-8"> | ||||||
|         <meta name="viewport" content="width=device-width, initial-scale=1"> |     <meta name="viewport" content="width=device-width, initial-scale=1"> | ||||||
|         <title>Резюме</title> |     <title>Резюме</title> | ||||||
|         @vite('resources/app.js') |     @vite('resources/welcome.js') | ||||||
|         @vite('resources/css/app.css') |     @vite('resources/css/app.css') | ||||||
|     </head> | </head> | ||||||
|     <body class="antialiased"> | <body class="antialiased"> | ||||||
|         <div id="app"></div> | <div id="app"></div> | ||||||
|     </body> | </body> | ||||||
| </html> | </html> | ||||||
|  |  | ||||||
|  | @ -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") | ||||||
|  | @ -18,4 +18,8 @@ | ||||||
|     return view('welcome'); |     return view('welcome'); | ||||||
| }); | }); | ||||||
| 
 | 
 | ||||||
|  | Route::get('/resume', function () { | ||||||
|  |     return view('resume'); | ||||||
|  | }); | ||||||
|  | 
 | ||||||
| Route::get('/download/{file}', 'App\Http\Controllers\DownloadController@download'); | Route::get('/download/{file}', 'App\Http\Controllers\DownloadController@download'); | ||||||
|  |  | ||||||
|  | @ -6,7 +6,7 @@ export default defineConfig({ | ||||||
|     plugins: [ |     plugins: [ | ||||||
|         vue(), |         vue(), | ||||||
|         laravel({ |         laravel({ | ||||||
|             input: ['resources/css/app.css', 'resources/app.js'], |             input: ['resources/css/app.css', 'resources/app.js', 'resources/welcome.js'], | ||||||
|             refresh: true, |             refresh: true, | ||||||
|         }), |         }), | ||||||
|     ], |     ], | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue