HabitTracker/templates/index.html

65 lines
1.7 KiB
HTML
Raw Normal View History

2024-01-12 10:57:58 +01:00
{% extends 'layouts/main.html' %}
{% block content %}
<h1><img class="avatar avatar-xl" src="{{user.profile_image}}"/>
2024-02-20 11:17:06 +01:00
{{ title }}</h1>
<h3>{{ utc_dt }}</h3>
<style>
#heatmap {
display: grid;
grid-template-columns: repeat(7, 0fr); /* 7 Tage in einer Woche */
gap: 5px;
width: 100%;
table-layout: fixed;
}
.day {
width: 50px;
height: 50px;
border: 1px solid #ccc;
display: flex;
align-items: center;
justify-content: center;
table-layout: fixed;
}
2024-02-20 11:17:06 +01:00
</style>
2024-02-20 11:17:06 +01:00
<div class="d-md-flex gap-3">
2024-02-20 11:17:06 +01:00
{% include 'components/heatmap.html' %}
2024-02-20 11:17:06 +01:00
{% include 'components/habit_lists.html' %}
2024-02-20 11:17:06 +01:00
<div class="modal fade" id="exampleModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="exampleModalLabel">Bestätige</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
2024-02-20 11:17:06 +01:00
</div>
<div class="modal-body">
Möchtest du dieses Habit wirklich löschen?
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary btn-danger" data-bs-dismiss="modal"
onclick="deleteHabit(selectedHabitId)">Löschen
</button>
2024-01-30 11:15:22 +01:00
</div>
</div>
</div>
</div>
2024-02-20 11:17:06 +01:00
</div>
{% include 'components/scripts.html' %}
2024-01-12 10:57:58 +01:00
{% endblock %}