102 lines
2.4 KiB
HTML
102 lines
2.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
|
|
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
|
|
<title>Main</title>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="content" class="W-100 d-flex flex-column">
|
|
<div id="carousel" class="mw-100 pt-4">
|
|
<div id="before" class="item">
|
|
<img src="https://api.backwards.dev/images/cat1.jpg" alt="">
|
|
</div>
|
|
<div id="current" class="item">
|
|
<img src="https://api.backwards.dev/images/cat2.jpg" alt="">
|
|
</div>
|
|
<div id="after" class="item">
|
|
<img src="https://api.backwards.dev/images/cat3.jpg" alt="">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="details">
|
|
<div class="row">
|
|
<span id="critter-type" class="row-item neu-out-flat">Cat</span>
|
|
<span id="date-found" class="row-item neu-out-flat">03/04/2025</span>
|
|
</div>
|
|
</div>
|
|
<style>
|
|
#before {
|
|
transform: translateX(-50%) translateX(-3em) scale(0.9);
|
|
}
|
|
|
|
#current {
|
|
z-index: 2;
|
|
}
|
|
|
|
#after {
|
|
transform: translateX(-50%) translateX(3em) scale(0.9);
|
|
z-index: 1;
|
|
}
|
|
|
|
#content {
|
|
height: 42vh;
|
|
}
|
|
|
|
#details {
|
|
width: 100%;
|
|
text-align: center;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: .5em;
|
|
}
|
|
|
|
.row {
|
|
gap: .5em;
|
|
}
|
|
|
|
.row-item {
|
|
width: max-content;
|
|
height: max-content;
|
|
padding: .25em 2em;
|
|
}
|
|
|
|
.neu-out-flat {
|
|
border-radius: 18px;
|
|
background: #e0e0e0;
|
|
box-shadow: 20px 20px 60px #bebebe,
|
|
-20px -20px 60px #ffffff;
|
|
}
|
|
|
|
.item {
|
|
width: 65vw;
|
|
height: 65vw;
|
|
position: absolute;
|
|
background-color: var(--bs-secondary-bg);
|
|
border-radius: 18px;
|
|
border: 1px solid #e0e0e0a1;
|
|
/* background: #e0e0e0;
|
|
box-shadow: 20px 20px 60px #bebebe,
|
|
-20px -20px 60px #ffffff;
|
|
padding: .5em; */
|
|
overflow: hidden;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
|
|
img {
|
|
aspect-ratio: 1/1;
|
|
width: inherit;
|
|
height: inherit;
|
|
object-fit: cover;
|
|
}
|
|
</style>
|
|
</body>
|
|
|
|
</html> |