From e2e4f6a11e598e390cf87d4e9194e3ca5e34cdc5 Mon Sep 17 00:00:00 2001 From: Jorge Vasquez Perez Date: Mon, 12 Oct 2026 10:30:09 -0700 Subject: [PATCH] Reorganized CSS stylesheet, and added a menu and smooth scrolling --- app/routes.py | 7 +- app/static/img/pattern.svg | 22 +-- app/static/style.css | 253 +++++++++++++++++++++++------------ app/templates/dates_bar.html | 10 -- app/templates/index.html | 128 +++++++++--------- 5 files changed, 254 insertions(+), 166 deletions(-) diff --git a/app/routes.py b/app/routes.py index 355b4f4..fb8936a 100644 --- a/app/routes.py +++ b/app/routes.py @@ -20,6 +20,9 @@ def get_next_ride_date( rides_list ): def get_week_day_name( a_date ): return date.strftime( a_date ,"%A, %B %d" ) +def get_short_day_name_and_date( a_date ): + return date.strftime( a_date ,"%b %d" ) + @app.route('/') @app.route('/index') def index(): @@ -28,7 +31,7 @@ def index(): next_ride = get_next_ride_date(rides) user = {'username': 'Jorge'} month_and_day = get_week_day_name( next_ride ) - + short_day_name_and_date = get_short_day_name_and_date( next_ride ) posts = [ { 'author': {'username':'Guybrush'}, @@ -40,4 +43,4 @@ def index(): } ] - 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. + return render_template( 'index.html', title='Home', user=user, posts=posts, rides=rides, month_and_day=month_and_day, short_day_name_and_date=short_day_name_and_date, next_ride=next_ride) ## objects/variables to send over to templates. diff --git a/app/static/img/pattern.svg b/app/static/img/pattern.svg index 1694ff6..21aca19 100644 --- a/app/static/img/pattern.svg +++ b/app/static/img/pattern.svg @@ -8,7 +8,7 @@ version="1.1" id="svg1" inkscape:version="1.4.4 (dcaf3e7d9e, 2026-05-05)" - sodipodi:docname="pattern_v2.svg" + sodipodi:docname="pattern.svg" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns="http://www.w3.org/2000/svg" @@ -24,7 +24,7 @@ inkscape:deskcolor="#d1d1d1" inkscape:document-units="mm" inkscape:zoom="0.45254834" - inkscape:cx="323.72232" + inkscape:cx="322.61747" inkscape:cy="490.55533" inkscape:window-width="2560" inkscape:window-height="1440" @@ -75,7 +75,7 @@ inkscape:tile-x0="733.11872" inkscape:tile-y0="908.31497" transform="matrix(0.16262146,-0.16262146,0.16262146,0.16262146,-1075.8097,-99.496743)" - style="opacity:0.3;fill:#ffffff;fill-opacity:1;stroke:none"> + style="opacity:0.2;fill:#ffffff;fill-opacity:1;stroke:none"> + style="opacity:0.2;fill:#ffffff;fill-opacity:1;stroke:none"> + style="opacity:0.2;fill:#ffffff;fill-opacity:1;stroke:none"> + style="opacity:0.2;fill:#ffffff;fill-opacity:1;stroke:none"> + style="opacity:0.2;fill:#ffffff;fill-opacity:1;stroke:none"> + style="opacity:0.2;fill:#ffffff;fill-opacity:1;stroke:none"> + style="opacity:0.2;fill:#ffffff;fill-opacity:1;stroke:none"> + style="opacity:0.2;fill:#ffffff;fill-opacity:1;stroke:none"> + style="opacity:0.2;fill:#ffffff;fill-opacity:1;stroke:none"> - - {% for ride in rides %} - {% if ride == next_ride %} -
{{ ride.strftime("%b-%d") }}
- {% else %} -
{{ ride.strftime("%b-%d") }}
- {% endif %} - {% endfor %} - \ No newline at end of file diff --git a/app/templates/index.html b/app/templates/index.html index d7e0051..91e0d62 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -1,6 +1,8 @@ {% extends "base.html" %} {% block content %} + +
@@ -8,73 +10,79 @@
-
-

- Ride, scoot or walk with us next on {% print(month_and_day) %} ! -

+
+

Ride, scoot or walk with us next on {% print(month_and_day) %} !

+

Join us this {% print(short_day_name_and_date) %} for a group ride/walk from one of our three locations. We will depart at 8:25am.

+
+
+ +

+ We'll have delicious treats for all of you at the front gate!!! +

- ccwalkandroll.com
- -

- - If you don't have your tags, ask for one from one of our volunteers to get participation credit! -

- -

- Join us this Dec 5th for a group ride/walk from one of our three locations. We will depart at 8:25am. -

- -

- We'll have delicious treats for all of you at the front gate!!! -

- - -

- On other days... -

-

- TAKE THE 3 BLOCK CHALLENGE! -

-

- Park 3 blocks away from school and walk in with your child. - -

-

- There are plenty of convenient spots in the neighborhood. Not only will it help reduce traffic and pollution around El Marino, you'll save yourself the hassle of hunting for parking while giving yourself and your child a calmer and healthier start to the day. Just leave home 5 minutes earlier, park a few blocks from school, and walk in together.You'll be amazed at what a difference it makes! -

- -

- Starting Locations -

- -

- Come to one of our three convenient locations the first Friday of every month of the school year: -

- -
- - {% for ride in rides %} - {% if ride == next_ride %} -
{{ ride.strftime("%b-%d") }}
- {% else %} -
{{ ride.strftime("%b-%d") }}
- {% endif %} +
+
+
+
+ +

Starting Locations

+

Come to one of our three convenient locations the first Friday of every month of the school year:

+
+ +
+
+ +

On other days...

+

TAKE THE 3 BLOCK CHALLENGE!

+

Park 3 blocks away from school and walk in with your child.

+

There are plenty of convenient spots in the neighborhood. Not only will it help reduce

+

Please check in with our volunteers at one of three locations between 8:00am and 8:25am, where your child will receive credit for their participation. Choose to continue to school with your child or join in as a group leaving at 8:30am.

+
+
+
+ +
+ {% for post in posts %} +

{{ post.author.username }} says: {{ post.body }}

{% endfor %}
- - -

- Please check in with our volunteers at one of three locations between 8:00am and 8:25am, where your child will receive credit for their participation. Choose to continue to school with your child or join in as a group leaving at 8:30am. -

- -
-
+ +
+ +
+
+
+ +
+

If you don't have your tags, ask for one from one of our volunteers to get participation credit!

+
+
+
+
+ + + +
+ + {% for ride in rides %} + {% if ride == next_ride %} +
{{ ride.strftime("%b-%d") }}
+ {% else %} +
{{ ride.strftime("%b-%d") }}
+ {% endif %} + {% endfor %} +
+
{% endblock %}