diff options
author | Adam T. Carpenter <atc@53hor.net> | 2025-05-18 16:03:55 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2025-05-18 16:03:55 -0400 |
commit | 6ce8c584359152512a5c7269e565d43703a4de6f (patch) | |
tree | d97b06ce495c5f7e73133711e45592cd6827550d | |
parent | 654b1d5ee3519b9f1339ef4d6eba4bc816071393 (diff) | |
download | carpentertutoring-6ce8c584359152512a5c7269e565d43703a4de6f.tar.xz carpentertutoring-6ce8c584359152512a5c7269e565d43703a4de6f.zip |
fix: brochure
Load css instead of including it.
-rw-r--r-- | static/brochure.css (renamed from templates/brochure/brochure.css) | 0 | ||||
-rw-r--r-- | static/styles.css (renamed from templates/styles.css) | 6 | ||||
-rw-r--r-- | templates/base.html.j2 | 4 | ||||
-rw-r--r-- | templates/brochure/index.html.j2 | 8 | ||||
-rw-r--r-- | templates/index.html.j2 | 5 | ||||
-rw-r--r-- | templates/policies.html.j2 | 2 |
6 files changed, 10 insertions, 15 deletions
diff --git a/templates/brochure/brochure.css b/static/brochure.css index 2abb118..2abb118 100644 --- a/templates/brochure/brochure.css +++ b/static/brochure.css diff --git a/templates/styles.css b/static/styles.css index babfed5..6dde6d4 100644 --- a/templates/styles.css +++ b/static/styles.css @@ -32,6 +32,7 @@ nav { background-color: white; position: fixed; width: 100%; + z-index: 1; } nav img { @@ -113,11 +114,6 @@ section.cards { background-color: transparent; } -section.squarshed { - padding-bottom: 1em; - padding-top: 1em; -} - .button img { margin-right: 1em; } diff --git a/templates/base.html.j2 b/templates/base.html.j2 index ad99896..c0f8885 100644 --- a/templates/base.html.j2 +++ b/templates/base.html.j2 @@ -7,7 +7,9 @@ Tutoring Excellence Online and in Suffolk, VA - Carpenter Tutoring, LLC {% endblock %} </title> - {% include "stylewrap.html.j2" %} + {% block styles %} + <link rel="stylesheet" href="/styles.css" /> + {% endblock %} <link rel="preconnect" href="https://fonts.gstatic.com" /> <link rel="stylesheet" href="/desktop.css" /> <link rel="stylesheet" href="/widescreen.css" /> diff --git a/templates/brochure/index.html.j2 b/templates/brochure/index.html.j2 index 547f9d7..a3a5b33 100644 --- a/templates/brochure/index.html.j2 +++ b/templates/brochure/index.html.j2 @@ -1,8 +1,8 @@ {% extends "base.html.j2" %} -{% block style %} -{% include "../styles.css" %} -{% include "brochure.css" %} +{% block styles %} +<link rel="stylesheet" href="/styles.css" /> +<link rel="stylesheet" href="/brochure.css" /> {% endblock %} {% block main %} @@ -25,8 +25,6 @@ </section> -<section></section> - <script> {% include "brochure.js" %} </script> diff --git a/templates/index.html.j2 b/templates/index.html.j2 index 24c9369..9af86fe 100644 --- a/templates/index.html.j2 +++ b/templates/index.html.j2 @@ -53,7 +53,7 @@ </section> <!-- help --> -<section class="squarshed centered" id="help"> +<section class="centered" id="help"> <h2>Helpful Links</h2> <a class="button primary centered" href="/brochure">View an interactive brochure of our offerings</a> <a class="button centered" href="/policies">See policies and procedures regarding scheduling, payment, and @@ -61,7 +61,8 @@ </section> <!-- reviews --> -<section id="reviews"> +<!-- TODO: fix these cards --> +<section id="reviews" class="cards"> <div class="card"> <h2>C.L. Cannon</h2> diff --git a/templates/policies.html.j2 b/templates/policies.html.j2 index 5580ce9..3d90da5 100644 --- a/templates/policies.html.j2 +++ b/templates/policies.html.j2 @@ -365,6 +365,4 @@ </ul> </section> -<section></section> - {% endblock %}
\ No newline at end of file |