yogibook-aury/public/provacard.php
2024-09-18 16:47:42 +02:00

132 lines
2.8 KiB
PHP

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<style>
.custom-card {
margin: 10px auto;
display: flex;
width: 90%;
max-width: 600px;
background-color: white;
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
border-radius: 8px;
overflow: hidden;
cursor: pointer;
transition: transform 0.2s;
}
.custom-card:hover {
transform: translateY(-5px);
}
.custom-date-box {
flex: 1;
background-color: red;
color: white;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 0;
font-size: 60px;
font-weight: bold;
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
}
.custom-day {
line-height: 1;
}
.custom-month {
font-size: 28px;
}
.custom-event-details {
flex: 2;
display: flex;
flex-direction: column;
padding: 10px 20px;
background-color: lightblue;
}
.custom-heading {
margin-top: 0;
font-size: 24px;
}
.custom-paragraph {
margin-bottom: 5px;
}
.custom-actions {
display: none;
flex-direction: row;
justify-content: space-between;
margin-top: 10px;
}
.custom-card.expanded .custom-actions {
display: flex;
}
.custom-action-button {
background-color: #f0f0f0;
border: none;
padding: 8px 12px;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.2s;
}
.custom-action-button:hover {
background-color: #e0e0e0;
}
@media (max-width: 768px) {
.custom-card {
flex-direction: column;
}
.custom-date-box, .custom-event-details {
width: 100%;
border-radius: 0;
}
.custom-event-time {
font-size: 24px;
}
}
</style>
</head>
<body>
<div class="custom-card" onclick="toggleCard(this)">
<div class="custom-date-box">
<div class="custom-day">15</div>
<div class="custom-month">Agosto</div>
</div>
<div class="custom-event-details">
<h2 class="custom-heading">Evento Speciale</h2>
<p class="custom-paragraph">Data: 15 Agosto 2023 Ora 18:00</p>
<p class="custom-paragraph">Luogo: Via Evento, Città</p>
<div class="custom-actions">
<button class="custom-action-button"><i class="far fa-calendar-plus"></i> Aggiungi a Cal</button>
<button class="custom-action-button"><i class="fas fa-edit"></i> Riprogramma</button>
<button class="custom-action-button"><i class="fas fa-trash-alt"></i> Cancella</button>
</div>
</div>
</div>
<!-- Aggiungi altre card qui con le stesse classi -->
<script>
function toggleCard(card) {
card.classList.toggle("expanded");
}
</script>
</body>
</html>