139 lines
5.7 KiB
HTML
139 lines
5.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Birthday Reminder</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
<style>
|
|
body {
|
|
background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
}
|
|
.card {
|
|
border-radius: 15px;
|
|
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
|
|
border: none;
|
|
margin-bottom: 20px;
|
|
}
|
|
.card-header {
|
|
background: linear-gradient(to right, #4b6cb7, #182848);
|
|
color: white;
|
|
border-radius: 15px 15px 0 0 !important;
|
|
font-weight: bold;
|
|
}
|
|
.birthday-card {
|
|
transition: transform 0.3s;
|
|
}
|
|
.birthday-card:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
.gift-icon {
|
|
font-size: 1.5rem;
|
|
color: #ffc107;
|
|
}
|
|
.no-gift {
|
|
color: #6c757d;
|
|
}
|
|
.gifted {
|
|
color: #28a745;
|
|
}
|
|
.upcoming {
|
|
background-color: rgba(40, 167, 69, 0.1);
|
|
}
|
|
.today {
|
|
background-color: rgba(220, 53, 69, 0.1);
|
|
}
|
|
.form-control:focus {
|
|
border-color: #4b6cb7;
|
|
box-shadow: 0 0 0 0.2rem rgba(75, 108, 180, 0.25);
|
|
}
|
|
.modal-content {
|
|
background: #fff;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<div class="card mb-4">
|
|
<div class="card-header">
|
|
<i class="fas fa-birthday-cake me-2"></i>Upcoming Birthdays
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<h5>Today</h5>
|
|
<ul class="list-group list-group-flush">
|
|
{{range .UpcomingBirthdays}}
|
|
{{if eq .DaysUntil 0}}
|
|
<li class="list-group-item d-flex justify-content-between align-items-center">
|
|
<span>{{.Name}}</span>
|
|
<span class="badge bg-danger rounded-pill">TODAY!</span>
|
|
</li>
|
|
{{end}}
|
|
{{end}}
|
|
</ul>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<h5>Coming Up</h5>
|
|
<ul class="list-group list-group-flush">
|
|
{{range .UpcomingBirthdays}}
|
|
{{if ne .DaysUntil 0}}
|
|
<li class="list-group-item d-flex justify-content-between align-items-center">
|
|
<span>{{.Name}}</span>
|
|
<span class="badge bg-primary rounded-pill">{{.DaysUntil}} days</span>
|
|
</li>
|
|
{{end}}
|
|
{{end}}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<div class="card mb-4">
|
|
<div class="card-header">
|
|
<i class="fas fa-plus-circle me-2"></i>Add New Birthday
|
|
</div>
|
|
<div class="card-body">
|
|
<form id="addBirthdayForm" method="post" action="/">
|
|
<div class="mb-3">
|
|
<label for="name" class="form-label">Name</label>
|
|
<input type="text" class="form-control" id="name" name="name" placeholder="Enter name" required>
|
|
</div>
|
|
<div class="mb-3">
|
|
<label for="birthday" class="form-label">Birthday</label>
|
|
<input type="date" class="form-control" id="birthday" name="birthday" required>
|
|
</div>
|
|
<div class="mb-3 form-check">
|
|
<input type="checkbox" class="form-check-input" id="giftPurchased" name="giftPurchased">
|
|
<label class="form-check-label" for="giftPurchased">Gift Purchased</label>
|
|
</div>
|
|
<button type="submit" class="btn btn-primary w-100">
|
|
<i class="fas fa-save me-2"></i>Add Birthday
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="footer">
|
|
<p>Birthday Reminder App © 2023</p>
|
|
</div>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script>
|
|
// Set today's date as minimum for date picker
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
const today = new Date().toISOString().split('T')[0];
|
|
document.getElementById('birthday').min = today;
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|