Welcome to Tock

In this example below you will see how to do a Welcome to Tock with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by reallygoodemails, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright reallygoodemails ©
  • HTML
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>Welcome to Tock</title>
  
  
  
  
  
</head>

<body>

  <!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" style="background-color:#f7f7f7;">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>Welcome to Tock</title>
  <style type="text/css">
    /* ------------------------------
      RESET
      ------------------------------ */
      #outlook a {
        padding:0;
      }
      .ReadMsgBody {
        width:100%;
      }
      .ExternalClass {
        width:100%;
      }
      .ExternalClass,
      .ExternalClass p,
      .ExternalClass span,
      .ExternalClass font,
      .ExternalClass td,
      .ExternalClass div {
        line-height: 100%;
      }
      body,
      table,
      td,
      p,
      a,
      li,
      blockquote {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
      }
      table,
      td {
        mso-table-lspace: 0pt;
        mso-table-rspace: 0pt;
        table-spacing: 0;
        padding: 0;
      }
      img {
        -ms-interpolation-mode: bicubic;
      }
      body {
        margin: 0 !important;
        padding: 0 !important;
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
        text-align: left !important;
        color: #191919 !important;
      }
      img {
        border: 0;
        height: auto;
        line-height: 100%;
        outline: none;
        text-decoration: none;
      }
      table {
        border-collapse: collapse !important;
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
        text-align: left !important;
        color: #191919 !important;
      }
      .text-align-left {
        text-align: left !important;
      }
      .text-align-right {
        text-align: right !important;
      }
      .text-align-center {
        text-align: center !important;
      }
      /* ------------------------------
      TYPOGRAPHY
      ------------------------------ */
      @font-face {
        font-family:"Avenir LT W01_55 Roman1475520";
        src: url("https://www.tocktix.com/fonts/avenir/b290e775-e0f9-4980-914b-a4c32a5e3e36.woff2") format("woff2"),
        url("https://www.tocktix.com/fonts/avenir/4b978f72-bb48-46c3-909a-2a8cd2f8819c.woff") format("woff"),
        url("https://www.tocktix.com/fonts/avenir/9bdf0737-f98c-477a-9365-ffc41b9d1285.ttf") format("truetype"),
        url("https://www.tocktix.com/fonts/avenir/15281d0d-e3c2-46e1-94db-cb681e00bfaa.svg#15281d0d-e3c2-46e1-94db-cb681e00bfaa") format("svg");
      }
      
      @font-face {
        font-family:"Avenir LT W01_85 Heavy1475544";
        src: url("https://www.tocktix.com/fonts/avenir/d513e15e-8f35-4129-ad05-481815e52625.woff2") format("woff2"),
        url("https://www.tocktix.com/fonts/avenir/61bd362e-7162-46bd-b67e-28f366c4afbe.woff") format("woff"),
        url("https://www.tocktix.com/fonts/avenir/ccd17c6b-e7ed-4b73-b0d2-76712a4ef46b.ttf") format("truetype"),
        url("https://www.tocktix.com/fonts/avenir/20577853-40a7-4ada-a3fb-dd6e9392f401.svg#20577853-40a7-4ada-a3fb-dd6e9392f401") format("svg");
      }
      
      .sans-36-bold {
        font-family: 'Avenir LT W01_85 Heavy1475544', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 36px;
        line-height: 36px;
        font-weight: bold;
        font-weight: 600;
      }
      .sans-30-bold {
        font-family: 'Avenir LT W01_85 Heavy1475544', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 30px;
        line-height: 30px;
        font-weight: bold;
        font-weight: 600;
      }
      .sans-24-bold {
        font-family: 'Avenir LT W01_85 Heavy1475544', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 24px;
        line-height: 26px;
        font-weight: bold;
        font-weight: 500;
      }
      .sans-18-bold {
        font-family: 'Avenir LT W01_85 Heavy1475544', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 18px;
        line-height: 24px;
        font-weight: bold;
        font-weight: 500;
      }
      .sans-14-bold {
        font-family: 'Avenir LT W01_85 Heavy1475544', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 14px;
        line-height: 20px;
        font-weight: bold;
        font-weight: 500;
      }
      .sans-14-regular {
        font-family: 'Avenir LT W01_55 Roman1475520', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 14px;
        line-height: 20px;
        font-weight: normal;
        font-weight: 400;
      }
      .sans-12-bold {
        font-family: 'Avenir LT W01_85 Heavy1475544', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 12px;
        font-weight: bold;
        font-weight: 500;
        line-height: 16px;
      }
      .sans-12-bold-uppercase {
        font-family: 'Avenir LT W01_85 Heavy1475544', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 12px;
        font-weight: bold;
        font-weight: 500;
        line-height: 16px;
        text-transform: uppercase;
        letter-spacing: 0.8px;
      }
      .sans-12-regular {
        font-family: 'Avenir LT W01_55 Roman1475520', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 12px;
        font-weight: normal;
        font-weight: 400;
        line-height: 16px;
      }
      .sans-10-bold {
        font-family: 'Avenir LT W01_85 Heavy1475544', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 10px;
        font-weight: bold;
        font-weight: 500;
        line-height: 14px;
      }
      .sans-10-bold-uppercase {
        font-family: 'Avenir LT W01_85 Heavy1475544', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 10px;
        font-weight: bold;
        font-weight: 500;
        line-height: 14px;
        text-transform: uppercase;
        letter-spacing: 0.6px;
      }
      .sans-10-regular {
        font-family: 'Avenir LT W01_55 Roman1475520', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 10px;
        font-weight: normal;
        font-weight: 400;
        line-height: 14px;
      }
      .color-blue {
        color: #1E2432 !important;
      }
      .color-bright-blue {
        color: #0EADDE !important;
      }
      .color-orange {
        color: #FA7D00 !important;
      }
      .color-black {
        color: #191919 !important;
      }
      .color-gray-medium {
        color: #999999 !important;
      }
      .color-gray-light {
        color: #CCCCCC !important;
      }
      .color-gray-dark {
        color: #666666 !important;
      }
      .text-decoration-none {
        text-decoration: none !important;
      }
      .text-decoration-underline {
        text-decoration: underline !important;
      }
      .text-transform-uppercase {
        text-transform: uppercase !important;
      }
      .paragraph {
        text-indent: 12px;
        padding-top: 12px;
      }
      
      .padding-top-12 {
        padding-top: 12px;
      }
      
      /* ------------------------------
      TEMPLATE
      ------------------------------ */
      html,
      body,
      #outerTable {
        background-color: #f7f7f7;
      }
      body,
      #outerTable {
        height: 100% !important;
        width: 100% !important;
      }
      #mainTable {
        padding: 24px;
      }
      #outerTable a,
      #outerTable a:link,
      #outerTable a:visited,
      #outerTable a .yshortcuts {
        text-decoration: none;
        color: inherit;
      }
      .templateContainer {
        width: 640px !important;
      }
      /* ------------------------------
      HEADER
      ------------------------------ */
      #headerTable {
        background-color: #FFBE32;
        color: #FFFFFF;
        line-height: 72px;
        height: 72px;
        vertical-align: middle;
      }
      #templateHeaderCell {
        padding-top: 23px;
        padding-right: 24px;
        padding-bottom: 23px;
        padding-left: 24px;
      }
      
      .tockLogoContainer {
        padding: 20px 0;
      }
      
      .tockLogoImage {
        display: block;
        color: #FFFFFF;
        font-size: 16px;
      }
      
      /* CONTENT */
      #templateContent {
        background-color: #FFFFFF;
        border: 1px solid #CCCCCC;
      }
      #contentHeader {
        border-bottom: 1px solid #CCCCCC;
        padding: 36px;
      }
      #contentBody {
        padding: 29px 36px 36px;
      }
      .contentItemTable {
        border-bottom: 1px solid #CCCCCC;
      }
      .contentItemColumn {
        padding: 4px 0;
      }
      .tableSpacer {
        line-height: 24px;
        height: 24px;
      }
      .cta-button {
        background: #0EADDE !important;
        color: #FFFFFF !important;
        text-decoration: none !important;
        text-transform: uppercase;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 1px;
        padding: 11px 12px 12px;
        border-radius: 3px;
      }
      .cta-secondary {
        color: #999999;
        font-family: 'Avenir LT W01_55 Roman1475520', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 12px;
        font-weight: normal;
        font-weight: 400;
        line-height: 16px;
      }
      /* ------------------------------
      FOOTER
      ------------------------------ */
      #footerTable {
        padding: 0 0 24px;
      }
      #templateFooter a:link,
      #templateFooter a:visited,
      #templateFooter a .yshortcuts,
      #templateFooter a span {
        font-weight: normal;
        text-decoration: underline;
      }
      /* ------------------------------
      MOBILE
      ------------------------------ */
      @media only screen and (max-width:640px) {
        body, table, td, p, a, li, blockquote {
          -webkit-text-size-adjust: none !important;
        }
        body {
          width: 100% !important;
          min-width: 100% !important;
        }
        #mainTable {
          padding: 12px !important;
        }
        #contentHeader {
          padding: 24px !important;
        }
        .templateContainer {
          width: 100% !important;
        }
        #contentBody {
          padding: 24px !important;
        }
        .tableSpacer {
          line-height: 12px !important;
          height: 12px !important;
        }
        #footerTable {
          padding: 0 0 12px !important;
        }
        .sans-30-bold {
          font-size: 24px !important;
          line-height: 26px !important;
        }
      }
      /* ------------------------------
      TEST EMAILS
      ------------------------------ */
      .test-email-frame {
        border: 10px solid #0FAADC;
      }
      
      .test-email-row {
        height: 50px;
        line-height: 50px;
        background: #0FAADC;
        color: #FFFFFF;
        text-align: center;
        font-family: 'Avenir LT W01_85 Heavy1475544', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        font-size: 12px;
        font-weight: bold;
        font-weight: 500;
        line-height: 16px;
        text-transform: uppercase;
        letter-spacing: 0.8px;
      }
  </style>
</head>

<body leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0" style="-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;margin:0 ;padding:0 ;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif ;text-align:left ;color:#191919 ;background-color:#f7f7f7;height:100% ;width:100% ;">
  <center>
    <table align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="width:100% !important;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;mso-table-lspace:0pt;mso-table-rspace:0pt;table-spacing:0;padding:0;border-collapse:collapse ;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif ;text-align:left ;color:#191919 ;"
      class=" mainTable">
      <tr>
        <td align="center" valign="top" id="headerTable" style="-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;mso-table-lspace:0pt;mso-table-rspace:0pt;table-spacing:0;padding:0;background-color:#FFBE32;color:#FFFFFF;line-height:72px;height:72px;vertical-align:middle;">
          <table border="0" cellpadding="0" cellspacing="0" width="640" style="width:640px ;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;mso-table-lspace:0pt;mso-table-rspace:0pt;table-spacing:0;padding:0;border-collapse:collapse ;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif ;text-align:left ;color:#191919 ;"
            class="templateContainer">
            <tr>
              <td align="center" valign="top" class="header" style="-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;mso-table-lspace:0pt;mso-table-rspace:0pt;table-spacing:0;padding:0;">
                <table border="0" cellpadding="0" cellspacing="0" width="100%" style="width:100% !important;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;mso-table-lspace:0pt;mso-table-rspace:0pt;table-spacing:0;padding:0;border-collapse:collapse ;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif ;text-align:center ;color:#191919 ;"
                  class="text-align-center">
                  <tr>
                    <td align="center" valign="top" class="tockLogoContainer" style="-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;mso-table-lspace:0pt;mso-table-rspace:0pt;table-spacing:0;padding:20px 0;">
                      <img alt="Logo" src="https://storage.googleapis.com/tock-public-assets/images-email/tock-logo-email.png" width="64" height="30" border="0" class="tockLogoImage" style="-ms-interpolation-mode:bicubic;border:0;height:auto;line-height:100%;outline:none;text-decoration:none;display:block;color:#FFFFFF;font-size:16px;">
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <table align="center" border="0" cellpadding="0" cellspacing="0" height="100%" width="100%" style="width:100% ;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;mso-table-lspace:0pt;mso-table-rspace:0pt;table-spacing:0;padding:0;border-collapse:collapse ;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif ;text-align:left ;color:#191919 ;background-color:#f7f7f7;height:100% ;"
          id="outerTable">
          <tr>
            <td align="center" valign="top" id="mainTable" style="-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;mso-table-lspace:0pt;mso-table-rspace:0pt;table-spacing:0;padding:24px;">
              <table border="0" cellpadding="0" cellspacing="0" width="640" style="width:640px ;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;mso-table-lspace:0pt;mso-table-rspace:0pt;table-spacing:0;padding:0;border-collapse:collapse ;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif ;text-align:left ;color:#191919 ;"
                class="templateContainer">
                <tr>
                  <td align="left" valign="top" style="-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;mso-table-lspace:0pt;mso-table-rspace:0pt;table-spacing:0;padding:0;">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" style="width:100% !important;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;mso-table-lspace:0pt;mso-table-rspace:0pt;table-spacing:0;padding:0;border-collapse:collapse ;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif ;text-align:center ;color:#191919 ;background-color:#FFFFFF;border:1px solid #CCCCCC;"
                      id="templateContent" class="text-align-center">
                      <tr>
                        <td align="center" valign="top" id="contentHeader" class="sans-36-bold" style="-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;mso-table-lspace:0pt;mso-table-rspace:0pt;table-spacing:0;padding:36px;font-family:'Avenir LT W01_85 Heavy1475544', 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:36px;line-height:36px;font-weight:600;border-bottom:1px solid #CCCCCC;">
                        <span>Welcome to Tock</span>

                        </td>
                      </tr>
                      <tr>
                        <td align="left" valign="top" id="contentBody" style="-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;mso-table-lspace:0pt;mso-table-rspace:0pt;table-spacing:0;padding:29px 36px 36px;">
                          <table align="left" border="0" cellpadding="0" cellspacing="0" width="100%" style="width:100% !important;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;mso-table-lspace:0pt;mso-table-rspace:0pt;table-spacing:0;padding:0;border-collapse:collapse ;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif ;text-align:left ;color:#191919 ;">
                            <tr>
                              <td align="left" valign="top" class="sans-14-regular color-gray-dark" style="-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;mso-table-lspace:0pt;mso-table-rspace:0pt;table-spacing:0;padding:0;font-family:'Avenir LT W01_55 Roman1475520', 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:14px;line-height:20px;font-weight:400;color:#666666 ;">Tock is a simple, web-based system that allows restaurants to easily offer guests reservations, tickets, and events. Use your Tock account to book at any Tock-powered restaurant. To view your upcoming and past bookings and
                                manage your account
                                <a href="https://profile.tocktix.com" class="sans-14-bold color-bright-blue text-decoration-underline" style="-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-family:'Avenir LT W01_85 Heavy1475544', 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:14px;line-height:20px;font-weight:500;color:#0EADDE ;text-decoration:underline ;">here</a>.
                                    <br>
                                    <br>Please contact the restaurant directly with any dining-related questions.
                                    <br>
                                    <br>Thank you!
                                    <br>
                                    <br>Team Tock</a>
                              </td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td align="center" valign="top" id="footerTable" style="-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;mso-table-lspace:0pt;mso-table-rspace:0pt;table-spacing:0;padding:0 0 24px;">
              <table border="0" cellpadding="0" cellspacing="0" width="640" style="width:640px ;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;mso-table-lspace:0pt;mso-table-rspace:0pt;table-spacing:0;padding:0;border-collapse:collapse ;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif ;text-align:left ;color:#191919 ;"
                class="templateContainer">
                <tr>
                  <td align="center" valign="top" style="-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;mso-table-lspace:0pt;mso-table-rspace:0pt;table-spacing:0;padding:0;">
                    <table border="0" cellpadding="0" cellspacing="0" width="100%" style="width:100% !important;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;mso-table-lspace:0pt;mso-table-rspace:0pt;table-spacing:0;padding:0;border-collapse:collapse ;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif ;text-align:left ;color:#191919 ;">
                      <tr>
                        <td align="center" valign="top" id="footerCopyrightContent" class="sans-10-regular color-gray-medium" style="-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;mso-table-lspace:0pt;mso-table-rspace:0pt;table-spacing:0;padding:0;font-family:'Avenir LT W01_55 Roman1475520', 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:10px;font-weight:400;line-height:14px;color:#999999 ;">&copy; 2016 Tock, Inc.</td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </tr>
    </table>
  </center>
</body>

</html>
  
  

</body>

</html>

Comments