Skip to content

Commit

Permalink
pages fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
theory-of-evrth committed Oct 24, 2024
1 parent 962eb6b commit 9ef4550
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public function up(): void
{
Schema::create('timelines', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->timestamps();
});
}
Expand Down
24 changes: 17 additions & 7 deletions timeliner/resources/views/about.blade.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
@extends('layout.app')
<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight">
{{ __('About') }}
</h2>
</x-slot>

@section('content')

<h1>About page</h1>
<p>all right reserved...</p>

@endsection
<div class="py-12">
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
<div class="bg-white dark:bg-gray-800 overflow-hidden shadow-sm sm:rounded-lg">
<div class="p-6 text-gray-900 dark:text-gray-100">
{{ __("All rights reserved") }}
<p>Made in He-Arc during the course DevWebI</p>
</div>
</div>
</div>
</div>
</x-app-layout>
2 changes: 1 addition & 1 deletion timeliner/resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<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','resources/views/timeline/timelinelist.blade.php'])
@vite(['resources/css/app.css', 'resources/js/app.js'])

<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
Expand Down
7 changes: 6 additions & 1 deletion timeliner/resources/views/layouts/navigation.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,14 @@
{{ __('Home') }}
</x-nav-link>
</div>
<div class="hidden space-x-8 sm:-my-px sm:ms-10 sm:flex">
<x-nav-link :href="route('about')" :active="request()->routeIs('about')">
{{ __('About') }}
</x-nav-link>
</div>
<div class="hidden space-x-8 sm:-my-px sm:ms-10 sm:flex">
<x-nav-link :href="route('dashboard')" :active="request()->routeIs('dashboard')">
{{ __('Dashboard') }}
{{ __('My Dashboard') }}
</x-nav-link>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion timeliner/routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Route::get('about', function () {
return view('about');
});
})->name('about');

Route::get('/dashboard', function () {
return view('dashboard');
Expand Down

0 comments on commit 9ef4550

Please sign in to comment.