1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 13:42:49 +01:00
invoiceninja/resources/views/email/template/master.blade.php
Benjamin Beganović 07d90417f5
Purge CSS from e-mails (#3712)
* Add e-mail support for purging

* update css link
2020-05-19 08:22:29 +10:00

51 lines
1.3 KiB
PHP

@php
if(!isset($design)) $design = 'light';
@endphp
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@yield('title')</title>
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
</head>
@if($design == 'dark')
<style>
* {
color: #cbd5e0 !important;
}
</style>
@endif
<body class="{{ $design == 'light' ? 'bg-gray-200' : 'bg-gray-800' }} my-10 font-sans {{ $design == 'light' ? 'text-gray-700' : 'text-gray-400' }}">
<div class="grid grid-cols-6">
<div class="col-start-2 col-span-4">
<div class="{{ $design == 'light' ? 'bg-white' : 'bg-gray-900' }} shadow border-t-2 {{ $design == 'light' ? 'border-green-500' : 'border-gray-800' }}">
{{ $header }}
<div id="text" class="px-10 py-6 flex flex-col">
@isset($greeting)
<p>{{ $greeting }}</p>
@endisset
<p>
{{ $slot }}
</p>
@isset($signature)
<p>{{ $signature }}</p>
@endisset
</div>
</div>
@isset($below_card)
<div id="bottomText" class="text-center my-4 px-10">
{{ $below_card }}
</div>
@endisset
</div>
</div>
</body>
</html>