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("dotenv").config(); // read .env file if present. | |
const nodemailer = require("nodemailer"); | |
const createHtmlMail = require("./modules/mail-template"); // this function returns html email code | |
exports.handler = function(event, context, callback) { | |
const user = process.env.MAIL_USER; // [email protected] | |
const pass = process.env.MAIL_PASSWORD; // 42isthecoolestnumber | |
let transporter = nodemailer.createTransport({ |
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
<!-- Wherever your head tag is located, add the new partial --> | |
<head> | |
{{ partial "google-fonts" . }} | |
</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
// BREAKPOINTS | |
// from https://tailwindcss.com/docs/breakpoints | |
$bp-sm: 640px; | |
$bp-md: 768px; | |
$bp-lg: 1024px; | |
$bp-xl: 1200px; | |
// LINE HEIGHT | |
//from https://tailwindcss.com/docs/line-height |