Skip to content

Commit

Permalink
add homepage gallery to the cagetory
Browse files Browse the repository at this point in the history
  • Loading branch information
samchan952 committed Jun 17, 2023
1 parent 0438efd commit 5b32b3f
Show file tree
Hide file tree
Showing 8 changed files with 188 additions and 12 deletions.
13 changes: 13 additions & 0 deletions app/Http/Livewire/Base/GalleryCagetoryComponent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace App\Http\Livewire\Base;

use Livewire\Component;

class GalleryCagetoryComponent extends Component
{
public function render()
{
return view('livewire.base.gallery-cagetory-component');
}
}
Binary file added public/assets/images/img1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/images/img2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/images/img3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/views/layouts/guest.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</head>
<body>
@livewire('nav.header-component')
<div class="font-sans text-gray-900 antialiased">
<div class="font-sans text-gray-900 antialiased mb-5">
{{ $slot }}
</div>
@livewire('nav.footer-component')
Expand Down
170 changes: 170 additions & 0 deletions resources/views/livewire/base/gallery-cagetory-component.blade.php

Large diffs are not rendered by default.

10 changes: 2 additions & 8 deletions resources/views/livewire/nav/header-component.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,12 @@
<span class="self-center text-md font-semibold whitespace-nowrap dark:text-white lg:text-2xl">Propect Stationery Centre</span>
</a>
<button data-collapse-toggle="navbar-default" type="button"
class="inline-flex items-center p-2 ml-3 text-sm text-gray-500 rounded-lg md:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600"
class="inline-flex items-center p-2 ml-3 text-sm text-gray-500 rounded-lg md:hidden hover:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-gray-200 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-600 duration-300"
aria-controls="navbar-default" aria-expanded="false">
<span class="sr-only">Open main menu</span>
{{-- <svg class="w-6 h-6" aria-hidden="true" fill="currentColor" viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z"
clip-rule="evenodd"></path>
</svg> --}}
<img src="{{ asset('assets/svg/pencil.svg') }}" class="h-8 w-8" alt="" srcset="">
</button>
<div class=" hidden w-full md:block md:w-auto" id="navbar-default">
<div class=" hidden w-full md:block md:w-auto duration-300" id="navbar-default">
<ul
class="font-medium flex flex-col p-4 md:p-0 mt-4 border border-gray-100 rounded-lg bg-gray-50 md:flex-row md:space-x-8 md:mt-0 md:border-0 md:md:bg-transparent dark:bg-gray-800 md:dark:bg-gray-900 dark:border-gray-700">
<li>
Expand Down
5 changes: 2 additions & 3 deletions resources/views/welcome.blade.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
<x-guest-layout>

<div class="py-12">
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
<div class="bg-white overflow-hidden shadow-xl sm:rounded-lg">
<x-welcome />
@livewire('base.gallery-cagetory-component')
</div>
</div>
</div>
</x-guest-layout>
</x-guest-layout>

0 comments on commit 5b32b3f

Please sign in to comment.