From 6cfa090b4fd6e44e3ac6bcc610790413dbfc8302 Mon Sep 17 00:00:00 2001 From: Seth Sharp Date: Sat, 3 Feb 2024 16:37:13 +1000 Subject: [PATCH 1/4] update to how the layout works --- .../Views/Blogs/IndexBlogsController.php | 17 ++ .../index.blade.php} | 3 + resources/views/blogs/show.blade.php | 1 + resources/views/capabilities.blade.php | 8 +- .../views/components/blogs/card.blade.php | 3 + resources/views/components/navbar.blade.php | 9 +- resources/views/experiences.blade.php | 16 +- resources/views/home.blade.php | 160 +++++++++--------- resources/views/layouts/main.blade.php | 15 +- resources/views/projects.blade.php | 11 +- routes/web.php | 20 ++- 11 files changed, 149 insertions(+), 114 deletions(-) create mode 100644 app/Http/Controllers/Views/Blogs/IndexBlogsController.php rename resources/views/{blogs.blade.php => blogs/index.blade.php} (54%) create mode 100644 resources/views/blogs/show.blade.php create mode 100644 resources/views/components/blogs/card.blade.php diff --git a/app/Http/Controllers/Views/Blogs/IndexBlogsController.php b/app/Http/Controllers/Views/Blogs/IndexBlogsController.php new file mode 100644 index 00000000..cfa39415 --- /dev/null +++ b/app/Http/Controllers/Views/Blogs/IndexBlogsController.php @@ -0,0 +1,17 @@ + Blog::all() + ]); + } +} diff --git a/resources/views/blogs.blade.php b/resources/views/blogs/index.blade.php similarity index 54% rename from resources/views/blogs.blade.php rename to resources/views/blogs/index.blade.php index d9537217..4240b7d4 100644 --- a/resources/views/blogs.blade.php +++ b/resources/views/blogs/index.blade.php @@ -1,5 +1,8 @@ @extends("layouts.main") +@section('partOne', 'My') +@section('partTwo', 'Blogs') + @section("content") Blogs here @stop diff --git a/resources/views/blogs/show.blade.php b/resources/views/blogs/show.blade.php new file mode 100644 index 00000000..b3d9bbc7 --- /dev/null +++ b/resources/views/blogs/show.blade.php @@ -0,0 +1 @@ + -
- -
+@section('partOne', 'My') +@section('partTwo', 'Capabilities') +@section("content")
diff --git a/resources/views/components/blogs/card.blade.php b/resources/views/components/blogs/card.blade.php new file mode 100644 index 00000000..4e9b2f97 --- /dev/null +++ b/resources/views/components/blogs/card.blade.php @@ -0,0 +1,3 @@ +
+ Some card +
diff --git a/resources/views/components/navbar.blade.php b/resources/views/components/navbar.blade.php index 8c9f1d54..8028ca5f 100644 --- a/resources/views/components/navbar.blade.php +++ b/resources/views/components/navbar.blade.php @@ -5,7 +5,7 @@ @props(['projects' => 'no-underline']) @props(['wil' => 'no-underline']) -
+