Compare commits

...

2 Commits

Author SHA1 Message Date
Yapollon
557798e1f3 Merge branch 'master' of https://repo.cimeyclust.com/CimeyClust/HabitTracker 2024-01-13 12:47:49 +01:00
Yapollon
9573b58d50 Stylesheet for main.html
Table for Habits
2024-01-13 12:42:54 +01:00
3 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,9 @@
CREATE TABLE IF NOT EXISTS habits
(
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL,
note TEXT NOT NULL,
times TEXT NOT NULL,
created_at TEXT NOT NULL,
updated_at TEXT NOT NULL
);

24
static/main.css Normal file
View File

@ -0,0 +1,24 @@
.animated_background {
background: linear-gradient(229deg, #4bb1c1, #8525d7, #d76d25);
background-size: 600% 600%;
-webkit-animation: AnimationName 24s ease infinite;
-moz-animation: AnimationName 24s ease infinite;
animation: AnimationName 24s ease infinite;
}
@-webkit-keyframes AnimationName {
0%{background-position:0 50%}
50%{background-position:100% 50%}
100%{background-position:0 50%}
}
@-moz-keyframes AnimationName {
0%{background-position:0 50%}
50%{background-position:100% 50%}
100%{background-position:0 50%}
}
@keyframes AnimationName {
0%{background-position:0 50%}
50%{background-position:100% 50%}
100%{background-position:0 50%}
}

View File

@ -6,9 +6,12 @@
<title>{{ title }} - HabitTracker</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="/static/main.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
</head>
<body>
<div class="vh-min-100 animated_background" style="min-height: 100vh">
<nav class="navbar navbar-expand-lg bg-body-tertiary">
<div class="container-fluid">
<a class="navbar-brand" href="{{ url_for('index') }}">HabitTracker</a>
@ -52,6 +55,7 @@
</div>
</div>
</nav>
<div class="container mt-3">
{% block content %} {% endblock %}
@ -59,5 +63,6 @@
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.min.js" integrity="sha384-BBtl+eGJRgqQAUMxJ7pMwbEyER4l1g+O15P+16Ep7Q9Q+zqX6gSbd85u4mG4QzX+" crossorigin="anonymous"></script>
</div>
</div>
</body>
</html>