[WIP] Setup of skeleton
This commit is contained in:
7
resources/views/emails/components/button.blade.php
Normal file
7
resources/views/emails/components/button.blade.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<!--[if mso]>
|
||||
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{ $url }}{{ $route }}{{ $option_id }}" style="height:36px;v-text-anchor:middle;width:155px;" arcsize="50%" strokecolor="#e6e6e8" fillcolor="#f96a48">
|
||||
<w:anchorlock/>
|
||||
<center style="color:#FFFFFF;font-family:sans-serif;font-size:13px;font-weight:bold;">{{ $txt }}</center>
|
||||
</v:roundrect>
|
||||
<![endif]--><a href="{{ $url }}{{ $route }}{{ $option_id }}"
|
||||
style="background-color:#f96a48;border:1px solid #e6e6e8;border-radius:18px;color:#FFFFFF;display:inline-block;font-family:sans-serif;font-size:13px;font-weight:bold;line-height:36px;text-align:center;text-decoration:none;width:155px;-webkit-text-size-adjust:none;mso-hide:all;">{{ $txt }}</a>
|
||||
208
resources/views/emails/components/inline_css.blade.php
Normal file
208
resources/views/emails/components/inline_css.blade.php
Normal file
@@ -0,0 +1,208 @@
|
||||
<style type="text/css">
|
||||
/* Take care of image borders and formatting, client hacks */
|
||||
img { max-width: 600px; outline: none; text-decoration: none; -ms-interpolation-mode: bicubic;}
|
||||
a img { border: none; }
|
||||
table { border-collapse: collapse !important;}
|
||||
#outlook a { padding:0; }
|
||||
.ReadMsgBody { width: 100%; }
|
||||
.ExternalClass { width: 100%; }
|
||||
.backgroundTable { margin: 0 auto; padding: 0; width: 100% !important; }
|
||||
table td { border-collapse: collapse; }
|
||||
.ExternalClass * { line-height: 115%; }
|
||||
.container-for-gmail-android { min-width: 600px; }
|
||||
|
||||
|
||||
/* General styling */
|
||||
* {
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
body {
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-webkit-text-size-adjust: none;
|
||||
width: 100% !important;
|
||||
margin: 0 !important;
|
||||
height: 100%;
|
||||
color: #676767;
|
||||
}
|
||||
|
||||
td {
|
||||
font-family: Helvetica, Arial, sans-serif;
|
||||
font-size: 14px;
|
||||
color: #777777;
|
||||
text-align: center;
|
||||
line-height: 21px;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #676767;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.pull-left {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.pull-right {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.header-lg,
|
||||
.header-md,
|
||||
.header-sm {
|
||||
font-size: 32px;
|
||||
font-weight: 700;
|
||||
line-height: normal;
|
||||
padding: 35px 0 0;
|
||||
color: #4d4d4d;
|
||||
}
|
||||
|
||||
.header-md {
|
||||
font-size: 24px;
|
||||
}
|
||||
|
||||
.header-sm {
|
||||
padding: 5px 0;
|
||||
font-size: 18px;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.content-padding {
|
||||
padding: 20px 0 30px;
|
||||
}
|
||||
|
||||
.mobile-header-padding-right {
|
||||
width: 290px;
|
||||
text-align: right;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.mobile-header-padding-left {
|
||||
width: 290px;
|
||||
text-align: left;
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
.free-text {
|
||||
width: 100% !important;
|
||||
padding: 10px 60px 0px;
|
||||
}
|
||||
|
||||
.block-rounded {
|
||||
border-radius: 5px;
|
||||
border: 1px solid #e5e5e5;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.button {
|
||||
padding: 30px 0;
|
||||
}
|
||||
|
||||
.info-block {
|
||||
padding: 0 20px;
|
||||
width: 260px;
|
||||
}
|
||||
|
||||
.block-rounded {
|
||||
width: 260px;
|
||||
}
|
||||
|
||||
.info-img {
|
||||
width: 258px;
|
||||
border-radius: 5px 5px 0 0;
|
||||
}
|
||||
|
||||
.force-width-gmail {
|
||||
min-width:600px;
|
||||
height: 0px !important;
|
||||
line-height: 1px !important;
|
||||
font-size: 1px !important;
|
||||
}
|
||||
|
||||
.button-width {
|
||||
width: 228px;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<style type="text/css" media="screen">
|
||||
@import url(http://fonts.googleapis.com/css?family=Oxygen:400,700);
|
||||
</style>
|
||||
|
||||
<style type="text/css" media="screen">
|
||||
@media screen {
|
||||
/* Thanks Outlook 2013! */
|
||||
* {
|
||||
font-family: 'Oxygen', 'Helvetica Neue', 'Arial', 'sans-serif' !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<style type="text/css" media="only screen and (max-width: 480px)">
|
||||
/* Mobile styles */
|
||||
@media only screen and (max-width: 480px) {
|
||||
|
||||
table[class*="container-for-gmail-android"] {
|
||||
min-width: 290px !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
table[class="w320"] {
|
||||
width: 320px !important;
|
||||
}
|
||||
|
||||
img[class="force-width-gmail"] {
|
||||
display: none !important;
|
||||
width: 0 !important;
|
||||
height: 0 !important;
|
||||
}
|
||||
|
||||
a[class="button-width"],
|
||||
a[class="button-mobile"] {
|
||||
width: 248px !important;
|
||||
}
|
||||
|
||||
td[class*="mobile-header-padding-left"] {
|
||||
width: 160px !important;
|
||||
padding-left: 0 !important;
|
||||
}
|
||||
|
||||
td[class*="mobile-header-padding-right"] {
|
||||
width: 160px !important;
|
||||
padding-right: 0 !important;
|
||||
}
|
||||
|
||||
td[class="header-lg"] {
|
||||
font-size: 24px !important;
|
||||
padding-bottom: 5px !important;
|
||||
}
|
||||
|
||||
td[class="header-md"] {
|
||||
font-size: 18px !important;
|
||||
padding-bottom: 5px !important;
|
||||
}
|
||||
|
||||
td[class="content-padding"] {
|
||||
padding: 5px 0 30px !important;
|
||||
}
|
||||
|
||||
td[class="button"] {
|
||||
padding: 5px !important;
|
||||
}
|
||||
|
||||
td[class*="free-text"] {
|
||||
padding: 10px 18px 30px !important;
|
||||
}
|
||||
|
||||
td[class="info-block"] {
|
||||
display: block !important;
|
||||
width: 280px !important;
|
||||
padding-bottom: 40px !important;
|
||||
}
|
||||
|
||||
td[class="info-img"],
|
||||
img[class="info-img"] {
|
||||
width: 278px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
88
resources/views/emails/layout.blade.php
Normal file
88
resources/views/emails/layout.blade.php
Normal file
@@ -0,0 +1,88 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>{{ $title }}</title>
|
||||
|
||||
@include('emails.components.inline_css')
|
||||
</head>
|
||||
|
||||
<body bgcolor="#f7f7f7">
|
||||
|
||||
<table class="container-for-gmail-android" width="100%" cellspacing="0" cellpadding="0" align="center">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="background: repeat-x url('http://s3.amazonaws.com/swu-filepicker/4E687TRe69Ld95IDWyEg_bg_top_02.jpg') #ffffff;" align="left" valign="top" width="100%">
|
||||
<center>
|
||||
<img class="force-width-gmail" src="http://s3.amazonaws.com/swu-filepicker/SBb2fQPrQ5ezxmqUTgCr_transparent.png" />
|
||||
<table style="background-color: transparent;" width="100%" cellspacing="0" cellpadding="0" bgcolor="#ffffff">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align: center; vertical-align: middle;" valign="top" width="100%" height="80">
|
||||
<!-- [if gte mso 9]>
|
||||
<v:rect xmlns:v="urn:schemas-microsoft-com:vml" fill="true" stroke="false" style="mso-width-percent:1000;height:80px; v-text-anchor:middle;">
|
||||
<v:fill type="tile" src="http://s3.amazonaws.com/swu-filepicker/4E687TRe69Ld95IDWyEg_bg_top_02.jpg" color="#ffffff" />
|
||||
<v:textbox inset="0,0,0,0">
|
||||
<![endif]-->
|
||||
<center>
|
||||
<table class="w320" width="600" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="pull-left mobile-header-padding-left" style="vertical-align: middle; color: #4d4d4d; font-size: 24px; font-weight: 700;">OpenSEM</td>
|
||||
<td class="pull-right mobile-header-padding-right" style="vertical-align: middle; color: #4d4d4d;">Gestion des messages</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</center>
|
||||
<!-- [if gte mso 9]>
|
||||
</v:textbox>
|
||||
</v:rect>
|
||||
<![endif]-->
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="content-padding" style="background-color: #f7f7f7;" align="center" valign="top" width="100%">
|
||||
<center>
|
||||
@yield('content')
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="background-color: #ffffff; border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5;" align="center" valign="top" width="100%">
|
||||
<center>
|
||||
<table class="w320" width="600" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="content-padding"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding-bottom: 75px;"> </td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="background-color: #f7f7f7; height: 100px;" align="center" valign="top" width="100%">
|
||||
<center>
|
||||
<table class="w320" width="600" cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="padding: 25px 0 25px;"><strong>OpenSEM - 2020</strong></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
13
resources/views/emails/welcome.blade.php
Normal file
13
resources/views/emails/welcome.blade.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Bienvenue chez OpenSEM</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h2>Bienvenue chez OpenSEM {{ $user['first_name'] }} {{ $user['last_name'] }}</h2>
|
||||
<p><br />Votre identifiant est : {{ $user['email'] }}</p>
|
||||
<p>Votre token est {{ $user['token'] }}</p>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user