creo que por ahora voy bien

This commit is contained in:
2025-03-03 04:27:19 -03:00
parent 97b97c0335
commit caa7784247
13 changed files with 224 additions and 102 deletions

View File

@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@yield('title', 'Recetario')</title>
<script src="https://unpkg.com/htmx.org@2.0.4" integrity="sha384-HGfztofotfshcF7+8n44JQL2oJmowVChPTg48S+jvZoztPfvwD79OC/LTtG6dMp+" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
</head>
<body class="bg-gray-100">
<!-- Header -->
<header class="bg-green-600 text-white p-6">
<h1 class="text-3xl font-bold">Recetario Fede</h1>
<nav class="mt-4">
<ul class="flex space-x-4">
<li><a href="/" class="hover:underline">Inicio</a></li>
<li><a href="/recetero/0" class="hover:underline">Recetas</a></li>
<li><a href="/about" class="hover:underline">Sobre el Proyecto</a></li>
@if (Route::has('login'))
@auth
<li><a href="{{ url('/dashboard') }}">Dashboard</a></li>
@else
<li><a href="{{ route('login') }}">Log in</a></li>
@if (Route::has('register'))
<li><a href="{{ route('register') }}">Register</a></li>
@endif
@endauth
@endif
</ul>
</nav>
</header>
<!-- Main Content -->
<main class="p-6">
@yield('content')
</main>
<!-- Footer -->
<footer class="bg-gray-800 text-white p-4 text-center">
<p>&copy; {{ date('Y') }} Recetario Fede</p>
</footer>
</body>
</html>