diff --git a/app/routes.py b/app/routes.py index abe726b..355b4f4 100644 --- a/app/routes.py +++ b/app/routes.py @@ -17,6 +17,9 @@ def get_next_ride_date( rides_list ): next_ride = active_rides[0] return next_ride +def get_week_day_name( a_date ): + return date.strftime( a_date ,"%A, %B %d" ) + @app.route('/') @app.route('/index') def index(): @@ -24,6 +27,7 @@ def index(): rides = get_rides() next_ride = get_next_ride_date(rides) user = {'username': 'Jorge'} + month_and_day = get_week_day_name( next_ride ) posts = [ { @@ -36,4 +40,4 @@ def index(): } ] - return render_template( 'index.html', title='Home', user=user, posts=posts, rides=rides, next_ride=next_ride) ## objects/variables to send over to templates. + return render_template( 'index.html', title='Home', user=user, posts=posts, rides=rides, month_and_day=month_and_day, next_ride=next_ride) ## objects/variables to send over to templates. diff --git a/app/static/font/AbelPro-Bold.woff b/app/static/font/AbelPro-Bold.woff new file mode 100644 index 0000000..e4c0fa9 Binary files /dev/null and b/app/static/font/AbelPro-Bold.woff differ diff --git a/app/static/img/arrow_after.svg b/app/static/img/arrow_after.svg new file mode 100644 index 0000000..21dcafb --- /dev/null +++ b/app/static/img/arrow_after.svg @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + diff --git a/app/static/img/arrow_before.svg b/app/static/img/arrow_before.svg new file mode 100644 index 0000000..cd4206b --- /dev/null +++ b/app/static/img/arrow_before.svg @@ -0,0 +1,48 @@ + + + + + + + + + + diff --git a/app/static/img/backpack_b&w.webp b/app/static/img/backpack_b&w.webp new file mode 100644 index 0000000..610e37c Binary files /dev/null and b/app/static/img/backpack_b&w.webp differ diff --git a/app/static/img/backpack_blue.webp b/app/static/img/backpack_blue.webp new file mode 100644 index 0000000..ba3ddd4 Binary files /dev/null and b/app/static/img/backpack_blue.webp differ diff --git a/app/static/img/backpack_green.webp b/app/static/img/backpack_green.webp new file mode 100644 index 0000000..76e9e08 Binary files /dev/null and b/app/static/img/backpack_green.webp differ diff --git a/app/static/img/backpack_purple.webp b/app/static/img/backpack_purple.webp new file mode 100644 index 0000000..9619829 Binary files /dev/null and b/app/static/img/backpack_purple.webp differ diff --git a/app/static/img/backpack_red.webp b/app/static/img/backpack_red.webp new file mode 100644 index 0000000..e7bda02 Binary files /dev/null and b/app/static/img/backpack_red.webp differ diff --git a/app/static/img/backpack_yellow.webp b/app/static/img/backpack_yellow.webp new file mode 100644 index 0000000..62a3364 Binary files /dev/null and b/app/static/img/backpack_yellow.webp differ diff --git a/app/static/img/keychain.webp b/app/static/img/keychain.webp new file mode 100644 index 0000000..2c07954 Binary files /dev/null and b/app/static/img/keychain.webp differ diff --git a/app/static/img/map_v2.svg b/app/static/img/map_v2.svg index 2c385ee..5e925bb 100755 --- a/app/static/img/map_v2.svg +++ b/app/static/img/map_v2.svg @@ -23,14 +23,14 @@ inkscape:deskcolor="#d1d1d1" inkscape:document-units="pt" inkscape:zoom="0.64" - inkscape:cx="918.75" - inkscape:cy="565.625" + inkscape:cx="881.25" + inkscape:cy="651.5625" inkscape:window-width="2560" inkscape:window-height="1440" inkscape:window-x="0" inkscape:window-y="0" inkscape:window-maximized="1" - inkscape:current-layer="svg12644" />#1 US BANK#3 PORT & EMPORIA#2 SAWTELLEBRIDGE + + +walk Roller& diff --git a/app/static/style.css b/app/static/style.css index 70443da..c01adfe 100644 --- a/app/static/style.css +++ b/app/static/style.css @@ -1,22 +1,47 @@ :root { --violet-main-color: #ad76d4; + --violet-main-color-filter: invert(79%) sepia(34%) saturate(6966%) hue-rotate(220deg) brightness(86%) contrast(92%); --violet-accent-color: #cd90db; + --violet-accent-color-filter: invert(83%) sepia(16%) saturate(3750%) hue-rotate(207deg) brightness(88%) contrast(95%); --violet-dark-color: #a758c8; + --violet-dark-color-filter: invert(43%) sepia(28%) saturate(1529%) hue-rotate(240deg) brightness(94%) contrast(82%); --violet-darker-color: #390747; - --wr-black:#0c1625; + --violet-darker-color-filter: invert(8%) sepia(33%) saturate(5024%) hue-rotate(272deg) brightness(116%) contrast(108%); --wr-blue:#0e92e2; + --wr-blue-filter: invert(41%) sepia(76%) saturate(1842%) hue-rotate(177deg) brightness(95%) contrast(89%); --wr-dark-blue:#14253d; + --wr-dark-blue-filter: filter: invert(8%) sepia(87%) saturate(1211%) hue-rotate(194deg) brightness(93%) contrast(89%); --wr-orange:#ff6600; + --wr-orange-filter: invert(52%) sepia(94%) saturate(4085%) hue-rotate(3deg) brightness(105%) contrast(105%); --wr-pink:#ff0060; + --wr-pink-filter: invert(18%) sepia(83%) saturate(7497%) hue-rotate(331deg) brightness(99%) contrast(107%); --wr-red:#d52311; + --wr-red-filter: invert(17%) sepia(72%) saturate(3993%) hue-rotate(359deg) brightness(109%) contrast(89%); --wr-white:#ffffff; + --wr-white-filter: invert(98%) sepia(98%) saturate(0%) hue-rotate(337deg) brightness(103%) contrast(103%); --wr-yellow:#e8d55d; + --wr-yellow-filter: invert(77%) sepia(30%) saturate(679%) hue-rotate(12deg) brightness(101%) contrast(98%); + --wr-black:#0c1625; --wr-border-radius: 1em; + --wr-widget-height: 1.5em; + --wr-active-widget-height: 2em; + +} +#section1{ + height: 100vh; +} +html,body{ + margin: 0px; + padding: 0px; } @font-face { font-family: abelRegular; /* set name */ src: url(/static/font/Abel-Regular.woff); /* url of the font */ } +@font-face { + font-family: abelBold; /* set name */ + src: url(/static/font/AbelPro-Bold.woff); /* url of the font */ +} html{ transition: all cubic-bezier(0.075, 0.82, 0.165, 1); @@ -26,6 +51,7 @@ html{ body{ background-color: var(--violet-main-color); background-image: url("./img/pattern.svg"); + background-attachment: fixed; background-size: 12em; max-width: 100%; display: flex; @@ -38,6 +64,13 @@ body{ display: flex; flex-direction: row; } +.column{ + display: flex; + flex-direction: column; +} +.wrapping{ + flex-wrap: wrap; +} .ride_date{ display: block; padding: .5em; @@ -47,12 +80,11 @@ body{ } .ride_date.active{ color: #390747; - background-color: #ffffff; - padding: .5em; - border-radius: .25em; } h1,h3{ + letter-spacing: -.075em; color: var(--wr-yellow); + line-height: .9; } /* h1{ font-size: 3em; @@ -77,10 +109,14 @@ img.icon{ max-height: 3em; float: left; border-radius: 0em; + padding: .5em; } img.emwrlogo{ - max-width: 100%; - max-height: 8em; + max-height: 20em; + background-size: cover; + background-image: url('/static/img/backpack_purple.webp'); + position: relative; + top: -5em; } img.map{ max-width: 100%; @@ -95,6 +131,10 @@ img.photo{ object-fit: cover; border-radius: var(--wr-border-radius); } +img.photo.main{ + width: 100%; + height: auto; +} img.photo.A{ width: 12em; } @@ -117,25 +157,108 @@ div.container{ max-width: 50em; align-items:center; } -div.next_ride_reminder{ +div.tag_reminder{ position: fixed; overflow-y: scroll; overflow-x: hidden; - bottom: 1em; + top: 1em; right: 1em; } - + .widget{ - background-color: #14253d; - height: 1em; + height: var(--wr-widget-height); + width: auto; + margin: 0px; + padding: 0px; + display: flex; + 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 { - content: url('./img/wr_clock.svg'); - max-height: 1em; - max-width: 1em; + height: var(--wr-widget-height); + filter: var(--wr-white-filter); + content: url('./img/arrow_before.svg'); + position: relative; } .widget:after { - content: url('./img/wr_clock.svg'); - max-height: 1em; - max-width: 1em; + height: var(--wr-widget-height); + filter: var(--wr-white-filter); + content: url('./img/arrow_after.svg'); + position: relative; +} +.widget.ride_date.active{ + padding: 10px; +} +.widget.ride_date.active::before,.widget.ride_date.active::after { + filter: var(--wr-dark-blue); + height: var(--wr-active-widget-height); +} +.widget-text{ + display: flex; + height: var(--wr-widget-height); + width: 100%; + margin: 0px; + padding: 0px; + background-color:var(--wr-white); + color: var(--violet-main-color); + +} +.widget-text.active{ + font-family: abelBold; + height: var(--wr-active-widget-height); + background-color: var(--wr-dark-blue); + color: var(--wr-yellow); + padding-left:.25em; + padding-right:.25em; + font-size: 1em; +} + +.centered{ + display: flex; + justify-content: center; + align-items: center; +} +.menu{ + position: absolute; + top: 0em; + justify-content: center; +} +.section{ + padding: 0px; + margin: 0px; +} +.backpack{ + max-height: 15em; + width: auto; +} +.box{ + border-style: solid; + background-color: var(--violet-main-color); + padding-top: .5em; + padding-bottom: .5em; + padding-left: 1.5em; + padding-right: 1.5em; + border-radius: 1.25em; + border-width: .125em; + border-color: var(--violet-accent-color); + margin-left:2em; + margin-right:2em; +} +#dates_bar{ + position: fixed; + bottom: 0px; + justify-content: center; + overflow-y: scroll; + overflow-x: hidden; } \ No newline at end of file diff --git a/app/templates/base.html b/app/templates/base.html index d65f1bb..6454ed8 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -11,8 +11,6 @@ {% endif %} - El Marino Walk and Rollers:Home - {% block content %}{% endblock %}