backup
This commit is contained in:
@@ -1,8 +1,9 @@
|
|||||||
FROM php:8.3-apache
|
FROM php:8.3-apache
|
||||||
RUN apt-get update && apt-get install -y libpq-dev libzip-dev unzip libpng-dev libjpeg-dev libfreetype6-dev libicu-dev && \
|
RUN apt-get update && apt-get install -y libpq-dev libzip-dev unzip libpng-dev libjpeg-dev libfreetype6-dev libicu-dev && \
|
||||||
docker-php-ext-install pdo_pgsql pgsql zip bcmath gd intl
|
docker-php-ext-install pdo_pgsql pgsql zip bcmath gd intl
|
||||||
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - && \
|
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \
|
||||||
apt-get install -y nodejs npm
|
apt-get install -y nodejs && \
|
||||||
|
npm install -g npm@latest
|
||||||
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
|
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
|
||||||
php composer-setup.php --install-dir=/usr/local/bin --filename=composer && \
|
php composer-setup.php --install-dir=/usr/local/bin --filename=composer && \
|
||||||
rm composer-setup.php
|
rm composer-setup.php
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ class UserPanelProvider extends PanelProvider
|
|||||||
{
|
{
|
||||||
return $panel
|
return $panel
|
||||||
->id('user')
|
->id('user')
|
||||||
->path('') // Serve at root
|
->path('lobby') // Serve at root
|
||||||
->login()
|
->login()
|
||||||
->colors([
|
->colors([
|
||||||
'primary' => Color::Purple, // Purple for user panel
|
'primary' => Color::Purple, // Purple for user panel
|
||||||
@@ -33,7 +33,7 @@ class UserPanelProvider extends PanelProvider
|
|||||||
->discoverResources(in: app_path('Filament/User/Resources'), for: 'App\\Filament\\User\\Resources')
|
->discoverResources(in: app_path('Filament/User/Resources'), for: 'App\\Filament\\User\\Resources')
|
||||||
->discoverPages(in: app_path('Filament/User/Pages'), for: 'App\\Filament\\User\\Pages')
|
->discoverPages(in: app_path('Filament/User/Pages'), for: 'App\\Filament\\User\\Pages')
|
||||||
->pages([
|
->pages([
|
||||||
Pages\Dashboard::class, // Lobby as dashboard
|
\App\Filament\User\Pages\Lobby::class, // Lobby as dashboard
|
||||||
])
|
])
|
||||||
->discoverWidgets(in: app_path('Filament/User/Widgets'), for: 'App\\Filament\\User\\Widgets')
|
->discoverWidgets(in: app_path('Filament/User/Widgets'), for: 'App\\Filament\\User\\Widgets')
|
||||||
->widgets([
|
->widgets([
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ return [
|
|||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'name' => env('APP_NAME', 'Laravel'),
|
'name' => env('APP_NAME', 'Skunk Lounge'),
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|||||||
40
resources/views/landing/index.blade.php
Normal file
40
resources/views/landing/index.blade.php
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<title>Skunk Lounge - Fake Casino</title>
|
||||||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css">
|
||||||
|
<style>
|
||||||
|
body { background-color: #111; color: #fff; font-family: Arial, sans-serif; }
|
||||||
|
.glow { text-shadow: 0 0 10px #ff00de; }
|
||||||
|
.shadow-neon { box-shadow: 0 0 15px #ff00de; }
|
||||||
|
.btn-neon { background-color: #ff00de; color: #111; padding: 0.5rem 1rem; border-radius: 0.25rem; box-shadow: 0 0 10px #ff00de; }
|
||||||
|
.btn-neon:hover { box-shadow: 0 0 15px #ff00de; }
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container mx-auto mt-4 bg-gray-900 text-white p-4 rounded shadow-neon">
|
||||||
|
<h1 class="text-3xl font-bold mb-4 glow">Welcome to Skunk Lounge</h1>
|
||||||
|
<p class="mb-4">Self-hosted fake casino for entertainment only. No real money—only fake currency for dopamine rushes. Mimicking Stake.com and Jetmyst.com with sleek navigation and vibrant games.</p>
|
||||||
|
<div class="grid grid-cols-1 md:grid-cols-3 gap-4 mb-4">
|
||||||
|
<div class="card bg-gray-800 p-4 rounded shadow-neon">
|
||||||
|
<h3 class="text-lg mb-2">Games Available</h3>
|
||||||
|
<p class="text-2xl font-bold glow">{{ $gamesCount }}</p>
|
||||||
|
</div>
|
||||||
|
<div class="card bg-gray-800 p-4 rounded shadow-neon">
|
||||||
|
<h3 class="text-lg mb-2">Registered Users</h3>
|
||||||
|
<p class="text-2xl font-bold glow">{{ $usersCount }}</p>
|
||||||
|
</div>
|
||||||
|
<div class="card bg-gray-800 p-4 rounded shadow-neon">
|
||||||
|
<h3 class="text-lg mb-2">Biggest Jackpot Won</h3>
|
||||||
|
<p class="text-2xl font-bold glow">${{ $biggestJackpot }}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-center">
|
||||||
|
<a href="/login" class="btn-neon mr-4">Login</a>
|
||||||
|
<a href="/register" class="btn-neon">Register</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -1,11 +1,23 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Route;
|
use Illuminate\Support\Facades\Route;
|
||||||
|
use App\Http\Controllers\Auth\AuthenticatedSessionController;
|
||||||
|
|
||||||
// Redirect root to Filament user panel's Lobby page
|
// Landing page for non-logged-in users with placeholder stats
|
||||||
Route::get('/', function () {
|
Route::get('/', function () {
|
||||||
return redirect()->route('filament.user.pages.lobby');
|
if (auth()->check()) {
|
||||||
|
return redirect()->route('filament.user.pages.lobby');
|
||||||
|
}
|
||||||
|
$gamesCount = 10; // Placeholder
|
||||||
|
$usersCount = 100; // Placeholder
|
||||||
|
$biggestJackpot = 5000; // Placeholder
|
||||||
|
return view('landing.index', compact('gamesCount', 'usersCount', 'biggestJackpot'));
|
||||||
})->name('home');
|
})->name('home');
|
||||||
|
|
||||||
|
// Explicit logout route for Filament user panel
|
||||||
|
Route::post('/logout', [AuthenticatedSessionController::class, 'destroy'])
|
||||||
|
->middleware('auth')
|
||||||
|
->name('filament.user.auth.logout');
|
||||||
|
|
||||||
// Include Breeze auth routes
|
// Include Breeze auth routes
|
||||||
require __DIR__.'/auth.php';
|
require __DIR__.'/auth.php';
|
||||||
Reference in New Issue
Block a user