- Agregada funcion de cambio de tema para el modo claro
STYLE:
- Agregadas variantes de estilos, clases en modo claro y oscuro
- Quedan pendientes mas componentes a estilizar
This commit is contained in:
Bryam105
2026-02-21 21:16:00 -03:30
parent 8448a9e43b
commit 850a55f257
10 changed files with 84 additions and 51 deletions
+1 -1
View File
@@ -276,7 +276,7 @@ class ProductSeeder extends Seeder
'cost' => 0, 'cost' => 0,
'stock_quantity' => 999, 'stock_quantity' => 999,
'min_stock_alert' => 0, 'min_stock_alert' => 0,
'type' => 'service', 'type' => 'clothing',
], ],
]; ];
+7 -3
View File
@@ -3,6 +3,7 @@
/* 2. Importar Tailwind (v4) */ /* 2. Importar Tailwind (v4) */
@import "tailwindcss"; @import "tailwindcss";
@custom-variant dark (&:is(.dark *));
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php'; @source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php'; @source '../../storage/framework/views/*.php';
@source '../**/*.blade.php'; @source '../**/*.blade.php';
@@ -25,13 +26,16 @@
/* 4. Patrón de fondo estilo "Técnico" */ /* 4. Patrón de fondo estilo "Técnico" */
.bg-grid-pattern { .bg-grid-pattern {
/* CAMBIO: Usamos rgba(255,255,255, 0.1) para que las líneas sean claras sobre fondo oscuro */ background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
background-size: 40px 40px; background-size: 40px 40px;
background-position: center; background-position: center;
} }
:is(.dark) .bg-grid-pattern {
background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}
/* 5. Personalización del Scrollbar */ /* 5. Personalización del Scrollbar */
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 8px; width: 8px;
+5 -5
View File
@@ -8,19 +8,19 @@
@if ($products->count() > 0) @if ($products->count() > 0)
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
@foreach ($products as $product) @foreach ($products as $product)
<div class="group p-4 border border-neutral-800 rounded-xl hover:border-neon-lime hover:-translate-y-1 transition-all duration-300"> <div class="group p-4 border bg-neutral-100/30 dark:bg-neutral-950/30 border-neutral-200 dark:border-neutral-800 rounded-xl hover:border-lime-500 hover:dark:border-neon-lime hover:-translate-y-1 transition-all duration-300">
{{-- Imagen si existe --}} {{-- Imagen si existe --}}
@if (!empty($product->image_path)) @if (!empty($product->image_path))
<img src="{{ asset('storage/' . $product->image_path) }}" alt="{{ $product->name }}" <img src="{{ asset('storage/' . $product->image_path) }}" alt="{{ $product->name }}"
class="w-full h-40 object-cover rounded mb-4"> class="w-full h-40 object-cover rounded mb-4">
@else @else
<div class="w-full border border-neutral-800 h-40 bg-stone-900 flex items-center justify-center rounded mb-4"> <div class="w-full border border-neutral-200 dark:border-neutral-800 h-40 bg-stone-100 dark:bg-stone-900 flex items-center justify-center rounded mb-4">
<span class="text-neon-lime text-md uppercase font-bold">Sin imagen</span> <span class="text-lime-500 dark:text-neon-lime text-md uppercase font-bold">Sin imagen</span>
</div> </div>
@endif @endif
{{-- Nombre --}} {{-- Nombre --}}
<h2 class="text-lg font-semibold text-white">{{ $product->name }}</h2> <h2 class="text-lg font-semibold text-black dark:text-white">{{ $product->name }}</h2>
{{-- Descripción corta --}} {{-- Descripción corta --}}
<div class="h-10 overflow-y-auto [scrollbar-width:none]"> <div class="h-10 overflow-y-auto [scrollbar-width:none]">
@@ -44,7 +44,7 @@
@endforeach @endforeach
</div> </div>
@else @else
<p class="text-center text-gray-600 mt-10">No hay productos disponibles.</p> <p class="text-center text-gray-400 dark:text-gray-600 mt-10">No hay productos disponibles.</p>
@endif @endif
<div class="mt-3"> <div class="mt-3">
+7 -7
View File
@@ -1,16 +1,16 @@
<footer class="bg-neutral-900 border-t border-white/5 mt-auto z-10 w-full"> <footer class="bg-slate-100 dark:bg-neutral-900 border-t border-black/5 dark:border-white/5 mt-auto z-10 w-full">
<div class="w-full max-w-7xl mx-auto p-8"> <div class="w-full max-w-7xl mx-auto p-8">
<div class="sm:flex sm:items-center sm:justify-between"> <div class="sm:flex sm:items-center sm:justify-between">
<a href="{{ url('/') }}" class="flex items-center mb-4 sm:mb-0 space-x-3 rtl:space-x-reverse grayscale opacity-70 hover:grayscale-0 hover:opacity-100 transition-all"> <a href="{{ url('/') }}" class="flex items-center mb-4 sm:mb-0 space-x-3 rtl:space-x-reverse grayscale opacity-70 hover:grayscale-0 hover:opacity-100 transition-all">
<svg class="h-8 text-neon-lime" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2L2 7l10 5 10-5-10-5zm0 9l2.5-1.25L12 8.5l-2.5 1.25L12 11zm0 2.5l-5-2.5-5 2.5L12 22l10-8.5-5-2.5-5 2.5z"/></svg> <svg class="h-8 text-lime-600 dark:text-neon-lime" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2L2 7l10 5 10-5-10-5zm0 9l2.5-1.25L12 8.5l-2.5 1.25L12 11zm0 2.5l-5-2.5-5 2.5L12 22l10-8.5-5-2.5-5 2.5z"/></svg>
<span class="self-center text-xl font-bold whitespace-nowrap text-white">Cicles Lauck</span> <span class="self-center text-xl font-bold whitespace-nowrap dark:text-white">Cicles Lauck</span>
</a> </a>
<ul class="flex flex-wrap items-center mb-6 text-sm font-medium text-gray-500 sm:mb-0"> <ul class="flex flex-wrap items-center mb-6 text-sm font-medium text-gray-500 sm:mb-0">
<li><a href="#" class="hover:text-neon-lime hover:underline me-4 md:me-6 transition-colors">Soporte</a></li> <li><a href="#" class="hover:text-lime-600 hover:dark:text-neon-lime hover:underline me-4 md:me-6 transition-colors">Soporte</a></li>
<li><a href="#" class="hover:text-neon-lime hover:underline transition-colors">Contacto</a></li> <li><a href="#" class="hover:text-lime-600 hover:dark:text-neon-lime hover:underline transition-colors">Contacto</a></li>
</ul> </ul>
</div> </div>
<hr class="my-6 border-neutral-800 sm:mx-auto lg:my-8"> <hr class="my-6 border-neutral-200 dark:border-neutral-800 sm:mx-auto lg:my-8">
<span class="block text-sm text-gray-600 sm:text-center">© {{ date('Y') }} <a href="#" class="hover:text-neon-lime transition-colors">Lauck Systems™</a>.</span> <span class="block text-sm text-gray-600 sm:text-center">© {{ date('Y') }} <a href="#" class="hover:text-lime-700 hover:dark:text-neon-lime transition-colors">Lauck Systems™</a>.</span>
</div> </div>
</footer> </footer>
+22 -1
View File
@@ -4,6 +4,25 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="csrf-token" content="{{ csrf_token() }}"> <meta name="csrf-token" content="{{ csrf_token() }}">
<script type="module">
// Revisamos el almacenamiento local o las preferencias del sistema
if (localStorage.getItem('theme') === 'dark' || (!('theme' in localStorage) && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
document.documentElement.classList.add('dark');
} else {
document.documentElement.classList.remove('dark');
}
// Función global para cambiar el tema desde cualquier botón
window.toggleTheme = function() {
if (document.documentElement.classList.contains('dark')) {
document.documentElement.classList.remove('dark');
localStorage.setItem('theme', 'light');
} else {
document.documentElement.classList.add('dark');
localStorage.setItem('theme', 'dark');
}
}
</script>
<title>{{ $title ?? 'Lauck Dashboard' }}</title> <title>{{ $title ?? 'Lauck Dashboard' }}</title>
@stack('styles') @stack('styles')
@@ -11,7 +30,7 @@
@vite(['resources/css/app.css', 'resources/js/app.js']) @vite(['resources/css/app.css', 'resources/js/app.js'])
</head> </head>
<body class="bg-dark-bg text-gray-300 font-sans antialiased min-h-screen flex flex-col relative overflow-x-hidden"> <body class="bg-gray-50 dark:bg-dark-bg text-gray-900 dark:text-gray-300 font-sans antialiased min-h-screen flex flex-col relative transition-colors overflow-x-hidden">
<!-- Fondo grilla global --> <!-- Fondo grilla global -->
<div class="inset-0 bg-grid-pattern opacity-[0.15] z-0 pointer-events-none fixed"></div> <div class="inset-0 bg-grid-pattern opacity-[0.15] z-0 pointer-events-none fixed"></div>
@@ -35,6 +54,8 @@
if(btn && menu) { if(btn && menu) {
btn.addEventListener('click', () => menu.classList.toggle('hidden')); btn.addEventListener('click', () => menu.classList.toggle('hidden'));
} }
</script> </script>
@stack('scripts') @stack('scripts')
+20 -13
View File
@@ -1,4 +1,4 @@
<nav class="bg-neutral-900/90 backdrop-blur-md border-b border-white/10 w-full z-50 sticky top-0"> <nav class="bg-slate-100/90 dark:bg-neutral-900/90 backdrop-blur-md border-b border-black/10 dark:border-white/10 w-full z-50 sticky top-0">
<div class="max-w-7xl flex flex-wrap items-center justify-between mx-auto p-4"> <div class="max-w-7xl flex flex-wrap items-center justify-between mx-auto p-4">
<!-- Logo --> <!-- Logo -->
@@ -8,11 +8,11 @@
@guest @guest
<a href="{{ url('/') }}" class="flex items-center space-x-3 rtl:space-x-reverse group"> <a href="{{ url('/') }}" class="flex items-center space-x-3 rtl:space-x-reverse group">
@endguest @endguest
<div class="h-10 w-10 bg-neutral-800 rounded-full flex items-center justify-center border-2 border-transparent group-hover:border-neon-lime transition-all duration-300"> <div class="h-10 w-10 bg-slate-200 dark:bg-neutral-800 rounded-full flex items-center justify-center border-2 border-transparent group-hover:border-lime-700 group-hover:dark:border-neon-lime transition-all duration-300">
<svg class="w-6 h-6 text-white group-hover:text-neon-lime transition-colors" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg> <svg class="w-6 h-6 dark:text-white group-hover:text-lime-700 group-hover:dark:text-neon-lime transition-colors" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg>
</div> </div>
<span class="self-center text-2xl font-black whitespace-nowrap text-white italic tracking-wide group-hover:text-neon-lime transition-colors duration-300"> <span class="self-center text-2xl font-black whitespace-nowrap dark:text-white italic tracking-wide group-hover:text-lime-700 group-hover:dark:text-neon-lime transition-colors duration-300">
LAUCK<span class="text-neon-lime font-light not-italic">SYS</span> LAUCK<span class="text-lime-700 dark:text-neon-lime font-light not-italic">SYS</span>
</span> </span>
</a> </a>
@@ -31,35 +31,42 @@
@auth @auth
<li> <li>
<a href="{{ url('/dashboard') }}" <a href="{{ url('/dashboard') }}"
class="block py-2 px-3 md:p-0 transition-colors {{ request()->is('dashboard') ? 'text-neon-lime border-b-2 border-neon-lime' : 'text-white hover:text-neon-lime' }}"> class="block py-2 px-3 md:p-0 transition-colors {{ request()->is('dashboard') ? 'text-lime-600 dark:text-neon-lime border-b-2 border-lime-600 dark:border-neon-lime' : 'dark:text-white hover:text-lime-600 hover:dark:text-neon-lime' }}">
Inicio Inicio
</a> </a>
</li> </li>
<li> <li>
<a href="{{ url('/productos') }}" <a href="{{ url('/productos') }}"
class="block py-2 px-3 md:p-0 transition-colors {{ request()->is('productos*') ? 'text-neon-lime border-b-2 border-neon-lime' : 'text-white hover:text-neon-lime' }}"> class="block py-2 px-3 md:p-0 transition-colors {{ request()->is('productos*') ? 'text-lime-600 dark:text-neon-lime border-b-2 border-lime-600 dark:border-neon-lime' : 'dark:text-white hover:text-lime-600 hover:dark:text-neon-lime' }}">
Stock Stock
</a> </a>
</li> </li>
<li> <li>
<a href="{{ route('taller.index') }}" <a href="{{ route('taller.index') }}"
class="block py-2 px-3 md:p-0 transition-colors {{ request()->is('taller*') ? 'text-neon-lime border-b-2 border-neon-lime' : 'text-white hover:text-neon-lime' }}"> class="block py-2 px-3 md:p-0 transition-colors {{ request()->is('taller*') ? 'text-lime-600 dark:text-neon-lime border-b-2 border-lime-600 dark:border-neon-lime' : 'dark:text-white hover:text-lime-600 hover:dark:text-neon-lime' }}">
Taller Taller
</a> </a>
</li> </li>
<li> <li>
<a href="{{ route('sales.index') }}" <a href="{{ route('sales.index') }}"
class="block py-2 px-3 md:p-0 transition-colors {{ request()->is('sales*') ? 'text-neon-lime border-b-2 border-neon-lime' : 'text-white hover:text-neon-lime' }}"> class="block py-2 px-3 md:p-0 transition-colors {{ request()->is('sales*') ? 'text-lime-600 dark:text-neon-lime border-b-2 border-lime-600 dark:border-neon-lime' : 'dark:text-white hover:text-lime-600 hover:dark:text-neon-lime' }}">
Ventas Ventas
</a> </a>
</li> </li>
@endauth @endauth
<button onclick="toggleTheme()" class="p-2 text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white transition-colors rounded-full hover:bg-gray-200 dark:hover:bg-neutral-800">
<!-- Icono de Sol (Se muestra en modo oscuro) -->
<svg class="w-5 h-5 hidden dark:block" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"></path></svg>
<!-- Icono de Luna (Se muestra en modo claro) -->
<svg class="w-5 h-5 block dark:hidden" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"></path></svg>
</button>
{{-- LÓGICA DE VISITANTE (GUEST) --}} {{-- LÓGICA DE VISITANTE (GUEST) --}}
@guest @guest
<li> <li>
<a href="{{ url('/catalogo') }}" <a href="{{ url('/catalogo') }}"
class="block py-2 px-3 md:p-0 transition-colors {{ request()->is('catalogo*') ? 'text-neon-lime border-b-2 border-neon-lime' : 'text-white hover:text-neon-lime' }}"> class="block py-2 px-3 md:p-0 transition-colors {{ request()->is('catalogo*') ? 'text-lime-600 dark:text-neon-lime border-b-2 border-lime-600 dark:border-neon-lime' : 'dark:text-white hover:text-lime-600 hover:dark:text-neon-lime' }}">
Catalogo Catalogo
</a> </a>
</li> </li>
@@ -69,9 +76,9 @@
<form action="{{ route('catalogo.index') }}" method="GET"> <form action="{{ route('catalogo.index') }}" method="GET">
<div class="relative"> <div class="relative">
<input type="text" name="search" <input type="text" name="search"
class="block w-full md:w-48 p-2 ps-3 text-xs text-white border border-neutral-600 rounded-full bg-neutral-800/50 focus:ring-neon-lime focus:border-neon-lime placeholder-gray-500 transition-all focus:w-full md:focus:w-64" class="block w-full md:w-48 p-2 ps-3 text-xs dark:text-white border border-slate-400 dark:border-neutral-600 rounded-full bg-slate-300/50 dark:bg-neutral-800/50 focus:ring-neon-lime focus:border-neon-lime placeholder-gray-500 transition-all focus:w-full md:focus:w-64"
placeholder="Buscar productos..."> placeholder="Buscar productos...">
<button type="submit" class="absolute top-0 end-0 p-2 text-sm font-medium h-full text-white rounded-e-lg hover:text-neon-lime"> <button type="submit" class="absolute top-0 end-0 p-2 text-sm font-medium h-full dark:text-white rounded-e-lg hover:text-lime-600 hover:dark:text-neon-lime">
<svg class="w-4 h-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20"> <svg class="w-4 h-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 20">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"/> <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m19 19-4-4m0-7A7 7 0 1 1 1 8a7 7 0 0 1 14 0Z"/>
</svg> </svg>
@@ -83,7 +90,7 @@
<!-- Botón Login Resaltado --> <!-- Botón Login Resaltado -->
<li> <li>
<a href="{{ route('login') }}" <a href="{{ route('login') }}"
class="block py-2 px-5 text-center text-neutral-900 bg-neon-lime font-black rounded hover:bg-[#b3e600] transition-colors uppercase tracking-wider text-xs shadow-lg shadow-neon-lime/20 hover:shadow-neon-lime/40 transform hover:-translate-y-0.5 duration-200"> class="block py-2 px-5 text-center text-neon-lime dark:text-neutral-900 bg-neutral-900 dark:bg-neon-lime font-black rounded hover:dark:bg-[#b3e600] transition-colors uppercase tracking-wider text-xs shadow-lg shadow-gray-300 dark:shadow-neon-lime/20 hover:dark:shadow-neon-lime/40 transform hover:-translate-y-0.5 duration-200">
Ingresar Ingresar
</a> </a>
</li> </li>
@@ -1,11 +1,11 @@
@props(['subtitle', 'title', 'highlight' => null]) @props(['subtitle', 'title', 'highlight' => null])
<div class="w-full text-left mb-10 border-l-4 border-neon-lime pl-6 py-2"> <div class="w-full text-left mb-10 border-l-4 border-lime-600 dark:border-neon-lime pl-6 py-2">
<h2 class="text-neutral-400 text-sm font-bold uppercase tracking-widest mb-1">{{ $subtitle }}</h2> <h2 class="text-neutral-600 dark:text-neutral-400 text-sm font-bold uppercase tracking-widest mb-1">{{ $subtitle }}</h2>
<h1 class="font-black text-4xl md:text-5xl text-white uppercase italic"> <h1 class="font-black text-4xl md:text-5xl text-black dark:text-white uppercase italic">
{{ $title }} {{ $title }}
@if($highlight) @if($highlight)
<span class="text-transparent bg-clip-text bg-gradient-to-r from-white to-gray-500 pe-2">{{ $highlight }}</span> <span class="text-transparent bg-clip-text bg-gradient-to-r from-neutral-900 dark:from-white to-lime-500 dark:to-gray-500 pe-2">{{ $highlight }}</span>
@endif @endif
</h1> </h1>
</div> </div>
@@ -1,10 +1,10 @@
@props(['items']) @props(['items'])
<div class="relative w-full overflow-hidden rounded-xl border border-neutral-800 bg-panel-bg shadow-xl group" id="lauck-carousel"> <div class="relative w-full overflow-hidden rounded-xl border border-neutral-200 dark:border-neutral-800 bg-slate-50 dark:bg-panel-bg shadow-xl group" id="lauck-carousel">
<!-- Título Flotante (Opcional) --> <!-- Título Flotante (Opcional) -->
<div class="absolute top-4 left-6 z-10 bg-black/50 backdrop-blur-sm px-3 py-1 rounded border border-neon-lime/30"> <div class="absolute top-4 left-6 z-10 bg-neon-lime/50 dark:bg-black/50 backdrop-blur-sm px-3 py-1 rounded border border-black/30 dark:border-neon-lime/30">
<span class="text-xs font-bold text-neon-lime uppercase tracking-widest">Destacados</span> <span class="text-xs font-bold text-black dark:text-neon-lime uppercase tracking-widest">Destacados</span>
</div> </div>
<!-- Contenedor de Slides (Track) --> <!-- Contenedor de Slides (Track) -->
@@ -13,40 +13,40 @@
<div class="w-full flex-shrink-0 flex flex-col md:flex-row h-full relative"> <div class="w-full flex-shrink-0 flex flex-col md:flex-row h-full relative">
<!-- Imagen / Visual (Izquierda o Fondo) --> <!-- Imagen / Visual (Izquierda o Fondo) -->
<div class="w-full md:w-1/2 bg-neutral-800 flex items-center justify-center relative overflow-hidden"> <div class="w-full md:w-1/2 bg-neutral-200 dark:bg-neutral-800 flex items-center justify-center relative overflow-hidden">
<!-- Decoración de fondo --> <!-- Decoración de fondo -->
<div class="absolute inset-0 bg-grid-pattern opacity-10"></div> <div class="absolute inset-0 bg-grid-pattern opacity-10"></div>
<!-- Icono Gigante (Placeholder de Bici) --> <!-- Icono Gigante (Placeholder de Bici) -->
<div class="text-neutral-700 transform group-hover:scale-110 transition-transform duration-700"> <div class="text-neutral-300 dark:text-neutral-700 transform group-hover:scale-110 transition-transform duration-700">
@if($item->image_path) @if($item->image_path)
<img src="{{ asset('storage/' . $item->image_path) }}" alt="{{ $item->name }}" class="w-full h-full object-cover"> <img src="{{ asset('storage/' . $item->image_path) }}" alt="{{ $item->name }}" class="w-full h-full object-cover">
@else @else
<!-- Placeholder si no tiene foto --> <!-- Placeholder si no tiene foto -->
<div class="w-full h-full flex items-center justify-center bg-neutral-800"> <div class="w-full h-full flex items-center justify-center bg-neutral-200 dark:bg-neutral-800">
<svg class="w-48 h-48" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="0.5" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path></svg> <svg class="w-48 h-48" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="0.5" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"></path></svg>
</div> </div>
@endif @endif
</div> </div>
<!-- Precio Flotante --> <!-- Precio Flotante -->
<div class="absolute bottom-4 left-4 bg-neon-lime text-neutral-900 font-black px-4 py-2 rounded-lg text-xl shadow-lg shadow-neon-lime/20"> <div class="absolute bottom-4 left-4 bg-neutral-900 dark:bg-neon-lime text-neon-lime dark:text-neutral-900 font-black px-4 py-2 rounded-lg text-xl shadow-lg shadow-gray-800/10 dark:shadow-neon-lime/20">
${{ number_format($item->price, 0, ',', '.') }} ${{ number_format($item->price, 0, ',', '.') }}
</div> </div>
</div> </div>
<!-- Info (Derecha) --> <!-- Info (Derecha) -->
<div class="w-full md:w-1/2 p-8 md:p-12 flex flex-col justify-center bg-gradient-to-br from-panel-bg to-neutral-900"> <div class="w-full md:w-1/2 p-8 md:p-12 flex flex-col justify-center bg-gradient-to-br from-gray-200 dark:from-panel-bg to-neutral-100 dark:to-neutral-900">
<h3 class="text-sm font-bold text-gray-400 uppercase tracking-widest mb-2">{{ $item->sku }}</h3> <h3 class="text-sm font-bold text-gray-600 dark:text-gray-400 uppercase tracking-widest mb-2">{{ $item->sku }}</h3>
<h2 class="text-3xl md:text-4xl font-black text-white italic mb-4 leading-tight"> <h2 class="text-3xl md:text-4xl font-black text-black dark:text-white italic mb-4 leading-tight">
{{ $item->name }} {{ $item->name }}
</h2> </h2>
<p class="text-gray-400 text-sm md:text-base mb-8 line-clamp-3"> <p class="text-gray-600 dark:text-gray-400 text-sm md:text-base mb-8 line-clamp-3">
{{ $item->description ?? 'Una bicicleta diseñada para el máximo rendimiento en todo terreno. Consultar especificaciones técnicas en el catálogo.' }} {{ $item->description ?? 'Una bicicleta diseñada para el máximo rendimiento en todo terreno. Consultar especificaciones técnicas en el catálogo.' }}
</p> </p>
<div class="flex gap-4"> <div class="flex gap-4">
<a href="{{ route('catalogo.show', $item) }}" class="px-6 py-3 bg-white text-neutral-900 font-bold uppercase tracking-wider rounded hover:bg-gray-200 transition-colors"> <a href="{{ route('catalogo.show', $item) }}" class="px-6 py-3 bg-black dark:bg-white text-neutral-100 dark:text-neutral-900 font-bold uppercase tracking-wider rounded hover:bg-neutral-800 hover:dark:bg-gray-200 transition-colors">
Ver Detalles Ver Detalles
</a> </a>
</div> </div>
@@ -54,7 +54,7 @@
</div> </div>
@empty @empty
<!-- Slide de Fallback por si no hay datos --> <!-- Slide de Fallback por si no hay datos -->
<div class="w-full flex-shrink-0 flex items-center justify-center h-full bg-neutral-800 text-gray-500"> <div class="w-full flex-shrink-0 flex items-center justify-center h-full bg-neutral-200 dark:bg-neutral-800 text-gray-500">
<p>No hay productos destacados disponibles.</p> <p>No hay productos destacados disponibles.</p>
</div> </div>
@endforelse @endforelse
@@ -72,7 +72,7 @@
<!-- Indicadores (Puntos) --> <!-- Indicadores (Puntos) -->
<div class="absolute bottom-4 left-1/2 transform -translate-x-1/2 flex space-x-2 z-20"> <div class="absolute bottom-4 left-1/2 transform -translate-x-1/2 flex space-x-2 z-20">
@foreach($items as $index => $item) @foreach($items as $index => $item)
<button class="carousel-dot w-3 h-3 rounded-full bg-white/20 hover:bg-neon-lime transition-all" data-index="{{ $index }}"></button> <button class="carousel-dot w-3 h-3 rounded-full bg-black/20 dark:bg-white/20 hover:bg-lime-500 hover:dark:bg-neon-lime transition-all" data-index="{{ $index }}"></button>
@endforeach @endforeach
</div> </div>
@@ -91,8 +91,8 @@
$track.css('transform', `translateX(${translateX}%)`); $track.css('transform', `translateX(${translateX}%)`);
// Actualizar puntos // Actualizar puntos
$('.carousel-dot').removeClass('bg-neon-lime scale-125').addClass('bg-white/20'); $('.carousel-dot').removeClass('bg-lime-500 dark:bg-neon-lime scale-125').addClass('bg-black/20 dark:bg-white/20');
$(`.carousel-dot[data-index="${currentIndex}"]`).addClass('bg-neon-lime scale-125').removeClass('bg-white/20'); $(`.carousel-dot[data-index="${currentIndex}"]`).addClass('bg-lime-500 dark:bg-neon-lime scale-125').removeClass('bg-black/20 dark:bg-white/20');
} }
function nextSlide() { function nextSlide() {
+1 -1
View File
@@ -11,7 +11,7 @@
/> />
--> -->
<div class="bg-zinc-900 p-8 rounded-xl shadow-lg w-full max-w-md border-2 border-gray-500"> <div class="bg-panel-bg p-8 rounded-xl shadow-lg w-full max-w-md border border-neutral-700">
<form action="{{ route('login.attempt') }}" method="POST" class="space-y-5"> <form action="{{ route('login.attempt') }}" method="POST" class="space-y-5">
@csrf @csrf
{{-- No muestra los errores, ver --}} {{-- No muestra los errores, ver --}}
+1
View File
@@ -1,5 +1,6 @@
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
export default { export default {
darkMode: "selector",
content: [ content: [
"./resources/**/*.blade.php", "./resources/**/*.blade.php",
"./resources/**/*.js", "./resources/**/*.js",