diff --git a/db/migrations/1705145041_create_habits_table.sql b/db/migrations/1705145041_create_habits_table.sql new file mode 100644 index 0000000..c4b5b67 --- /dev/null +++ b/db/migrations/1705145041_create_habits_table.sql @@ -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 +); diff --git a/static/main.css b/static/main.css new file mode 100644 index 0000000..d31d692 --- /dev/null +++ b/static/main.css @@ -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%} +} \ No newline at end of file diff --git a/templates/layouts/main.html b/templates/layouts/main.html index a888ced..8b8c5ec 100644 --- a/templates/layouts/main.html +++ b/templates/layouts/main.html @@ -6,9 +6,12 @@