From 5225312a86017339500e31f2faa20237176c59c4 Mon Sep 17 00:00:00 2001 From: austin Date: Sun, 26 Jul 2026 17:56:00 -0500 Subject: [PATCH] Give the other pages somewhere to go, and move the stylesheets under src/main MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MARKETING, not decoration — each of these was a page that stopped: - The HOMEPAGE never mentioned catering. A customer found the page by reading the nav. It now has a section with a photo, what the three tables cover, and a button. - PRODUCTS was a title and a grid. It gets a line saying what it is ("cakes and decorated cookies are made to order, so most of what follows started as somebody describing what they wanted") and a closing band with somewhere to go — an order, or the catering page. - CONTACT was a form and nothing else. The things somebody on that page actually wants — when we're open, where we are, the phone number — were on the homepage and in the footer but not there. Now beside the form, with a card pointing at catering. - OUR STORY got the shop's own front as a band and an ending, so the story leads somewhere. - The FOOTER gained the opening hours, which is what people come to a bakery's site for and is now on every page. CLEANED UP ON THE WAY. The hours and the address were about to exist in three places, so they are one fragment (fragments/visit.html) that takes the classes that vary by where it sits — cream in the footer, sage on white in a card. A shop that changes its Saturday hours should change them once. STYLES MOVED to src/main/styles, with the rest of the app's source, and split by what each file is for: theme.css (the fonts and the palette — names, nothing drawn), base.css (bare elements), components.css (the site's own classes), admin.css (the admin's controls), and site.css as the entry that imports them in cascade order and declares what Tailwind scans. It was one grab-bag file called tokens.css in a folder at the repo root. node_modules has to stay beside them — Tailwind resolves `@import "tailwindcss"` by walking up from the CSS file — so the whole npm project moved together, and the pom, .gitignore and README moved with it. 53 tests green, `mvn package` builds the stylesheet from its new home, and every class used on all five pages resolves in the compiled CSS (185/159/175/148/140, none missing). --- .gitignore | 2 +- README.md | 4 +- pom.xml | 8 +- src/main/resources/templates/contact.html | 35 ++++- .../resources/templates/fragments/footer.html | 12 +- .../resources/templates/fragments/visit.html | 41 +++++ src/main/resources/templates/history.html | 44 +++++- src/main/resources/templates/home.html | 52 ++++--- src/main/resources/templates/products.html | 27 ++++ {styles => src/main/styles}/admin.css | 0 src/main/styles/base.css | 40 +++++ src/main/styles/components.css | 60 ++++++++ {styles => src/main/styles}/package-lock.json | 0 src/main/styles/package.json | 15 ++ src/main/styles/site.css | 25 ++++ src/main/styles/theme.css | 45 ++++++ styles/package.json | 15 -- styles/site.css | 23 --- styles/tokens.css | 140 ------------------ 19 files changed, 370 insertions(+), 218 deletions(-) create mode 100644 src/main/resources/templates/fragments/visit.html rename {styles => src/main/styles}/admin.css (100%) create mode 100644 src/main/styles/base.css create mode 100644 src/main/styles/components.css rename {styles => src/main/styles}/package-lock.json (100%) create mode 100644 src/main/styles/package.json create mode 100644 src/main/styles/site.css create mode 100644 src/main/styles/theme.css delete mode 100644 styles/package.json delete mode 100644 styles/site.css delete mode 100644 styles/tokens.css diff --git a/.gitignore b/.gitignore index 512f9ab..0f7dad5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ target/ # The Tailwind CLI's dependencies. The compiled stylesheet needs no rule of its own: it is written # straight into target/classes/static/css, which is already ignored above. -styles/node_modules/ +src/main/styles/node_modules/ .idea/ *.iml .vscode/ diff --git a/README.md b/README.md index 03db6ce..9a67bf2 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ there is no JavaScript framework in this repo. The look has not changed through |---|---| | Backend | Spring Boot 4 / Java 25, `com.itsthevine.web` | | Pages | Thymeleaf, `src/main/resources/templates` — **no JavaScript** except one 100-line file for the product-card arrows | -| Styling | Tailwind v4, compiled from the templates by the Tailwind CLI into `static/css/site.css`. `styles/` is the whole asset pipeline | +| Styling | Tailwind v4, compiled from the templates by the Tailwind CLI into `static/css/site.css`. `src/main/styles` is the whole asset pipeline | | Admin | Thymeleaf forms at `/admin`, behind Authentik | | Database | Postgres (`itsthevine` on the shared `app-db` cluster), Flyway | | Photos | public MinIO bucket `itsthevine` — **not** in the repo or the image | @@ -120,7 +120,7 @@ history. EXIF (including GPS from phone photos) is stripped by the re-encode. mvn spring-boot:run # http://localhost:8080 # the stylesheet, while editing templates — watches and recompiles -cd styles && npm install && npm run watch +cd src/main/styles && npm install && npm run watch ``` `/admin` only exists when `SECURITY_MODE=OIDC`, so a plain local run has the site and no admin. To work diff --git a/pom.xml b/pom.xml index 0eda68a..841f4c5 100644 --- a/pom.xml +++ b/pom.xml @@ -127,14 +127,16 @@ com.github.eirslett frontend-maven-plugin - - styles + + src/main/styles
-
+
+

Get in touch

Or call us: (309) 701-0660 @@ -59,6 +68,30 @@

Thanks. Your message is on its way, and we will get back to you.

+
+ +
diff --git a/src/main/resources/templates/fragments/footer.html b/src/main/resources/templates/fragments/footer.html index 35254ce..d37666f 100644 --- a/src/main/resources/templates/fragments/footer.html +++ b/src/main/resources/templates/fragments/footer.html @@ -20,13 +20,11 @@

Visit

-
-

215 E Main Street
Princeville, IL 61559

-

(309) 701-0660

-

- contact@itsthevine.com -

-
+
+ +
diff --git a/src/main/resources/templates/fragments/visit.html b/src/main/resources/templates/fragments/visit.html new file mode 100644 index 0000000..6b7c4de --- /dev/null +++ b/src/main/resources/templates/fragments/visit.html @@ -0,0 +1,41 @@ + + + + + +
    +
  • + Tuesday – Friday + 7:00am – 2:00pm +
  • +
  • + Saturday + 7:00am – 12:00pm +
  • +
  • + Sunday – Monday + Closed +
  • +
+ +
+

215 E Main Street
Princeville, IL 61559

+

+ (309) 701-0660 +

+

+ contact@itsthevine.com +

+
+ + diff --git a/src/main/resources/templates/history.html b/src/main/resources/templates/history.html index 56c4220..2afedc1 100644 --- a/src/main/resources/templates/history.html +++ b/src/main/resources/templates/history.html @@ -3,9 +3,24 @@
-
-

Our story

-
+ +
+ +
+
+
+
+

Since 2024

+

Our story

+

+ 215 E Main Street, in the middle of downtown Princeville. +

+
+
+
+ +
@@ -49,6 +64,29 @@
+ + +
+
+
+

Come and see us

+

+ We open at 7:00am, Tuesday through Saturday. If you are after something for a date in the + diary, it is worth asking early. +

+ +
+
+
diff --git a/src/main/resources/templates/home.html b/src/main/resources/templates/home.html index e6f057f..dd767ea 100644 --- a/src/main/resources/templates/home.html +++ b/src/main/resources/templates/home.html @@ -69,6 +69,32 @@ + +
+
+
+ Iced sugar cookies from The Vine +
+

Ordering for a crowd?

+

+ Goodie boxes for the office, packages for a party, and cakes and desserts for a wedding — + with prices, sizes and what each one includes, so you can see where to start. +

+ + Goodie boxes & catering + +
+
+
+
+
@@ -76,32 +102,12 @@

Our hours

-
    -
  • - Tuesday – Friday - 7:00am – 2:00pm -
  • -
  • - Saturday - 7:00am – 12:00pm -
  • -
  • - Sunday – Monday - Closed -
  • -
+

Find us

-
-

215 E Main Street
Princeville, IL 61559

-

- (309) 701-0660 -

-

- contact@itsthevine.com -

-
+
diff --git a/src/main/resources/templates/products.html b/src/main/resources/templates/products.html index 90ce582..0fb0685 100644 --- a/src/main/resources/templates/products.html +++ b/src/main/resources/templates/products.html @@ -5,6 +5,10 @@

Our products

+

+ What comes out of the kitchen on Main Street. Cakes and decorated cookies are made to order, so + most of what follows started as somebody describing what they wanted. +

@@ -46,6 +50,29 @@ See everything.

+ + +
+
+
+

Want one of these, or something else?

+

+ Cakes and decorated cookies are made to order. Tell us the date and roughly what you have in + mind — a tractor, a retirement, the class of 1964 — and we will work from there. +

+ +
+
+