catan-client
Version:
Settlers of Catan Client Implementation
93 lines (74 loc) • 1.87 kB
Markdown
# Card
A card is a self-contained, highly-replicated class. It works great with other of its kind.
<div class="row">
<article class="card">
<img src="/img/forest.jpg">
<footer>
<h3>Misty Forest</h3>
<button>Like</button>
</footer>
</article>
<article class="card">
<img src="/img/lake.jpg">
<footer>
<h3>Sunset Lake</h3>
<button>Like</button>
</footer>
</article>
</div>
## Simple card
A card can consist of only one element. It can be expressed as something really simple:
<article class="card">
<header>
<h3>A really simple h3</h3>
</header>
</article><br>
<article class="card">
<header>
<button>Love</button>
<button class="dangerous">Hate</button>
</header>
</article><br>
<article class="card">
<header>
<h3>Forest</h3>
</header>
<footer>
<button>Like</button>
</footer>
</article>
<article class="card">
<header>
<h3>A really simple h3</h3>
</header>
</article><br>
<article class="card">
<header>
<button>Love</button>
<button class="dangerous">Hate</button>
</header>
</article><br>
<article class="card">
<header>
<h3>Forest</h3>
</header>
<footer>
<button>Like</button>
</footer>
</article>
## Complex card
A card can also combine several, very different elements.
<article class="card">
<img src="/img/forest.jpg">
<footer>
<h3>Misty Forest</h3>
<p>Include the image <em>misty forest</em> in your webpage:</p>
<!-- To stop the html and the link -->
<pre><img src="http://example.com/forest.jpg" ></pre>
<p>Did you find it useful?</p>
<button>Yeah!</button>
<button class="warning">No...</button>
</footer>
</article>
## Modal
Cards are used as part of the [modal plugin](/plugins/modal)