Резюме перенесено на роут /resume. Главная страница заменена на заглушку

This commit is contained in:
p.belezov 2024-01-23 14:25:11 +08:00
parent 56c975a18d
commit 36d7609b8c
8 changed files with 77 additions and 12 deletions

View File

@ -1,7 +1,7 @@
{
"name": "dhaverd/resume",
"type": "project",
"description": "My resume site",
"description": "My site",
"keywords": ["laravel", "framework"],
"license": "MIT",
"require": {

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -1,13 +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>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Резюме</title>
@vite('resources/welcome.js')
@vite('resources/css/app.css')
</head>
<body class="antialiased">
<div id="app"></div>
</body>
</html>

15
resources/welcome.js Normal file
View File

@ -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")

View File

@ -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');

View File

@ -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,
}),
],