Giter VIP home page Giter VIP logo

anki-material-flashcard's Introduction

Anki Material flashcard

The goal of this project is to have a supercharged version of the basic Anki flashcards (front and back fields). You can have a very basic card but with a good looking style and then add features like images, emojis, hints, headers, subheader, text blocks, etc. Also, you have several variants to choose.

Features

  • Material style
  • 11 color variants
  • Wide image support (front and back)
  • Header and subhedaer (front)
  • Back sections
  • External link icon
  • Hints
  • Pills
  • Emoji support
  • Audio controls, vertical and horizontal (front and back)

Screenshots

Light Dark
image image
image image

Demo

https://codepen.io/cdmoro/pen/ZEqbOLG

Installation

  1. Create a new card type on Anki (i.e. "Material basic")
  2. Copy the files into the right place (front, back and styles)
  3. Select the desired variant (optional)
  4. Voila!

Variants

Anki Material flashcard comes with several variants: base (default), blue, white, purple, pink, teal, green, and orange. All the colors were taken from the material color specification. Checkout the demo to see the colors in action!

Features

Audio

Audio style is supported out of the box. And the best is that you don't need to create a separate field for the audio, you can put it in the same field as the answer, for example, Water [audio:water.mp3] and voila!

Hints

Hints are supported, by default the display property is set to block and the text is displayed in italics. Add a hint is pretty straight forward, as you can see in the following example:

<div class="flashcard back base">
    {{FrontSide}}

    <hr id="answer">

    <div class="body">
        <div class="text-block">
           <div class="flex">{{Back}}</div>
          {{hint:Translation}}
        </div>
    </div>
</div>

Symbol class

If you are learning Chinese, Greek, and so, you can add the class symbol to the flashcards to get this more appeal style. Bonus tip: if you add a subheader element below the answer you can get this result:

<div class="flashcard front base symbol">
  <div class="body">
    漢字
    <div class="subheader">[kaɲdʑi]</div>
  </div>
</div>

image

Images

Back

<div class="flashcard back base">
  {{FrontSide}}
  <hr id="answer">
  <div class="body">
    <img src="https://picsum.photos/id/154/600/600" />
    <div class="text-block">
      <div class="flex">
        {{Back}}
      </div>
      {{hint:Variants}}
    </div>
  </div>
</div>

image

Header

<div class="flashcard front base">
  <div class="body">
    <div class="header">Greek nouns</div>
    Νερό
  </div>
</div>

image

Emoji

<div class="flashcard front base">
  <div class="body">
    <div class="emoji">🥣</div><br>Το πρωινό
  </div>
</div>

image

image

Examples

These examples were taken from imported decks and applied the Material flashcard (with minor adjustments).

image

image

image

Credits

anki-material-flashcard's People

Contributors

cdmoro avatar

Stargazers

 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.