AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

app.blade.php 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!DOCTYPE html>
  2. <html lang="{{ str_replace('_', '-', app()->getLocale()) }}" @class(['dark' => ($appearance ?? 'system') == 'dark'])>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. {{-- Inline script to detect system dark mode preference and apply it immediately --}}
  7. <script>
  8. (function() {
  9. const appearance = '{{ $appearance ?? "system" }}';
  10. if (appearance === 'system') {
  11. const prefersDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
  12. if (prefersDark) {
  13. document.documentElement.classList.add('dark');
  14. }
  15. }
  16. })();
  17. </script>
  18. {{-- Inline style to set the HTML background color based on our theme in app.css --}}
  19. <style>
  20. html {
  21. background-color: oklch(1 0 0);
  22. }
  23. html.dark {
  24. background-color: oklch(0.145 0 0);
  25. }
  26. </style>
  27. {{-- A store's pages show the store's own icon, made from its logo or its initials. --}}
  28. @php($storeIcon = $page['props']['shop']['icon'] ?? null)
  29. @if (is_array($storeIcon))
  30. <link rel="icon" href="{{ $storeIcon['href'] }}" type="{{ $storeIcon['type'] }}">
  31. @if ($storeIcon['touch'])
  32. <link rel="apple-touch-icon" href="{{ $storeIcon['touch'] }}">
  33. @endif
  34. @else
  35. <link rel="icon" href="/favicon.ico" sizes="any">
  36. <link rel="icon" href="/favicon.svg" type="image/svg+xml">
  37. <link rel="apple-touch-icon" href="/apple-touch-icon.png">
  38. @endif
  39. @fonts
  40. @viteReactRefresh
  41. @vite(['resources/css/app.css', 'resources/js/app.tsx', "resources/js/pages/{$page['component']}.tsx"])
  42. <x-inertia::head>
  43. <title>{{ config('app.name', 'Laravel') }}</title>
  44. </x-inertia::head>
  45. </head>
  46. <body class="font-sans antialiased">
  47. <x-inertia::app />
  48. </body>
  49. </html>