Skip to content

Instantly share code, notes, and snippets.

@sakapun
Created December 29, 2018 18:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sakapun/0f2b8d8ca9439117ad664529461148f7 to your computer and use it in GitHub Desktop.
Save sakapun/0f2b8d8ca9439117ad664529461148f7 to your computer and use it in GitHub Desktop.
<html>
  <head>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/paper-css/0.4.1/paper.min.css" />
    <style>
      .flex {display: flex; width: 100%; flex-wrap: wrap; justify-content: space-around; padding: 10px}
      .content {width: 370px; height: 370px; margin-top: 0px; background: white; }
      .content-main {height: 320px; border: 4px solid #333;}
      .content-footer {text-align: center;}
    </style>
  </head>
<body class="A4">
    <section class="sheet flex">
    {% for item in items %}
        <div class="content">
            <div class="content-main"></div>
            <div class="content-footer">{{item.name}}</div>
        </div>
        {% if loop.index % 6 == 0 and not loop.last %}
    </section>
    <section class="sheet flex">
        {% endif %}
    {% endfor %}
    </section>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment