commit 9f2e3a577098ce88252a5a352828287c605b723e Author: Jorge Vasquez Perez Date: Mon Sep 7 13:24:50 2026 -0700 started tracking progress diff --git a/.flaskenv b/.flaskenv new file mode 100644 index 0000000..f74d688 --- /dev/null +++ b/.flaskenv @@ -0,0 +1 @@ +FLASK_APP=emwr.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0d27464 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +__pycache__ +venv/ diff --git a/app/__init__.py b/app/__init__.py new file mode 100644 index 0000000..96c8ef5 --- /dev/null +++ b/app/__init__.py @@ -0,0 +1,5 @@ +from flask import Flask + +app = Flask(__name__) + +from app import routes diff --git a/app/routes.py b/app/routes.py new file mode 100644 index 0000000..8bd9da1 --- /dev/null +++ b/app/routes.py @@ -0,0 +1,34 @@ +from os import getcwd, sep +from datetime import date +from flask import render_template +from app import app + +def get_next_ride_date( rides_list ): + rides_list.sort() + active_rides = [] + for ride_date in rides_list: + if ride_date > date.today(): + active_rides.append( ride_date ) + return active_rides[0] + + +@app.route('/') +@app.route('/index') +def index(): + rides_file = open( getcwd() + sep + "data/rides.txt") + rides = [ date.strptime( ride_date_str ,"%Y/%m/%d") for ride_date_str in rides_file.read().split("\n") ] + next_ride = get_next_ride_date(rides) + user = {'username': 'Jorge'} + + posts = [ + { + 'author': {'username':'Guybrush'}, + 'body': "How appropriate, you fight like a cow!" + }, + { + 'author': {'username':'LeChuck'}, + 'body': "I distinctly remember ordering a mystical voodo potion." + } + ] + + return render_template( 'index.html', title='Home', user=user, posts=posts, rides=rides, next_ride=next_ride) ## objects/variables to send over to templates. diff --git a/app/static/font/Abel-Regular.eot b/app/static/font/Abel-Regular.eot new file mode 100644 index 0000000..be42162 Binary files /dev/null and b/app/static/font/Abel-Regular.eot differ diff --git a/app/static/font/Abel-Regular.ttf b/app/static/font/Abel-Regular.ttf new file mode 100644 index 0000000..01cd6fa Binary files /dev/null and b/app/static/font/Abel-Regular.ttf differ diff --git a/app/static/font/Abel-Regular.woff b/app/static/font/Abel-Regular.woff new file mode 100644 index 0000000..ecfca6b Binary files /dev/null and b/app/static/font/Abel-Regular.woff differ diff --git a/app/static/font/Abel-Regular.woff2 b/app/static/font/Abel-Regular.woff2 new file mode 100644 index 0000000..1798510 Binary files /dev/null and b/app/static/font/Abel-Regular.woff2 differ diff --git a/app/static/font/demo.html b/app/static/font/demo.html new file mode 100644 index 0000000..7caab28 --- /dev/null +++ b/app/static/font/demo.html @@ -0,0 +1,207 @@ + + + + + + + + + Transfonter demo + + + + +
+
+

Abel Regular

+
.your-style {
+    font-family: 'Abel';
+    font-weight: normal;
+    font-style: normal;
+}
+
+

+ abcdefghijklmnopqrstuvwxyz
+ABCDEFGHIJKLMNOPQRSTUVWXYZ
+ 0123456789.:,;()*!?'@#<>$%&^+-=~ +

+

The quick brown fox jumps over the lazy dog.

+

The quick brown fox jumps over the lazy dog.

+

The quick brown fox jumps over the lazy dog.

+

The quick brown fox jumps over the lazy dog.

+

The quick brown fox jumps over the lazy dog.

+

The quick brown fox jumps over the lazy dog.

+

The quick brown fox jumps over the lazy dog.

+

The quick brown fox jumps over the lazy dog.

+

The quick brown fox jumps over the lazy dog.

+

The quick brown fox jumps over the lazy dog.

+

The quick brown fox jumps over the lazy dog.

+
+
+
+ + \ No newline at end of file diff --git a/app/static/font/stylesheet.css b/app/static/font/stylesheet.css new file mode 100644 index 0000000..00e3f56 --- /dev/null +++ b/app/static/font/stylesheet.css @@ -0,0 +1,12 @@ +@font-face { + font-family: 'Abel'; + src: url('Abel-Regular.eot'); + src: local('Abel Regular'), local('Abel-Regular'), + url('Abel-Regular.eot?#iefix') format('embedded-opentype'), + url('Abel-Regular.woff2') format('woff2'), + url('Abel-Regular.woff') format('woff'), + url('Abel-Regular.ttf') format('truetype'); + font-weight: normal; + font-style: normal; +} + diff --git a/app/static/img/map_v2.svg b/app/static/img/map_v2.svg new file mode 100755 index 0000000..2c385ee --- /dev/null +++ b/app/static/img/map_v2.svg @@ -0,0 +1,22858 @@ + +Sawtelle Blvd.McDonald St.Purdue Ave.Port Rd.Hayter Ave.#1 US BANK#3 PORT & EMPORIA#2 SAWTELLEBRIDGEEL MARINO diff --git a/app/static/img/pattern.svg b/app/static/img/pattern.svg new file mode 100644 index 0000000..1694ff6 --- /dev/null +++ b/app/static/img/pattern.svg @@ -0,0 +1,3787 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/static/img/wr_calendar.svg b/app/static/img/wr_calendar.svg new file mode 100755 index 0000000..d5e831c --- /dev/null +++ b/app/static/img/wr_calendar.svg @@ -0,0 +1,65 @@ + + + + + + + + + + + + diff --git a/app/static/img/wr_clock.svg b/app/static/img/wr_clock.svg new file mode 100755 index 0000000..e6777a5 --- /dev/null +++ b/app/static/img/wr_clock.svg @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + diff --git a/app/static/img/wr_comment.svg b/app/static/img/wr_comment.svg new file mode 100755 index 0000000..e218a2b --- /dev/null +++ b/app/static/img/wr_comment.svg @@ -0,0 +1,65 @@ + + + + + + + + + + + + diff --git a/app/static/img/wr_icons.svg b/app/static/img/wr_icons.svg new file mode 100755 index 0000000..ba0d599 --- /dev/null +++ b/app/static/img/wr_icons.svg @@ -0,0 +1,205 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/static/img/wr_logo.svg b/app/static/img/wr_logo.svg new file mode 100755 index 0000000..d51593c --- /dev/null +++ b/app/static/img/wr_logo.svg @@ -0,0 +1,118 @@ + + + + + + + + + + walk Roller + & + + + + + + diff --git a/app/static/img/wr_marked_map.svg b/app/static/img/wr_marked_map.svg new file mode 100755 index 0000000..1e63c5b --- /dev/null +++ b/app/static/img/wr_marked_map.svg @@ -0,0 +1,65 @@ + + + + + + + + + + + + diff --git a/app/static/img/wr_phone.svg b/app/static/img/wr_phone.svg new file mode 100755 index 0000000..8cf44a7 --- /dev/null +++ b/app/static/img/wr_phone.svg @@ -0,0 +1,65 @@ + + + + + + + + + + + + diff --git a/app/static/img/wr_tachometer.svg b/app/static/img/wr_tachometer.svg new file mode 100755 index 0000000..be422bc --- /dev/null +++ b/app/static/img/wr_tachometer.svg @@ -0,0 +1,65 @@ + + + + + + + + + + + + diff --git a/app/static/style.css b/app/static/style.css new file mode 100644 index 0000000..850e7eb --- /dev/null +++ b/app/static/style.css @@ -0,0 +1,102 @@ +:root { + --violet-main-color: #ad76d4; + --violet-accent-color: #cd90db; + --violet-dark-color: #a758c8; + --violet-darker-color: #390747; + --wr-black:#0c1625; + --wr-blue:#0e92e2; + --wr-dark-blue:#14253d; + --wr-orange:#ff6600; + --wr-pink:#ff0060; + --wr-red:#d52311; + --wr-white:#ffffff; + --wr-yellow:#e8d55d; +} +@font-face { + font-family: abelRegular; /* set name */ + src: url(/static/font/Abel-Regular.woff); /* url of the font */ +} + +html{ + transition: all cubic-bezier(0.075, 0.82, 0.165, 1); + font-family: abelRegular; + font-size: 1.25em; +} +body{ + background-color: var(--violet-main-color); + background-image: url("./img/pattern.svg"); + background-size: 12em; + max-width: 100%; + display: flex; + flex-direction: column; +} +.ccwr_url{ + background-color: #390747; +} +.row{ + display: flex; + flex-direction: row; +} +.ride_date{ + display: block; + padding: .5em; +} +.next_ride_date{ + color:var(--wr-yellow); +} +.ride_date.active{ + color: #390747; +} +h1,h3{ + color: var(--wr-yellow); +} +/* h1{ + font-size: 3em; +} +h2{ + font-size: 2.5em; +} +h3{ + font-size: 2em; +} +h4{ + font-size: 1.5em; +} +h5{ + font-size: 1.25em; +} */ +img{ + max-width: 100%; +} +img.icon{ + max-width: 100%; + max-height: 3em; + float: left; +} +img.emwrlogo{ + max-width: 100%; + max-height: 8em; +} +img.map{ + max-width: 100%; + max-height: 50em; +} +div.page{ + display: flex; + justify-content: center; + align-items: center; + max-width: 100%; +} +div.container{ + display: flex; + flex-direction: column; + max-width: 50em; + align-items:center; +} +div.next_ride_reminder{ + position: fixed; + overflow-y: scroll; + overflow-x: hidden; + bottom: 1em; + right: 1em; +} diff --git a/app/templates/base.html b/app/templates/base.html new file mode 100644 index 0000000..d65f1bb --- /dev/null +++ b/app/templates/base.html @@ -0,0 +1,18 @@ + + + + + + + {% if title %} + {{ title }} - El Marino - Walk and Rollers + {% else %} + El Marino - Walk and Rollers + {% endif %} + + +
El Marino Walk and Rollers:Home
+
+ {% block content %}{% endblock %} + + diff --git a/app/templates/index.html b/app/templates/index.html new file mode 100644 index 0000000..ec8717f --- /dev/null +++ b/app/templates/index.html @@ -0,0 +1,72 @@ +{% extends "base.html" %} +{% block content %} + +
+
+
+ www.ccwalkandroll.com
+ +

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

+

+ Ride, scoot or walk with us on December 5th! +

+

+ 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 %} + {% 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. +

+ + +
+
+ +

+ Dec 5th +

+
+
+{% endblock %} + diff --git a/data/rides.txt b/data/rides.txt new file mode 100644 index 0000000..daed629 --- /dev/null +++ b/data/rides.txt @@ -0,0 +1,10 @@ +1979/10/16 +2026/10/02 +2026/11/06 +2026/12/04 +2027/01/08 +2027/02/05 +2027/03/12 +2027/04/09 +2027/05/07 +2027/06/04 \ No newline at end of file diff --git a/emwr.py b/emwr.py new file mode 100644 index 0000000..d099b92 --- /dev/null +++ b/emwr.py @@ -0,0 +1 @@ +from app import app diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5b17eb2 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,8 @@ +blinker==1.9.0 +click==8.5.0 +Flask==3.1.3 +itsdangerous==2.2.0 +Jinja2==3.1.6 +MarkupSafe==3.0.3 +python-dotenv==1.2.3 +Werkzeug==3.1.8