68 lines
1.3 KiB
CSS
68 lines
1.3 KiB
CSS
.tinder-container {
|
|
margin-top: 30%;
|
|
height: 50vh;
|
|
width: 100%;
|
|
display: flex;
|
|
justify-content: space-evenly;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.card-container {
|
|
position: relative;
|
|
display: flex;
|
|
height: 80px;
|
|
width: 120px;
|
|
flex-direction: column;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.swipe {
|
|
position: absolute;
|
|
width: 100%;
|
|
max-width: 300px;
|
|
max-height: 400px;
|
|
cursor: pointer;
|
|
transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out;
|
|
}
|
|
|
|
.swipe-left {
|
|
transform: translateX(-100%) rotate(-5deg);
|
|
opacity: 0;
|
|
}
|
|
|
|
.swipe-right {
|
|
transform: translateX(100%) rotate(5deg);
|
|
opacity: 0;
|
|
}
|
|
|
|
.card {
|
|
width: 80px;
|
|
max-width: 300px;
|
|
max-height: 400px;
|
|
border-radius: 10px;
|
|
background-size: cover;
|
|
background-position: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
align-items: flex-end;
|
|
align-content: center;
|
|
flex-wrap: wrap;
|
|
padding: 16px;
|
|
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
|
|
background-color: #fff;
|
|
}
|
|
|
|
.card-content {
|
|
border-radius: 10px;
|
|
padding: 8px;
|
|
text-align: center;
|
|
}
|
|
|
|
.infoText {
|
|
margin-top: 16px;
|
|
}
|
|
|