Giter VIP home page Giter VIP logo

email_templates's Introduction

Maizzle Starter

Quickly build HTML emails with utility-first CSS

Version Build Downloads License

Getting Started

Overview

This repository contains a collection of email templates designed for various notifications and communications related to the KohortPay platform. The templates are built using Maizzle, a framework for rapidly developing email templates with Tailwind CSS.

Templates Included

  1. Payment Group Details
  2. New Member Joins the Group
  3. Authorization Payment
  4. Capture Payment
  5. Payment Group Completion

Setup & Usage

  1. Clone the Repository:
    git clone <repository-url>
  2. Navigate to the Project Directory:
    cd <project-directory>
  3. Install Dependencies:
    npm install
  4. Build the Templates:
    maizzle build

Template Structure

Each template is structured with a set of predefined components and variables, allowing for dynamic content injection. Components include headers, footers, buttons, and other UI elements, while variables hold the data to be displayed in the templates.

Components

  • <x-header>: Contains the email's main title and pretitle.
  • <x-footer>: Holds the footer information and any additional links.
  • <x-button>: Represents a clickable button, usually used for CTAs.
  • <x-item-row>: Displays individual items in a recapitulative section.
  • <x-total-row>: Shows the total amount in a recapitulative section.

Variables

Variables are used to inject dynamic content into the templates. They are defined in the config.js file under the locals object and are referenced in the templates using the @{{variableName}} syntax.

Example:

locals: {
  customer: {
    firstName: "John",
  },
  paymentIntent: {
    amount: "30€",
  },
  // ... other variables ...
}

Customization & Testing

  • Modify the variables in config.js to test the templates with different data sets.
  • Ensure that the templates are displayed correctly in various email clients and devices.
  • Adjust the variable names and structures as per project requirements and naming conventions.

License

The Maizzle framework is open-sourced software licensed under the MIT license.

email_templates's People

Contributors

devstar2004 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.