AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

store.blade.php 4.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. @props(['brand', 'preheader' => ''])
  2. {{--
  3. The frame of every email a store sends its shoppers, in the store's own colours, fonts and corners.
  4. Tables and inline styles only, because many email apps ignore anything else.
  5. --}}
  6. <!DOCTYPE html>
  7. <html lang="{{ $brand->malay ? 'ms' : 'en' }}">
  8. <head>
  9. <meta charset="utf-8">
  10. <meta name="viewport" content="width=device-width, initial-scale=1">
  11. <meta name="color-scheme" content="light">
  12. <meta name="supported-color-schemes" content="light">
  13. <title>{{ $brand->name }}</title>
  14. <style>
  15. @media only screen and (max-width: 600px) {
  16. .sf-card { padding: 24px 20px !important; }
  17. .sf-cell { display: block !important; width: 100% !important; }
  18. .sf-button { display: block !important; box-sizing: border-box; }
  19. .sf-gap { display: block !important; height: 10px !important; width: auto !important; }
  20. }
  21. </style>
  22. </head>
  23. <body style="margin: 0; padding: 0; background-color: {{ $brand->color('background') }}; -webkit-text-size-adjust: 100%;">
  24. {{-- The short line inboxes show next to the subject. Hidden in the email itself. --}}
  25. <div style="display: none; max-height: 0; overflow: hidden; opacity: 0; color: transparent;">{{ $preheader }}</div>
  26. <table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="background-color: {{ $brand->color('background') }};">
  27. <tr>
  28. <td align="center" style="padding: 32px 12px;">
  29. <table role="presentation" width="100%" cellpadding="0" cellspacing="0" border="0" style="max-width: 560px;">
  30. {{-- Store name --}}
  31. <tr>
  32. <td align="center" style="padding: 0 0 24px;">
  33. @if ($logo = $brand->logo())
  34. <a href="{{ $brand->storeUrl() }}" style="text-decoration: none;"><img src="{{ $logo['url'] }}" width="{{ $logo['width'] }}" height="{{ $logo['height'] }}" alt="{{ $brand->name }}" style="display: block; border: 0; width: {{ $logo['width'] }}px; height: {{ $logo['height'] }}px;"></a>
  35. @else
  36. <a href="{{ $brand->storeUrl() }}" style="font-family: {{ $brand->headingFont }}; font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: {{ $brand->color('foreground') }}; text-decoration: none;">{{ $brand->name }}</a>
  37. @endif
  38. </td>
  39. </tr>
  40. {{-- The message --}}
  41. <tr>
  42. <td class="sf-card" style="background-color: {{ $brand->color('surface') }}; border: 1px solid {{ $brand->color('border') }}; border-top: 4px solid {{ $brand->color('primary') }}; border-radius: {{ $brand->radius }}px; padding: 36px 36px; font-family: {{ $brand->bodyFont }}; font-size: 15px; line-height: 1.6; color: {{ $brand->color('foreground') }};">
  43. {{ $slot }}
  44. </td>
  45. </tr>
  46. {{-- Footer --}}
  47. <tr>
  48. <td align="center" style="padding: 24px 16px 0; font-family: {{ $brand->bodyFont }}; font-size: 12px; line-height: 1.6; color: {{ $brand->color('muted') }};">
  49. @if ($brand->contactEmail())
  50. {{ $brand->malay ? 'Ada soalan? Balas e-mel ini atau tulis kepada' : 'Questions? Reply to this email or write to' }}
  51. <a href="mailto:{{ $brand->contactEmail() }}" style="color: {{ $brand->color('foreground') }}; text-decoration: underline;">{{ $brand->contactEmail() }}</a>.<br>
  52. @endif
  53. {{ $brand->malay ? 'Anda menerima e-mel ini kerana anda membuat pesanan di' : 'You are getting this email because you ordered from' }}
  54. <a href="{{ $brand->storeUrl() }}" style="color: {{ $brand->color('muted') }}; text-decoration: underline;">{{ $brand->name }}</a>{{ str_ends_with($brand->name, '.') ? '' : '.' }}
  55. </td>
  56. </tr>
  57. </table>
  58. </td>
  59. </tr>
  60. </table>
  61. </body>
  62. </html>