Giter Club home page Giter Club logo

typogram's Introduction

Typogram 🖼️

Typogram (a portmanteau of typography and instagram) is a simple web app to create nice-looking, minimalistic graphics that focus on a short snippet of text for sharing on the web.

Typogram allows you to set optional headers and footers to anchor or attribute a text or quote, and provides some minimal customization options for design style. You can enter text in Slack-style Markdown format (with *bold* and _italics_, etc.), and the parser supports a full gamut of semantic display elements including quotes, lists, and code blocks.

Screenshot Typogram

Typogram is built with my homebrew web technologies: Torus for the UI with an accompanying Markdown parser, and paper.css for some style. Typogram takes after the aesthetics of my personal blogs, thesephist.com and dotink.co.

Implementation

To render Markdown text, Typogram uses a simple (but sufficient) hand-written Markdown parser in /js/notation.js that quickly parses a variant of Markdown to JSON virtual DOM that Torus can efficiently render. This is passed to Torus's rendering logic.

The graphic is initially created and previewed as normal DOM elements, scaled to fit the editor on smaller displays. To download/export the graphic, Typogram depends on html2canvas which (mostly correctly) emulates the DOM to render an equivalent image on a canvas, which is then converted to a PNG. There are some known bugs in html2canvas, but I don't consider this a huge issue since screen-capturing the preview usually also works as a workaround.

typogram's People

Contributors

thesephist avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.