]> git.ipfire.org Git - thirdparty/foundation/foundation-emails.git/commitdiff
Add example templates to framework ZIP file
authorEric Morris <eric@zurb.com>
Thu, 7 Nov 2013 14:05:48 +0000 (06:05 -0800)
committerEric Morris <eric@zurb.com>
Thu, 7 Nov 2013 14:06:32 +0000 (06:06 -0800)
Gruntfile.js
templates/examples/newsletter.html [new file with mode: 0644]
templates/examples/sidebar-hero.html [new file with mode: 0644]

index 2d3a9f64e5a072d8fc446998f903cb6117411390..bd7ca1ab8d14f81f4a43a61a61bfe4341b8f8e34 100644 (file)
@@ -3,7 +3,7 @@ module.exports = function(grunt) {
     pkg: grunt.file.readJSON('package.json'),
     includes: {
       templates: {
-        src: 'templates/base/*.html',
+        src: 'templates/**/*.html',
         dest: 'build/downloads',
         cwd: '.',
         options: {
@@ -56,9 +56,9 @@ module.exports = function(grunt) {
         command: [
           'cp css/ink.css build/downloads/framework/ink.css',
           'cp templates/boilerplate.html build/downloads/framework/boilerplate.html',
-          // 'cp -r templates/examples build/downloads/framework/examples',
+          'cp -r build/downloads/templates/examples build/downloads/framework/examples',
           'cd build/downloads/framework',
-          'zip ink-<%= pkg.version %>.zip *',
+          'zip -r ink-<%= pkg.version %>.zip *',
           'cd ../../../',
         ].join('&&')
       },
diff --git a/templates/examples/newsletter.html b/templates/examples/newsletter.html
new file mode 100644 (file)
index 0000000..8c44e65
--- /dev/null
@@ -0,0 +1,425 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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"/>
+  <style>
+    /* Include ink.css */
+  </style>
+  <style>
+    
+    .facebook table td {
+      background: #3b5998;
+      border-color: #2d4473;
+    }
+
+    .facebook:hover table td {
+      background: #2d4473 !important;
+    }
+
+    .twitter table td {
+      background: #00acee;
+      border-color: #0087bb;
+    }
+
+    .twitter:hover table td {
+      background: #0087bb !important;
+    }
+
+    .google-plus table td {
+      background-color: #DB4A39;
+      border-color: #CC0000;
+    }
+
+    .google-plus:hover table td {
+      background: #CC0000 !important;
+    }
+
+    .template-label {
+      color: #ffffff;
+      font-weight: bold;
+      font-size: 11px;
+    }
+
+    .callout .panel {
+      background: #ECF8FF;
+      border-color: #b9e5ff;
+    }
+
+    .header {
+      background: #999999;
+    }
+
+    .footer .wrapper {
+      background: #ebebeb;
+    }
+
+    .footer h5 {
+      padding-bottom: 10px;
+    }
+
+    table.columns .text-pad {
+      padding-left: 10px;
+      padding-right: 10px;
+    }
+
+    table.columns .left-text-pad {
+      padding-left: 10px;
+    }
+
+    table.columns .right-text-pad {
+      padding-right: 10px;
+    }
+
+    @media only screen and (max-width: 600px) {
+
+      table[class="body"] .right-text-pad {
+        padding-left: 10px !important;
+      }
+
+      table[class="body"] .left-text-pad {
+        padding-right: 10px !important;
+      }
+    }
+
+  </style>
+</head>
+<body>
+  <table class="body">
+    <tr>
+      <td class="center" align="center" valign="top">
+        <center>
+         
+          <table class="row header">
+            <tr>
+              <td class="center" align="center">
+                <center>
+          
+                  <table class="container">
+                    <tr>
+                      <td class="wrapper last">
+            
+                        <table class="twelve columns">
+                          <tr>
+                            <td class="six sub-columns">
+                              <img src="http://placehold.it/200x50">
+                            </td>
+                            <td class="six sub-columns last" style="text-align:right; vertical-align:middle;">
+                              <span class="template-label">NEWSLETTER</span>
+                            </td>
+                                
+                          </tr>
+                        </table>
+            
+                      </td>
+                    </tr>
+                  </table>
+          
+                </center>
+              </td>
+            </tr>
+          </table>
+
+          <br>
+        
+          <table class="container">
+            <tr>
+              <td>
+              
+                <!-- content start -->
+                <table class="row">
+                  <tr>
+                    <td class="wrapper last">
+                  
+                      <table class="twelve columns">
+                        <tr>
+                          <td>
+                            <h3>Great Scott!</h3>
+                            <p class="lead">Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et.</p>
+                            <img width="580" height="300" src="http://placehold.it/580x300">
+                            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
+                          </td>
+                          <td class="expander"></td>
+                        </tr>
+                      </table>
+                  
+                    </td>
+                  </tr>
+                </table>
+                
+                <!-- Article List 1 -->
+                <table class="row">
+                  <tr>
+                    <td class="wrapper">
+          
+                      <table class="twelve columns">
+                        <tr>
+                          <td class="three sub-columns">
+                            <!-- Top Left sub-grid -->
+                            <img width="110" height="110" src="http://placehold.it/110x110">
+                          </td>
+                          <td class="nine sub-columns last">
+                            <!-- Top Right sub-grid -->
+                            <h5>Title Ipsum <small>This is a note.</small></h5>
+                            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
+                            
+                            <!-- custom wrapped button -->
+                            <table width="150">
+                              <tr>
+                                <td>
+                                  
+                                  <a class="button" href="#">
+                                    <table>
+                                      <tr>
+                                        <td>
+                                          Clickity Click &raquo;
+                                        </td>
+                                      </tr>
+                                    </table>
+                                  </a>
+
+                                </td>
+                              </tr>
+                            </table>
+                            
+                          </td>
+                          <td class="expander"></td>
+                        </tr>
+                      </table>
+          
+                      <table class="twelve columns">
+                        <tr>
+                          <td class="three sub-columns">
+                            <!-- Top Left sub-grid -->
+                            <img width="110" height="110" src="http://placehold.it/110x110">
+                          </td>
+                          <td class="nine sub-columns last">
+                            <!-- Top Right sub-grid -->
+                            <h5>Title Ipsum <small>This is a note.</small></h5>
+                            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
+                            
+                            <!-- custom wrapped button -->
+                            <table width="150">
+                              <tr>
+                                <td>
+
+                                  <a class="button" href="#">
+                                    <table>
+                                      <tr>
+                                        <td>
+                                          Clickity Click &raquo;
+                                        </td>
+                                      </tr>
+                                    </table>
+                                  </a>
+
+                                </td>
+                              </tr>
+                            </table>
+                            
+                          </td>
+                          <td class="expander"></td>
+                        </tr>
+                      </table>
+          
+                    </td>
+                  </tr>
+                </table>
+                
+                <!-- Panel with call to action -->
+                <table class="row  callout">
+                  <tr>
+                  
+                    <td class="wrapper last">
+                      <table class="twelve columns">
+                        <tr>
+                          <td class="panel">
+                            <p>Phasellus dictum sapien a neque luctus cursus. Pellentesque sem dolor, fringilla et pharetra vitae. <a href="#">Click it! »</a></p>
+                          </td>
+                          <td class="expander"></td>
+                        </tr>
+                      </table>
+                    </td>
+                    
+                  </tr>
+                </table>
+                <br>
+                <!-- Article List 2 -->
+                <table class="row">
+                  <tr>
+                    <td class="wrapper">
+          
+                      <table class="twelve columns">
+                        <tr>
+                          <td class="three sub-columns">
+                            <!-- Top Left sub-grid -->
+                            <img width="110" height="110" src="http://placehold.it/110x110">
+                          </td>
+                          <td class="nine sub-columns last">
+                            <!-- Top Right sub-grid -->
+                            <h5>Title Ipsum <small>This is a note.</small></h5>
+                            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
+                            
+                            <!-- custom wrapped button -->
+                            <table width="150">
+                              <tr>
+                                <td>
+
+                                  <a class="button" href="#">
+                                    <table>
+                                      <tr>
+                                        <td>
+                                          Clickity Click &raquo;
+                                        </td>
+                                      </tr>
+                                    </table>
+                                  </a>
+
+                                </td>
+                              </tr>
+                            </table>
+                            
+                          </td>
+                          <td class="expander"></td>
+                        </tr>
+                      </table>
+          
+                      <table class="twelve columns">
+                        <tr>
+                          <td class="three sub-columns">
+                            <!-- Top Left sub-grid -->
+                            <img width="110" height="110" src="http://placehold.it/110x110">
+                          </td>
+                          <td class="nine sub-columns last">
+                            <!-- Top Right sub-grid -->
+                            <h5>Title Ipsum <small>This is a note.</small></h5>
+                            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
+                            
+                            <!-- custom wrapped button -->
+                            <table width="150">
+                              <tr>
+                                <td>
+
+                                  <a class="button" href="#">
+                                    <table>
+                                      <tr>
+                                        <td>
+                                          Clickity Click &raquo;
+                                        </td>
+                                      </tr>
+                                    </table>
+                                  </a>
+
+                                </td>
+                              </tr>
+                            </table>
+                            
+                          </td>
+                          <td class="expander"></td>
+                        </tr>
+                      </table>
+          
+                    </td>
+                  </tr>
+                </table>
+                
+                
+                              
+                <table class="row footer">
+                  <tr>
+                    <td class="wrapper">
+                            
+                      <table class="six columns">
+                        <tr>
+                          <td class="left-text-pad">
+
+                            <h5>Connect With Us:</h5>
+
+                            <a class="tiny-button facebook" href="#">
+                              <table>
+                                <tr>
+                                  <td>
+                                    Facebook
+                                  </td>
+                                </tr>
+                              </table>
+                            </a>
+
+                            <br>
+
+                            <a class="tiny-button twitter" href="#">
+                              <table>
+                                <tr>
+                                  <td>
+                                    Twitter
+                                  </td>
+                                </tr>
+                              </table>
+                            </a>
+
+                            <br>
+
+                            <a class="tiny-button google-plus" href="#">
+                              <table>
+                                <tr>
+                                  <td>
+                                    Google +
+                                  </td>
+                                </tr>
+                              </table>
+                            </a>
+
+                          </td>
+                          <td class="expander"></td>
+                        </tr>
+                      </table>
+
+                    </td>
+                    <td class="wrapper last">
+
+                      <table class="six columns">
+                        <tr>
+                          <td class="last right-text-pad">
+                            <h5>Contact Info:</h5>
+                            <p>Phone: 408.341.0600</p>
+                            <p>Email: <a href="mailto:hseldon@trantor.com">hseldon@trantor.com</a></p>
+                          </td>          
+                          <td class="expander"></td>
+                        </tr>
+                      </table>
+
+                    </td>
+                  </tr>
+                </table>
+                
+                
+                <table class="row">
+                  <tr>
+                    <td class="wrapper last">
+            
+                      <table class="twelve columns">
+                        <tr>
+                          <td align="center">
+                            <center>
+                              <p style="text-align:center;"><a href="#">Terms</a> | <a href="#">Privacy</a> | <a href="#"><unsubscribe>Unsubscribe</unsubscribe></a></p>
+                            </center>
+                          </td>
+                          <td class="expander"></td>
+                        </tr>
+                      </table>
+            
+                    </td>
+                  </tr>
+                </table>
+              
+              <!-- container end below -->
+              </td>
+            </tr>
+          </table> 
+
+        </center>
+      </td>
+    </tr>
+  </table>
+</body>
+</html>
\ No newline at end of file
diff --git a/templates/examples/sidebar-hero.html b/templates/examples/sidebar-hero.html
new file mode 100644 (file)
index 0000000..5806e0a
--- /dev/null
@@ -0,0 +1,366 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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"/>
+  <style>
+    /* Include ink.css */
+  </style>
+  <style>
+    
+    .facebook table td {
+      background: #3b5998;
+      border-color: #2d4473;
+    }
+
+    .facebook:hover table td {
+      background: #2d4473 !important;
+    }
+
+    .twitter table td {
+      background: #00acee;
+      border-color: #0087bb;
+    }
+
+    .twitter:hover table td {
+      background: #0087bb !important;
+    }
+
+    .google-plus table td {
+      background-color: #DB4A39;
+      border-color: #CC0000;
+    }
+
+    .google-plus:hover table td {
+      background: #CC0000 !important;
+    }
+
+    .template-label {
+      color: #ffffff;
+      font-weight: bold;
+      font-size: 11px;
+    }
+
+    .callout .panel {
+      background: #ECF8FF;
+      border-color: #b9e5ff;
+    }
+
+    .header {
+      background: #999999;
+    }
+
+    .footer .wrapper {
+      background: #ebebeb;
+    }
+
+    .footer h5 {
+      padding-bottom: 10px;
+    }
+
+    table.columns .text-pad {
+      padding-left: 10px;
+      padding-right: 10px;
+    }
+
+    table.columns .left-text-pad {
+      padding-left: 10px;
+    }
+
+    table.columns .right-text-pad {
+      padding-right: 10px;
+    }
+
+    @media only screen and (max-width: 600px) {
+
+      table[class="body"] .right-text-pad {
+        padding-left: 10px !important;
+      }
+
+      table[class="body"] .left-text-pad {
+        padding-right: 10px !important;
+      }
+    }
+
+  </style>
+</head>
+<body>
+  <table class="body">
+    <tr>
+      <td class="center" align="center" valign="top">
+        <center>
+         
+          <table class="row header">
+            <tr>
+              <td class="center" align="center">
+                <center>
+          
+                  <table class="container">
+                    <tr>
+                      <td class="wrapper last">
+            
+                        <table class="twelve columns">
+                          <tr>
+                            <td class="six sub-columns">
+                              <img src="http://placehold.it/200x50">
+                            </td>
+                            <td class="six sub-columns last" style="text-align:right; vertical-align:middle;">
+                              <span class="template-label">SIDEBAR HERO</span>
+                            </td>
+                                
+                          </tr>
+                        </table>
+            
+                      </td>
+                    </tr>
+                  </table>
+          
+                </center>
+              </td>
+            </tr>
+          </table>
+
+          <br>
+         
+          <table class="container">
+            <tr>
+              <td>
+              
+              <!-- content start -->
+              <table class="row">
+                <tr>
+                  <td class="wrapper last">
+
+                    <table class="twelve columns">
+                      <tr>
+                        <td>
+                          <h2>Welcome, Daneel Olivan</h2>
+                          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et.</p>
+                          <img width="580" height="300" src="http://placehold.it/580x300">
+                        </td>
+                        <td class="expander"></td>
+                      </tr>
+                    </table>
+        
+                    <table class="twelve columns">
+                      <tr>
+                        <td class="panel">
+                          <p>Phasellus dictum sapien a neque luctus cursus. Pellentesque sem dolor, fringilla et pharetra vitae. <a href="#">Click it! »</a></p>
+                        </td>
+                        <td class="expander"></td>
+                      </tr>
+                    </table>
+
+                  </td>
+                </tr>
+              </table>
+              
+              <br>  <!-- Break Tag for row -->
+                
+              <table class="row">
+                <tr>
+                  <td class="wrapper">
+
+                    <table class="six columns">
+                      <tr>
+                        <td>
+                          
+                          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et. Lorem ipsum dolor sit amet.</p>
+
+                          <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et. Lorem ipsum dolor sit amet.</p>
+
+                          <a class="button" href="#">
+                            <table>
+                              <tr>
+                                <td>
+                                  Click Me!
+                                </td>
+                              </tr>
+                            </table>
+                          </a>
+
+                        </td>
+                        <td class="expander"></td>
+                      </tr>
+                    </table>
+
+                  </td>
+                  <td class="wrapper last">
+
+                    <table class="six columns">
+                      <tr>
+                        <td class="panel">
+                          <h6>Header Thing &raquo;</h6>
+                          <p>Sub-head or something</p>
+                          <a class="link" href="#">
+                            <table>
+                              <tr>
+                                <td>
+                                  Just a Plain Link &raquo;
+                                </td>
+                              </tr>
+                            </table>
+                          </a>
+                          <hr>
+                          <a class="link" href="#">
+                            <table>
+                              <tr>
+                                <td>
+                                  Just a Plain Link &raquo;
+                                </td>
+                              </tr>
+                            </table>
+                          </a>
+                          <hr>
+                          <a class="link" href="#">
+                            <table>
+                              <tr>
+                                <td>
+                                  Just a Plain Link &raquo;
+                                </td>
+                              </tr>
+                            </table>
+                          </a>
+                          <hr>
+                          <a class="link" href="#">
+                            <table>
+                              <tr>
+                                <td>
+                                  Just a Plain Link &raquo;
+                                </td>
+                              </tr>
+                            </table>
+                          </a>
+                          <hr>
+                          <a class="link" href="#">
+                            <table>
+                              <tr>
+                                <td>
+                                  Just a Plain Link &raquo;
+                                </td>
+                              </tr>
+                            </table>
+                          </a>
+                          <hr>
+                          <a class="link" href="#">
+                            <table>
+                              <tr>
+                                <td>
+                                  Just a Plain Link &raquo;
+                                </td>
+                              </tr>
+                            </table>
+                          </a>
+                          <hr>
+                          <a class="link" href="#">
+                            <table>
+                              <tr>
+                                <td>
+                                  Just a Plain Link &raquo;
+                                </td>
+                              </tr>
+                            </table>
+                          </a>
+                          <hr>
+                          <a class="link" href="#">
+                            <table>
+                              <tr>
+                                <td>
+                                  Just a Plain Link &raquo;
+                                </td>
+                              </tr>
+                            </table>
+                          </a>
+                          <hr>
+                          <a class="link" href="#">
+                            <table>
+                              <tr>
+                                <td>
+                                  Just a Plain Link &raquo;
+                                </td>
+                              </tr>
+                            </table>
+                          </a>
+                        </td>
+                        <td class="expander"></td>
+                      </tr>
+                    </table>
+                    <br>
+                    <table class="six columns">
+                      <tr>
+                        <td class="panel">
+                          <h6 style="margin-bottom:5px;">Connect With Us:</h6>
+                          <a class="tiny-button full facebook" href="#">
+                            <table>
+                              <tr>
+                                <td>
+                                  Facebook
+                                </td>
+                              </tr>
+                            </table>
+                          </a>
+                          <hr>
+                          <a class="tiny-button full twitter" href="#">
+                            <table>
+                              <tr>
+                                <td>
+                                  Twitter
+                                </td>
+                              </tr>
+                            </table>
+                          </a>
+                          <hr>
+                          <a class="tiny-button full google-plus" href="#">
+                            <table>
+                              <tr>
+                                <td>
+                                  Google +
+                                </td>
+                              </tr>
+                            </table>
+                          </a>
+                          <br>
+                          <h6 style="margin-bottom:5px;">Contact Info:</h6>
+                          <p>Phone: <b>408.341.0600</b></p>
+                          <p>Email: <a href="mailto:hseldon@trantor.com">hseldon@trantor.com</a></p>
+                        </td>
+                        <td class="expander"></td>
+                      </tr>
+                    </table>
+        
+                  </td>
+                </tr>
+              </table>
+              <br>
+              <br>
+              <!-- Legal + Unsubscribe -->            
+              <table class="row">
+                <tr>
+                  <td class="wrapper last">
+          
+                    <table class="twelve columns">
+                      <tr>
+                        <td align="center">
+                          <center>
+                            <p style="text-align:center;"><a href="#">Terms</a> | <a href="#">Privacy</a> | <a href="#"><unsubscribe>Unsubscribe</unsubscribe></a></p>
+                          </center>
+                        </td>
+                        <td class="expander"></td>
+                      </tr>
+                    </table>
+          
+                  </td>
+                </tr>
+              </table>
+              
+              <!-- container end below -->
+              </td>
+            </tr>
+          </table> 
+
+        </center>
+      </td>
+    </tr>
+  </table>
+</body>
+</html>
\ No newline at end of file