2025-04-09 23:03:16 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
|
|
|
|
2025-04-12 17:18:33 +03:00
|
|
|
<title>@yield('title', config('app.name', 'Laravel'))</title>
|
2025-04-09 23:03:16 +03:00
|
|
|
|
|
|
|
|
<!-- Fonts -->
|
|
|
|
|
<link rel="preconnect" href="https://fonts.bunny.net">
|
|
|
|
|
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
|
2025-05-03 20:50:18 +03:00
|
|
|
|
2025-04-12 17:18:33 +03:00
|
|
|
<!-- Font Awesome -->
|
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
|
2025-04-09 23:03:16 +03:00
|
|
|
|
|
|
|
|
<!-- Scripts -->
|
|
|
|
|
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
2025-04-12 17:18:33 +03:00
|
|
|
|
|
|
|
|
<!-- Bootstrap CSS -->
|
|
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
2025-06-13 23:06:13 +03:00
|
|
|
<style>
|
|
|
|
|
:root {
|
|
|
|
|
--primary: #7F00FF;
|
|
|
|
|
--accent: #00C9FF;
|
|
|
|
|
--background: #121212;
|
|
|
|
|
--text: #EAEAEA;
|
|
|
|
|
}
|
|
|
|
|
body {
|
|
|
|
|
font-family: 'Inter', sans-serif;
|
|
|
|
|
background-color: var(--background);
|
|
|
|
|
color: var(--text);
|
|
|
|
|
}
|
|
|
|
|
.gradient-text {
|
|
|
|
|
background: linear-gradient(90deg, var(--primary), var(--accent));
|
|
|
|
|
-webkit-background-clip: text;
|
|
|
|
|
-webkit-text-fill-color: transparent;
|
|
|
|
|
}
|
|
|
|
|
.gradient-border {
|
|
|
|
|
border: 2px solid transparent;
|
|
|
|
|
background: linear-gradient(var(--background), var(--background)) padding-box,
|
|
|
|
|
linear-gradient(90deg, var(--primary), var(--accent)) border-box;
|
|
|
|
|
}
|
2025-07-12 01:44:39 +03:00
|
|
|
.navbar {
|
|
|
|
|
background-color: rgba(18, 18, 18, 0.95);
|
|
|
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
|
|
|
|
|
padding: 0.75rem 1rem;
|
|
|
|
|
}
|
|
|
|
|
.navbar-brand {
|
|
|
|
|
font-size: 1.5rem;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
.nav-link {
|
|
|
|
|
color: var(--text);
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
padding: 0.5rem 1rem;
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
.nav-link:hover, .nav-link.active {
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
}
|
|
|
|
|
.btn-gradient {
|
|
|
|
|
background: linear-gradient(90deg, var(--primary), var(--accent));
|
|
|
|
|
color: white;
|
|
|
|
|
border: none;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
padding: 0.5rem 1.25rem;
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
.btn-gradient:hover {
|
|
|
|
|
opacity: 0.9;
|
|
|
|
|
transform: translateY(-1px);
|
|
|
|
|
color: white;
|
|
|
|
|
}
|
|
|
|
|
.btn-outline-light {
|
|
|
|
|
border-color: rgba(255, 255, 255, 0.3);
|
|
|
|
|
color: var(--text);
|
|
|
|
|
}
|
|
|
|
|
.btn-outline-light:hover {
|
|
|
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
|
|
|
border-color: var(--accent);
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
}
|
|
|
|
|
.dropdown-menu {
|
|
|
|
|
background-color: #1a1a1a;
|
|
|
|
|
border: 1px solid #333;
|
|
|
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
|
|
|
|
|
}
|
|
|
|
|
.dropdown-item {
|
|
|
|
|
color: var(--text);
|
|
|
|
|
}
|
|
|
|
|
.dropdown-item:hover {
|
|
|
|
|
background-color: #2a2a2a;
|
|
|
|
|
color: var(--accent);
|
|
|
|
|
}
|
|
|
|
|
.dropdown-divider {
|
|
|
|
|
border-top: 1px solid #333;
|
|
|
|
|
}
|
|
|
|
|
.form-control.bg-dark {
|
|
|
|
|
background-color: rgba(30, 30, 30, 0.8);
|
|
|
|
|
border: 1px solid #333;
|
|
|
|
|
color: var(--text);
|
|
|
|
|
transition: all 0.3s ease;
|
|
|
|
|
}
|
|
|
|
|
.form-control.bg-dark:focus {
|
|
|
|
|
background-color: rgba(40, 40, 40, 0.9);
|
|
|
|
|
border-color: var(--accent);
|
|
|
|
|
box-shadow: 0 0 0 0.25rem rgba(0, 201, 255, 0.25);
|
|
|
|
|
}
|
|
|
|
|
.input-group {
|
|
|
|
|
width: 250px;
|
|
|
|
|
}
|
|
|
|
|
@media (min-width: 992px) {
|
|
|
|
|
.input-group {
|
|
|
|
|
width: 300px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@media (max-width: 991.98px) {
|
|
|
|
|
.navbar-collapse {
|
|
|
|
|
background-color: rgba(25, 25, 25, 0.97);
|
|
|
|
|
padding: 1rem;
|
|
|
|
|
border-radius: 0.5rem;
|
|
|
|
|
margin-top: 0.5rem;
|
|
|
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
|
|
|
|
|
}
|
|
|
|
|
.form-control.bg-dark {
|
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
|
}
|
|
|
|
|
.input-group {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
.navbar-toggler {
|
|
|
|
|
border-color: rgba(255, 255, 255, 0.3);
|
|
|
|
|
color: var(--text);
|
|
|
|
|
}
|
|
|
|
|
.navbar-toggler:focus {
|
|
|
|
|
box-shadow: 0 0 0 0.25rem rgba(0, 201, 255, 0.25);
|
|
|
|
|
}
|
|
|
|
|
.navbar-toggler-icon {
|
|
|
|
|
filter: invert(1);
|
|
|
|
|
}
|
|
|
|
|
}
|
2025-06-13 23:06:13 +03:00
|
|
|
</style>
|
2025-07-11 12:56:44 +03:00
|
|
|
@stack('styles')
|
2025-04-09 23:03:16 +03:00
|
|
|
</head>
|
|
|
|
|
<body class="font-sans antialiased">
|
|
|
|
|
<div class="min-h-screen bg-gray-100 dark:bg-gray-900">
|
2025-07-12 01:44:39 +03:00
|
|
|
<nav class="navbar navbar-expand-lg sticky-top">
|
2025-04-12 17:18:33 +03:00
|
|
|
<div class="container">
|
2025-07-12 01:44:39 +03:00
|
|
|
<a class="navbar-brand gradient-text" href="/">
|
|
|
|
|
<i class="fas fa-gamepad me-2"></i>ClearGame
|
|
|
|
|
</a>
|
2025-04-12 17:18:33 +03:00
|
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
|
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
|
</button>
|
|
|
|
|
<div class="collapse navbar-collapse" id="navbarNav">
|
|
|
|
|
<ul class="navbar-nav me-auto">
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<a class="nav-link {{ request()->routeIs('games.index') ? 'active' : '' }}" href="{{ route('games.index') }}">
|
|
|
|
|
<i class="fas fa-gamepad me-1"></i> Games
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
2026-02-22 20:02:34 +02:00
|
|
|
<li class="nav-item">
|
|
|
|
|
<a class="nav-link {{ request()->routeIs('forum.*') ? 'active' : '' }}" href="{{ route('forum.index') }}">
|
|
|
|
|
<i class="fas fa-comments me-1"></i> Forum
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
2025-07-12 01:44:39 +03:00
|
|
|
@auth
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<a class="nav-link {{ request()->routeIs('lists.*') ? 'active' : '' }}" href="{{ route('lists.index') }}">
|
|
|
|
|
<i class="fas fa-list me-1"></i> My Lists
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<a class="nav-link {{ request()->routeIs('profile') || request()->routeIs('profile.edit') || request()->routeIs('profile.reviews') ? 'active' : '' }}" href="{{ route('profile') }}">
|
|
|
|
|
<i class="fas fa-user-circle me-1"></i> My Profile
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
@endauth
|
2025-04-12 17:18:33 +03:00
|
|
|
</ul>
|
2025-07-12 01:44:39 +03:00
|
|
|
|
|
|
|
|
<form action="{{ route('games.index') }}" method="GET" class="d-flex me-3">
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<input type="text" name="search" class="form-control bg-dark text-light border-dark" placeholder="Search games..." aria-label="Search" value="{{ request('search') }}">
|
|
|
|
|
<button class="btn btn-outline-light" type="submit">
|
|
|
|
|
<i class="fas fa-search"></i>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
|
2026-02-28 14:08:30 +02:00
|
|
|
<div class="d-flex align-items-center gap-3">
|
|
|
|
|
<!-- Theme Toggle Button -->
|
|
|
|
|
<button type="button" class="theme-toggle-btn" id="themeToggle" aria-label="Toggle theme">
|
|
|
|
|
<i class="fas fa-moon" id="themeIcon"></i>
|
|
|
|
|
</button>
|
|
|
|
|
|
2025-04-12 17:18:33 +03:00
|
|
|
@auth
|
|
|
|
|
<div class="dropdown">
|
2025-07-12 01:44:39 +03:00
|
|
|
<button class="btn btn-outline-light dropdown-toggle" type="button" data-bs-toggle="dropdown">
|
2025-04-12 17:18:33 +03:00
|
|
|
<i class="fas fa-user me-1"></i> {{ Auth::user()->name }}
|
|
|
|
|
</button>
|
|
|
|
|
<ul class="dropdown-menu dropdown-menu-end">
|
2025-06-13 23:06:13 +03:00
|
|
|
<li>
|
2025-07-12 01:44:39 +03:00
|
|
|
<a href="{{ route('profile') }}" class="dropdown-item">
|
|
|
|
|
<i class="fas fa-user-circle me-1"></i> Profile
|
|
|
|
|
</a>
|
2025-06-13 23:06:13 +03:00
|
|
|
</li>
|
2025-07-12 01:44:39 +03:00
|
|
|
<li>
|
|
|
|
|
<a href="{{ route('lists.index') }}" class="dropdown-item">
|
|
|
|
|
<i class="fas fa-list me-1"></i> My Lists
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="{{ route('profile.reviews') }}" class="dropdown-item">
|
|
|
|
|
<i class="fas fa-star me-1"></i> My Reviews
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li><hr class="dropdown-divider"></li>
|
2025-04-12 17:18:33 +03:00
|
|
|
<li>
|
|
|
|
|
<form method="POST" action="{{ route('logout') }}">
|
|
|
|
|
@csrf
|
|
|
|
|
<button type="submit" class="dropdown-item">
|
|
|
|
|
<i class="fas fa-sign-out-alt me-1"></i> Logout
|
|
|
|
|
</button>
|
|
|
|
|
</form>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
@else
|
2025-07-12 01:44:39 +03:00
|
|
|
<a href="{{ route('login') }}" class="btn btn-outline-light me-2">
|
2025-04-12 17:18:33 +03:00
|
|
|
<i class="fas fa-sign-in-alt me-1"></i> Login
|
|
|
|
|
</a>
|
|
|
|
|
<a href="{{ route('register') }}" class="btn btn-gradient">
|
|
|
|
|
<i class="fas fa-user-plus me-1"></i> Sign Up
|
|
|
|
|
</a>
|
|
|
|
|
@endauth
|
|
|
|
|
</div>
|
2025-04-09 23:03:16 +03:00
|
|
|
</div>
|
2025-04-12 17:18:33 +03:00
|
|
|
</div>
|
|
|
|
|
</nav>
|
2025-04-09 23:03:16 +03:00
|
|
|
|
|
|
|
|
<!-- Page Content -->
|
2025-04-12 17:18:33 +03:00
|
|
|
<main class="container py-5">
|
|
|
|
|
@yield('content')
|
2025-04-09 23:03:16 +03:00
|
|
|
</main>
|
2025-04-12 17:18:33 +03:00
|
|
|
|
|
|
|
|
<footer class="border-top border-gray-800 py-4 mt-5">
|
|
|
|
|
<div class="container text-center text-gray-400">
|
|
|
|
|
<p class="mb-0">© 2024 ClearGame. All rights reserved.</p>
|
|
|
|
|
</div>
|
|
|
|
|
</footer>
|
2025-04-09 23:03:16 +03:00
|
|
|
</div>
|
2025-04-12 17:18:33 +03:00
|
|
|
|
|
|
|
|
<!-- Bootstrap Bundle with Popper -->
|
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
2026-02-28 14:08:30 +02:00
|
|
|
|
|
|
|
|
<!-- Theme Toggle Script -->
|
|
|
|
|
<script>
|
|
|
|
|
// Theme management
|
|
|
|
|
(function() {
|
|
|
|
|
const themeToggle = document.getElementById('themeToggle');
|
|
|
|
|
const themeIcon = document.getElementById('themeIcon');
|
|
|
|
|
const htmlElement = document.documentElement;
|
|
|
|
|
|
|
|
|
|
// Get saved theme or default to dark
|
|
|
|
|
const savedTheme = localStorage.getItem('theme') || 'dark';
|
|
|
|
|
|
|
|
|
|
// Apply theme on load
|
|
|
|
|
function applyTheme(theme) {
|
|
|
|
|
htmlElement.setAttribute('data-theme', theme);
|
|
|
|
|
|
|
|
|
|
// Update icon
|
|
|
|
|
if (theme === 'dark') {
|
|
|
|
|
themeIcon.classList.remove('fa-sun');
|
|
|
|
|
themeIcon.classList.add('fa-moon');
|
|
|
|
|
} else {
|
|
|
|
|
themeIcon.classList.remove('fa-moon');
|
|
|
|
|
themeIcon.classList.add('fa-sun');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Apply saved theme immediately
|
|
|
|
|
applyTheme(savedTheme);
|
|
|
|
|
|
|
|
|
|
// Toggle theme on button click
|
|
|
|
|
if (themeToggle) {
|
|
|
|
|
themeToggle.addEventListener('click', function() {
|
|
|
|
|
const currentTheme = htmlElement.getAttribute('data-theme');
|
|
|
|
|
const newTheme = currentTheme === 'dark' ? 'light' : 'dark';
|
|
|
|
|
|
|
|
|
|
applyTheme(newTheme);
|
|
|
|
|
localStorage.setItem('theme', newTheme);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})();
|
|
|
|
|
</script>
|
|
|
|
|
|
2025-07-11 12:56:44 +03:00
|
|
|
@stack('scripts')
|
2025-04-09 23:03:16 +03:00
|
|
|
</body>
|
|
|
|
|
</html>
|