Commit 9efcf680 authored by LucBUTGH's avatar LucBUTGH
Browse files

fix: divings

parents 22247427 6cdd791b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@ public function index(): View
                    ->on('car_registration.dg_number', '=', 'car_diving_group.dg_number');
            })
            ->join('car_diving_session','car_registration.ds_code','=','car_diving_session.ds_code')
            ->where('car_diving_session.ds_date','>=',date("Y").'-00-00')
            ->where('car_user.US_ID', $userId)
            ->orderBy('ds_date','desc')
            ->count();
+46 −0
Original line number Diff line number Diff line
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300&display=swap');


html{
    background-image: url("/images/background-homepage.jpg");
}

.background-image{
    filter: blur(5px);
}

.center-box{
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.22);
    width: 60em;
    height: 25em;
    border-radius: 30px;
    margin: auto;
    margin-top: 7em ;
    display: block;
    text-align: center;
    backdrop-filter: blur(5px);
}

h1{
    font-family: 'Space Grotesk', sans-serif;
    font-size: 55px;
    color: white;
    font-weight: bold;
}

p{
    font-family: 'Montserrat', sans-serif;
    margin-top: 30px;
    font-size: 30px;
    color: white;
}

button{
    margin-top: 50px;
    background-color: #f7c36f;
    border-radius: 10px;
    width: 300px;
    height: 40px;
}
 No newline at end of file
+193 KiB
Loading image diff...
+1 −1
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@
                    </div>
                    <ul class="py-2" aria-labelledby="user-menu-button">
                        <li>
                            <a href="#" class="block px-4 py-2 text-sm hover:bg-gray-600 text-gray-200 hover:text-white">Historique de mes plongées</a>
                            <a href="{{route('divings')}}" class="block px-4 py-2 text-sm hover:bg-gray-600 text-gray-200 hover:text-white">Historique de mes plongées</a>
                        </li>
                        <li>
                            <a href="{{ route('logout') }}" class="block px-4 py-2 text-sm hover:bg-gray-600 text-gray-200 hover:text-white">Se déconnecter</a>
+12 −2
Original line number Diff line number Diff line
<x-layout>
    @if(!session()->has('user'))
            Vous devez être connecté pour accéder à cette page.
        <link rel="stylesheet" href="/css/homepage.css">
        <div class="center-box">
            <h1>Carantec Nautisme, plongeons!</h1>
            <p>
                Carantec Nautisme vous accompagne dans vos plongées. 
                Nos adhérent.e.s propose différentes activités pour tout les niveaux !
            </p>
            <button onclick="location.href='{{ route('login') }}'">
                Je me connecte
            </button>
        </div>
    @else
        <x-page-title>Tableau de bord</x-page-title>
        <h2 class="text-2xl font-semibold text-gray-800">Bonjour {{ session('user')->US_FIRST_NAME . " " . session('user')->US_NAME . "," }}</h2>
        <div class="flex flex-row justify-evenly mt-10">
            <x-square-button bgColor="bg-[#e37373]" textColor="text-black" textSubtitle="Mes plongées" link="#">
            <x-square-button bgColor="bg-[#e37373]" textColor="text-black" textSubtitle="Mes plongées" link="{{ route('divings')}}">
                <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-12 h-12">
                    <path stroke-linecap="round" stroke-linejoin="round" d="M8.25 6.75h12M8.25 12h12m-12 5.25h12M3.75 6.75h.007v.008H3.75V6.75Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0ZM3.75 12h.007v.008H3.75V12Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm-.375 5.25h.007v.008H3.75v-.008Zm.375 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Z" />
                </svg>
Loading