Skip to content

Commit

Permalink
feat: full bar on right of project cards flips card
Browse files Browse the repository at this point in the history
  • Loading branch information
tikagan committed Jul 6, 2023
1 parent f07eed4 commit 0011c25
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions components/card.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<Button
v-if="sidebarImage && reverseImg"
:button="{ text: '' }"
class="card-flip-button"
@click.native="flipCard">
<div class="card-toggle">
<FlipIcon />
Expand Down Expand Up @@ -57,7 +58,7 @@
:button="cta">
</Button>
</div>

</div>

</div>
Expand Down Expand Up @@ -248,20 +249,26 @@ export default {
position: relative;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: flex-start;
.sidebar-text {
transition: 1ms linear 350ms;
height: calc(100% - 52px);
height: calc(100% - 70px);
opacity: 0;
}
.card-toggle {
.card-flip-button {
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: flex-end;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.card-toggle {
margin-bottom: toRem(21);
}
}
.card-content {
position: relative;
padding: 1.5rem toRem(19);
Expand Down

0 comments on commit 0011c25

Please # to comment.