From b68ebe747569cf384b583f4be7bdb8e0d86af7cd Mon Sep 17 00:00:00 2001 From: Jorge Vasquez Perez Date: Thu, 22 Oct 2026 23:54:36 -0700 Subject: [PATCH] Fixed the date bar --- app/static/img/arrow_after.svg | 80 +++++++++------------------------ app/static/img/arrow_before.svg | 39 +++++++--------- app/static/style.css | 52 +++++++++------------ app/templates/base.html | 20 +++++++++ app/templates/index.html | 19 +++++--- 5 files changed, 91 insertions(+), 119 deletions(-) diff --git a/app/static/img/arrow_after.svg b/app/static/img/arrow_after.svg index 21dcafb..ae45e5d 100644 --- a/app/static/img/arrow_after.svg +++ b/app/static/img/arrow_after.svg @@ -1,14 +1,12 @@ - - - - - + showgrid="false" + inkscape:clip-to-page="true" + inkscape:zoom="2.5468752" + inkscape:cx="63.018401" + inkscape:cy="106.01226" + inkscape:window-width="2560" + inkscape:window-height="1440" + inkscape:window-x="0" + inkscape:window-y="0" + inkscape:window-maximized="1" + inkscape:current-layer="svg1" /> - - - - - + id="defs1" /> + diff --git a/app/static/img/arrow_before.svg b/app/static/img/arrow_before.svg index cd4206b..6bd55df 100644 --- a/app/static/img/arrow_before.svg +++ b/app/static/img/arrow_before.svg @@ -4,11 +4,11 @@ + inkscape:zoom="1.9845873" + inkscape:cx="64.245096" + inkscape:cy="127.98631" + inkscape:window-width="2560" + inkscape:window-height="1440" + inkscape:window-x="0" + inkscape:window-y="0" + inkscape:window-maximized="1" + inkscape:current-layer="svg1" /> - - - + diff --git a/app/static/style.css b/app/static/style.css index 86b8818..e431e4c 100644 --- a/app/static/style.css +++ b/app/static/style.css @@ -26,9 +26,10 @@ --wr-border-radius: 1.25em; --wr-widget-height: 1.5em; --wr-active-widget-height: 2em; - + --heart: url("data:image/svg+xml;utf8,"); + --arrow_before: url(/static/img/arrow_before.svg); + --arrow_after: url(/static/img/arrow_after.svg); } - /*Fonts*/ @font-face { font-family: abelRegular; @@ -40,6 +41,10 @@ } /*Html*/ +/* #path1 { + fill: blue; +}​ */ + html,body{ margin: 0px; padding: 0px; @@ -266,6 +271,7 @@ img.photo.C{ padding: .5em; font-family: abelBold; letter-spacing: -.075em; + color: var(--wr-white); } .next_ride_date{ @@ -273,7 +279,7 @@ img.photo.C{ } .ride_date.active{ - color: #390747; + color: var(--wr-dark-blue); } div.tag_reminder{ @@ -285,6 +291,7 @@ div.tag_reminder{ } .widget{ + color:var(--wr-white); height: var(--wr-widget-height); width: auto; margin: 0px; @@ -293,33 +300,8 @@ div.tag_reminder{ justify-content: center; align-items: center; } - -.widget:before, .widget:after { - display: inline-flex; - width: auto; - height: var(--wr-widget-height); - margin: 0px; - padding: 0px; - content: ''; -} - -.widget:before { - height: var(--wr-widget-height); - filter: var(--wr-white-filter); - content: url('./img/arrow_before.svg'); - position: relative; -} - -.widget:after { - height: var(--wr-widget-height); - filter: var(--wr-white-filter); - content: url('./img/arrow_after.svg'); - position: relative; -} - -.widget.ride_date.active::before,.widget.ride_date.active::after { - filter: var(--wr-dark-blue); - height: var(--wr-active-widget-height); +.widget:hover{ + cursor: pointer; } .widget-text{ @@ -332,7 +314,6 @@ div.tag_reminder{ color: var(--violet-main-color); } - .widget-text.active{ font-family: abelBold; height: var(--wr-active-widget-height); @@ -358,4 +339,11 @@ p{ overflow-y: scroll; overflow-x: hidden; } - \ No newline at end of file +/* svg{ + object-view-box: 0 0 128 256; + padding: 0; + margin: 0; + border-style: solid; + width: 10px; + height: auto; +} */ \ No newline at end of file diff --git a/app/templates/base.html b/app/templates/base.html index 6454ed8..0f8e7fb 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -11,6 +11,26 @@ {% endif %} + + + + + + + + + + {% block content %}{% endblock %} + + + + diff --git a/app/templates/index.html b/app/templates/index.html index 18462ed..4da56c1 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -1,8 +1,6 @@ {% extends "base.html" %} {% block content %} - - - +
@@ -124,13 +122,22 @@ {% for ride in rides %} {% if ride == next_ride %} -
{{ ride.strftime("%b-%d") }}
+ +
+ +
{{ ride.strftime("%b-%d") }}
+ +
{% else %} -
{{ ride.strftime("%b-%d") }}
+
+ +
{{ ride.strftime("%b-%d") }}
+ +
+ {% endif %} {% endfor %}
{% endblock %} -