{{ $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..5ccfeec --- /dev/null +++ b/config/product_landing.php @@ -0,0 +1,43 @@ + 'qrplus', + 'name' => 'QR Plus', + 'logo' => 'images/logo/ladillqrplus-logo.svg', + 'icon' => 'qrplus.svg', + 'tagline' => 'Dynamic QR codes for anything', + 'headline' => 'QR codes that do more than link', + 'accent' => 'menus, catalogs, and smart redirects', + 'description' => 'QR Plus creates dynamic QR codes for menus, product catalogs, contact cards, files, and more — update content anytime without reprinting.', + 'benefits' => + [ + 0 => + [ + 'title' => 'Dynamic & editable', + 'text' => 'Change the destination or content without generating a new code.', + ,] + 1 => + [ + 'title' => 'Rich content types', + 'text' => 'Menus, business pages, Wi‑Fi, vCards, files, and payment flows.', + ,] + 2 => + [ + 'title' => 'Scan analytics', + 'text' => 'See when and where your codes are being used.', + ,] + ,] + 'use_cases' => + [ + 0 => 'Restaurant menus', + 1 => 'Retail product tags', + 2 => 'Events & signage', + ,] + 'gradient_from' => '#08245f', + 'gradient_to' => '#1c75bc', + 'dashboard_route' => 'qr.dashboard', + 'platform_url' => 'https://localhost', + 'marketing_url' => 'https://localhost/products/qrplus', + '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
+