This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Name: Stylus -margin mixin | |
| * Description: Mixin to set margins | |
| * Author: Santiago Rinc贸n | |
| * Author URI: http://github.com/rincorpes | |
| * Version: 2.0 | |
| * License: GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 | |
| * License URI: https://www.gnu.org/licenses/gpl-3.0.en.html | |
| */ | |
| -margin() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Name: Stylus -padding mixin | |
| * Description: Mixin to set paddings | |
| * Author: Santiago Rinc贸n | |
| * Author URI: http://github.com/rincorpes | |
| * Version: 2.0 | |
| * License: GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 | |
| * License URI: https://www.gnu.org/licenses/gpl-3.0.en.html | |
| */ | |
| -padding() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Name: Stylus -centered mixin | |
| * Description: Mixin to center elements | |
| * Author: Santiago Rinc贸n | |
| * Author URI: http://github.com/rincorpes | |
| * Version: 2.0 | |
| * License: GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 | |
| * License URI: https://www.gnu.org/licenses/gpl-3.0.en.html | |
| */ | |
| -center() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <!--[if IEMobile 7 ]> <html dir="ltr" lang="en-US"class="no-js iem7"> <![endif]--> | |
| <!--[if lt IE 7 ]> <html dir="ltr" lang="en-US" class="no-js ie6 oldie"> <![endif]--> | |
| <!--[if IE 7 ]> <html dir="ltr" lang="en-US" class="no-js ie7 oldie"> <![endif]--> | |
| <!--[if IE 8 ]> <html dir="ltr" lang="en-US" class="no-js ie8 oldie"> <![endif]--> | |
| <!--[if (gte IE 9)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html dir="ltr" lang="en-US" class="no-js"><!--<![endif]--> | |
| <head></head> | |
| <!--[if IE ]> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <article class="post"> | |
| <header> | |
| <h1 class="post-title">But Will It Make You Happy?</h1> | |
| <time class="post-updated" datetime="2017-03-14 21:36:03-0400" pubdate>03-14-2017</time> | |
| <p class="post-author"> | |
| By <span class="fn">Santiago Rinc贸n</span> | |
| </p> | |
| </header> | |
| <div class="post-content"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE HTML> | |
| <html lang="es" class="no-js"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Mi p谩gina Web</title> | |
| </head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mixin modalForm(params) | |
| //- Subscribe Form Moda | |
| .modal.fade(id=params.modalId, tabindex="-1", role="dialog", aria-labelledby=params.modalId, aria-hidden="true") | |
| .modal-dialog.modal-dialog-centered(role="document") | |
| .modal-content | |
| //- Form | |
| form(id=params.form.id, action=params.form.action, method="POST", data-submit=params.form.attrData.submit, data-disable-submition-btn=params.form.attrData.disableSubmitBtn, data-message=params.form.attrData.message) | |
| //- Modal Header | |
| .modal-header | |
| h5.modal-title(id="subscribeFormModalLongTitle") Recibe nuestras notificaciones |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var canvas = document.querySelector('canvas'); | |
| // we need this to load the font | |
| var myFont = new FontFace('myFont', 'url(assets/fonts/myFont/myFont.otf)'); | |
| myFont.load().then(function(font){ | |
| // with canvas, if this is ommited won't work | |
| document.fonts.add(font); | |
| console.log('Font loaded'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Require the module | |
| const { parseMailTemplate } = require("./path/to/parseMailTemplate"); | |
| // The params we need to pass | |
| const html = '<html lang="es"><head><meta charset="utf-8"><title>Email Verification</title></head><body><h1>Hey, {{ name }}</h1><p>You have just created an account on <strong>{{ company }}</strong>. Please click the following <a href="{{ link }}" target="_blank">link</a> so you can start using your account.</p></body></html>'; | |
| const data = { | |
| name: "Jhon Doe", | |
| company: "My awesome company", | |
| link: "http://example.com, | |
| }; |
OlderNewer