{{ $landing['tagline'] ?? '' }}
+{{ $landing['headline'] ?? ($landing['name'] ?? '') }}
+{{ $landing['description'] ?? '' }}
+ +Why {{ $landing['name'] ?? 'Ladill' }}
+{{ $benefit['title'] }}
+{{ $benefit['text'] }}
+Ideal for
+diff --git a/app/Http/Controllers/ProductLandingController.php b/app/Http/Controllers/ProductLandingController.php new file mode 100644 index 0000000..6ab88dc --- /dev/null +++ b/app/Http/Controllers/ProductLandingController.php @@ -0,0 +1,31 @@ +session()->has('mb.email')) { + return redirect()->route($dashboardRoute); + } + + return view('product.landing'); + } + + if (auth()->check()) { + return redirect()->route($dashboardRoute); + } + + return view('product.landing'); + } +} diff --git a/config/product_landing.php b/config/product_landing.php new file mode 100644 index 0000000..a1a1a7b --- /dev/null +++ b/config/product_landing.php @@ -0,0 +1,43 @@ + 'servers', + 'name' => 'Servers', + 'logo' => 'images/logo/ladillservers-logo.svg', + 'icon' => 'servers.svg', + 'tagline' => 'VPS and dedicated servers', + 'headline' => 'Power when shared hosting isn\'t enough', + 'accent' => 'VPS, dedicated, and root access', + 'description' => 'Servers gives you VPS and dedicated machines for apps, databases, and high-traffic sites — provisioned and billed through your Ladill account.', + 'benefits' => + [ + 0 => + [ + 'title' => 'VPS & dedicated', + 'text' => 'Choose the right machine for your workload and scale up later.', + ,] + 1 => + [ + 'title' => 'Root access', + 'text' => 'Full control to install your stack and configure services.', + ,] + 2 => + [ + 'title' => 'Unified billing', + 'text' => 'Pay from your Ladill wallet alongside every other app.', + ,] + ,] + 'use_cases' => + [ + 0 => 'Custom applications', + 1 => 'High-traffic sites', + 2 => 'Development environments', + ,] + 'gradient_from' => '#334155', + 'gradient_to' => '#010c1f', + 'dashboard_route' => 'servers.dashboard', + 'platform_url' => 'https://localhost', + 'marketing_url' => 'https://localhost/products/servers', + 'register_url' => 'https://auth.localhost/register', + 'landing_variant' => 'default', +]; diff --git a/resources/views/product/landing.blade.php b/resources/views/product/landing.blade.php new file mode 100644 index 0000000..37bc63f --- /dev/null +++ b/resources/views/product/landing.blade.php @@ -0,0 +1,101 @@ +@php + $landing = (array) config('product_landing'); + $logo = (string) ($landing['logo'] ?? ''); + $logoPath = $logo !== '' ? public_path($logo) : null; + $platformUrl = (string) ($landing['platform_url'] ?? 'https://ladill.com'); + $marketingUrl = (string) ($landing['marketing_url'] ?? $platformUrl); + $signInUrl = route('sso.connect', [ + 'redirect' => route($landing['dashboard_route'] ?? 'login'), + 'interactive' => 1, + ]); + $variant = (string) ($landing['landing_variant'] ?? 'default'); +@endphp + + +
+ + +{{ $landing['tagline'] ?? '' }}
+{{ $landing['description'] ?? '' }}
+ +Why {{ $landing['name'] ?? 'Ladill' }}
+{{ $benefit['text'] }}
+Ideal for
+