Update Home/Debug

This commit is contained in:
2026-04-26 20:48:37 +00:00
parent ab2f60fc62
commit 69559e1152
5 changed files with 62 additions and 42 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ ## Project snapshot
## Request flow and architecture
- Entry point is standard Laravel bootstrap in [bootstrap/app.php](../bootstrap/app.php) with web routes from [routes/web.php](../routes/web.php).
- `GET /` renders [resources/views/child.blade.php](../resources/views/child.blade.php), extending [resources/views/layouts/app.blade.php](../resources/views/layouts/app.blade.php).
- `GET /` renders [resources/views/welcome.blade.php](../resources/views/welcome.blade.php), extending [resources/views/layouts/app.blade.php](../resources/views/layouts/app.blade.php).
- `GET /debug` renders [resources/views/debug.blade.php](../resources/views/debug.blade.php), which logs via `Debugbar::warning(...)`.
- Layout currently loads static assets from [public/css](../public/css) and [public/js](../public/js) (not `@vite`).
-12
View File
@@ -1,12 +0,0 @@
@extends('layouts.app')
@section('title', 'Welcome')
@section('sidebar')
@parent
<p>This is appended to the master sidebar.</p>
@endsection
@section('content')
<p>Welcome! One day...</p>
@endsection
+52 -25
View File
@@ -3,34 +3,61 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta name="color-scheme" content="light dark">
<title>{{ config('app.name', 'Laravel') }}</title>
<title>LinkSoup - @yield('title')</title>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
<!-- Scripts -->
@vite(['resources/css/app.css', 'resources/js/app.js'])
<!-- Pico.css -->
<link rel="stylesheet" href="{{ url('/css/pico.min.css') }}" id="theme-color-ss">
<link rel="stylesheet" href="{{ url('/css/pico.colors.min.css') }}">
</head>
<body class="font-sans antialiased">
<div class="min-h-screen bg-gray-100 dark:bg-gray-900">
@include('layouts.navigation')
<!-- Page Heading -->
@isset($header)
<header class="bg-white dark:bg-gray-800 shadow">
<div class="max-w-7xl mx-auto py-6 px-4 sm:px-6 lg:px-8">
{{ $header }}
</div>
</header>
@endisset
<body>
<header>
<div class="container">
<nav role="navigation" data-position="end" data-breakpoint="lg">
<ul>
<li><a href="{{ route('home') }}"><h1>LinkSoup</h1></a></li>
</ul>
<ul>
<li><h6>a collection of links from around the web.</h6></li>
</ul>
<input type="checkbox" id="menu-btn2">
<label for="menu-btn2" style="font-size: calc(var(--pico-font-size) * 1.3);" aria-label="Menu"
aria-controls="nav-example2">
&equiv;
</label>
<ol id="nav-example2" role="list">
<li role="listitem"><a href="{{ route('home') }}">Home</a></li>
<li role="listitem"><a href="{{ route('login') }}">Login</a></li>
<li role="listitem"><a href="{{ route('debug') }}">Register</a></li>
</ol>
</nav>
</div>
</header>
<main class="container-fluid">
<!-- Page Content -->
<main>
{{ $slot }}
</main>
</div>
<div class="container">
@section('sidebar')
This is the master sidebar.
@show
</div>
<div class="container">
@yield('content')
</div>
</main>
<!-- Footer -->
<footer class="container">
<small>
<p>&copy; {{ date('Y') }} LinkSoup. All rights reserved.</p>
</small>
</footer>
<!-- ./ Footer -->
<!-- Scripts n stuff -->
<script src="{{ url('/js/jquery-3.7.1.min.js') }}"></script>
</body>
</html>
</html>
+3 -3
View File
@@ -23,7 +23,7 @@
<x-dropdown align="right" width="48">
<x-slot name="trigger">
<button class="inline-flex items-center px-3 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 dark:text-gray-400 bg-white dark:bg-gray-800 hover:text-gray-700 dark:hover:text-gray-300 focus:outline-none transition ease-in-out duration-150">
<div>{{ Auth::user()->name }}</div>
<div>{{ Auth::check() ? Auth::user()->name : '' }}</div>
<div class="ms-1">
<svg class="fill-current h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
@@ -75,8 +75,8 @@
<!-- Responsive Settings Options -->
<div class="pt-4 pb-1 border-t border-gray-200 dark:border-gray-600">
<div class="px-4">
<div class="font-medium text-base text-gray-800 dark:text-gray-200">{{ Auth::user()->name }}</div>
<div class="font-medium text-sm text-gray-500">{{ Auth::user()->email }}</div>
<div class="font-medium text-base text-gray-800 dark:text-gray-200">{{ Auth::check() ? Auth::user()->name : '' }}</div>
<div class="font-medium text-sm text-gray-500">{{ Auth::check() ? Auth::user()->email : '' }}</div>
</div>
<div class="mt-3 space-y-1">
+6 -1
View File
@@ -5,7 +5,12 @@
Route::get('/', function () {
return view('welcome');
});
})->name('home');;
Route::get('/debug', function () {
return view('debug');
})->name('debug');;
Route::get('/dashboard', function () {
return view('dashboard');