Add tarot-card__link class

This commit is contained in:
The Magician 2023-12-02 15:14:23 +00:00
parent 12f7dfb42e
commit 9c39cd0e79
2 changed files with 35 additions and 2 deletions

View File

@ -14,6 +14,15 @@
max-width: 80vw;
}
.tarot-card__link {
display: block;
width: 100%;
height: 100%;
color: inherit;
text-decoration: none;
}
.tarot-card__content {
width: 100%;
height: 100%;

View File

@ -55,6 +55,24 @@
</div>
-->
<!-- Simplest possible card. Just displays a title and a piece of artwork. -->
<div id="link-card" class="tarot-card">
<a class="tarot-card__link" href="https://themagician.cc">
<div class="tarot-card__content">
<div class="tarot-card__section tarot-card__section--art">
<img class="tarot-card__art"
src="images/card_art_std.jpg"
alt="The Link Card artwork image."
title="The Link Card artwork image." />
</div>
<div class="tarot-card__section tarot-card__section--title">
<p class="tarot-card__title">The Link Card.</p>
</div>
</div>
</a>
</div>
<!-- Identical to The Simple Card, but uses the "deal" animation to slide in when the page is loaded. -->
<!--
<div id="deal-card" class="tarot-card tarot-card--deal">
@ -74,6 +92,7 @@
-->
<!-- Uses the "flip" animation to turn over to the other side when hovered on. -->
<!--
<div id="flip-card" class="tarot-card tarot-card--flip-on-hover">
<div class="tarot-card__content">
<div class="tarot-card__side tarot-card__side--front">
@ -96,9 +115,11 @@
</div>
</div>
</div>
-->
<!-- Uses both the "deal" and "flip" animations. -->
<div id="flip-card" class="tarot-card tarot-card--deal tarot-card--flip-on-hover">
<!--
<div id="deal-flip-card" class="tarot-card tarot-card--deal tarot-card--flip-on-hover">
<div class="tarot-card__content">
<div class="tarot-card__side tarot-card__side--front">
<div class="tarot-card__section tarot-card__section--art">
@ -120,9 +141,11 @@
</div>
</div>
</div>
-->
<!-- Uses the "automatic flip" animation. -->
<div id="flip-card" class="tarot-card tarot-card--flip-automatically">
<!--
<div id="auto-flip-card" class="tarot-card tarot-card--flip-automatically">
<div class="tarot-card__content">
<div class="tarot-card__side tarot-card__side--front">
<div class="tarot-card__section tarot-card__section--art">
@ -144,6 +167,7 @@
</div>
</div>
</div>
-->
</div>
</body>