diff options
| author | stilbruch <stilbruch@protonail.com> | 2022-04-18 17:39:01 -0500 |
|---|---|---|
| committer | stilbruch <stilbruch@protonail.com> | 2022-04-18 17:39:01 -0500 |
| commit | b4fd832e44d2cc9ff151ee2fdb6575bb888b0656 (patch) | |
| tree | 8a29cd15e8886c9d01fc0e37cf27e7cebd955646 /app | |
| parent | 05d7b80e092f9a3699fedfb08b85812d57cef0e8 (diff) | |
| parent | b16c2b562dc17748e5ab9423ef0f364662287eab (diff) | |
| download | Strengthy-b4fd832e44d2cc9ff151ee2fdb6575bb888b0656.tar.xz Strengthy-b4fd832e44d2cc9ff151ee2fdb6575bb888b0656.zip | |
Merge branch 'master' of stilbruch.xyz:strengthy
Diffstat (limited to 'app')
| -rw-r--r-- | app/static/css/style.css | 4 | ||||
| -rw-r--r-- | app/templates/home.html | 4 | ||||
| -rw-r--r-- | app/templates/workout/create.html | 36 |
3 files changed, 23 insertions, 21 deletions
diff --git a/app/static/css/style.css b/app/static/css/style.css index e5eb7a3..4715c0d 100644 --- a/app/static/css/style.css +++ b/app/static/css/style.css @@ -12,5 +12,7 @@ } .welcome { - background: linear-gradient(to right, #5B86E5, #36D1DC); + background: linear-gradient(to right, #55F, #95F); + margin-bottom: 16px; + border-radius: 6px; } diff --git a/app/templates/home.html b/app/templates/home.html index d90ef6a..9f8dfe9 100644 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -7,10 +7,10 @@ <div class="hero-body"> <div class="container"> <h1 class="title"> - Hello, {{ current_user.username }}. + Hello {{ current_user.username }} </h1> <h2 class="subtitle"> - Welcome Back + Welcome to your home. </h2> </div> </div> diff --git a/app/templates/workout/create.html b/app/templates/workout/create.html index 72a056f..7446ec6 100644 --- a/app/templates/workout/create.html +++ b/app/templates/workout/create.html @@ -50,22 +50,20 @@ </div> {% endfor %} </div> -<div class="field is-grouped is-grouped-right"> - <p class="buttons"> - <p id="add" class="button is-primary"> - <span class="icon is-small"> - <i class="fa fa-plus"></i> - </span> - <span>Add Exercise</span> - </p> - - <button class="button is-success "> - <span class="icon is-small"> - <i class="fa fa-check"></i> - </span> - <span>Create Workout</span> - </button> - </p> +<div class="field is-horizontal is-grouped is-grouped-right"> + <p id="add" class="button is-primary"> + <span class="icon is-small"> + <i class="fa fa-plus"></i> + </span> + </p> +</div> +<div class="field is-horizontal is-grouped is-grouped-right"> + <button class="button is-success "> + <span class="icon is-small"> + <i class="fa fa-check"></i> + </span> + <span>Create Workout</span> + </button> </div> <script> @@ -92,8 +90,10 @@ } function handleDel(elem) { - // TODO: Make sure this isn't the last row - elem.parentNode.parentNode.remove(); + if (elem.parentNode.parentNode.parentNode.children.length > 1) { + console.log(elem.parentNode.parentNode.parentNode); + elem.parentNode.parentNode.remove(); + } } document.getElementById("add").onclick = handleAdd; </script> |
