It pushes the changes or it gets the hose.

master
David Bixler 5 months ago
parent 776779f140
commit 6c666e5e0a

@ -0,0 +1,17 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Inertia\Inertia;
class Basics extends Controller
{
function ShowRecentWork() {
return Inertia::render('Portfolio');
}
function ShowAbout(){
return Inertia::render('About');
}
}

@ -5,7 +5,7 @@ import NavUser from '@/components/NavUser.vue';
import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem } from '@/components/ui/sidebar'; import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem } from '@/components/ui/sidebar';
import { type NavItem } from '@/types'; import { type NavItem } from '@/types';
import { Link } from '@inertiajs/vue3'; import { Link } from '@inertiajs/vue3';
import { BookOpen, Folder, LayoutGrid } from 'lucide-vue-next'; import { BookOpen, Folder, LayoutGrid, GalleryHorizontal, Toilet } from 'lucide-vue-next';
import AppLogo from './AppLogo.vue'; import AppLogo from './AppLogo.vue';
const mainNavItems: NavItem[] = [ const mainNavItems: NavItem[] = [
@ -14,6 +14,16 @@ const mainNavItems: NavItem[] = [
href: '/dashboard', href: '/dashboard',
icon: LayoutGrid, icon: LayoutGrid,
}, },
{
title: 'Portfolio',
href: '/portfolio',
icon: GalleryHorizontal,
},
{
title: 'About',
href: '/about',
icon: Toilet,
}
]; ];
const footerNavItems: NavItem[] = [ const footerNavItems: NavItem[] = [

@ -0,0 +1,12 @@
<script setup lang="ts">
import AppLayout from '@/layouts/AppLayout.vue';
</script>
<template>
<AppLayout>About Stuff</AppLayout>
</template>
<style scoped>
</style>

@ -0,0 +1,15 @@
<script setup lang="ts">
import AppLayout from '@/layouts/AppLayout.vue';
</script>
<template>
<AppLayout>
Fuck You
</AppLayout>
</template>
<style scoped>
</style>

@ -11,5 +11,8 @@ Route::get('dashboard', function () {
return Inertia::render('Dashboard'); return Inertia::render('Dashboard');
})->middleware(['auth', 'verified'])->name('dashboard'); })->middleware(['auth', 'verified'])->name('dashboard');
Route::get('portfolio', [\App\Http\Controllers\Basics::class, 'ShowRecentWork'])->name('portfolio');
Route::get('about', [\App\Http\Controllers\Basics::class, 'ShowAbout'])->name('about');
require __DIR__.'/settings.php'; require __DIR__.'/settings.php';
require __DIR__.'/auth.php'; require __DIR__.'/auth.php';

Loading…
Cancel
Save