diff --git a/src/main/java/com/itsthevine/web/SiteController.java b/src/main/java/com/itsthevine/web/SiteController.java index a1226aa..d701a26 100644 --- a/src/main/java/com/itsthevine/web/SiteController.java +++ b/src/main/java/com/itsthevine/web/SiteController.java @@ -109,13 +109,24 @@ public class SiteController { *

It renders rather than redirects on both outcomes, deliberately. A failed send has to come * back with what the visitor typed still in the boxes: they wrote it once, and the failure is ours * (a refused relay), not theirs. On success the fields are cleared and the message replaces them. + * + * @param website the trap. It is a real field with a plausible name, hidden from anyone reading the + * page and skipped by the tab key — a person cannot fill it in, and the crawlers that + * post to every form they find fill in everything. A filled one is answered with the + * same thank-you a person gets: telling a bot it failed only teaches it to try again, + * and the enquiry is simply never recorded or sent. */ @PostMapping("/contact") public String submit(@RequestParam String name, @RequestParam String email, @RequestParam String message, + @RequestParam(required = false) String website, Model model) { contactMeta(model); + if (website != null && !website.isBlank()) { + model.addAttribute("sent", true); + return "contact"; + } try { enquiries.receive(name, email, message); model.addAttribute("sent", true); diff --git a/src/main/resources/static/fonts/AdBhashitha.woff b/src/main/resources/static/fonts/AdBhashitha.woff deleted file mode 100644 index 1a5e01c..0000000 Binary files a/src/main/resources/static/fonts/AdBhashitha.woff and /dev/null differ diff --git a/src/main/resources/static/fonts/AdBhashitha.woff2 b/src/main/resources/static/fonts/AdBhashitha.woff2 new file mode 100644 index 0000000..3935872 Binary files /dev/null and b/src/main/resources/static/fonts/AdBhashitha.woff2 differ diff --git a/src/main/resources/static/fonts/LeJour-Script.woff b/src/main/resources/static/fonts/LeJour-Script.woff deleted file mode 100644 index 98f4e4f..0000000 Binary files a/src/main/resources/static/fonts/LeJour-Script.woff and /dev/null differ diff --git a/src/main/resources/static/fonts/LeJour-Script.woff2 b/src/main/resources/static/fonts/LeJour-Script.woff2 new file mode 100644 index 0000000..3adaf16 Binary files /dev/null and b/src/main/resources/static/fonts/LeJour-Script.woff2 differ diff --git a/src/main/resources/static/js/gallery.js b/src/main/resources/static/js/gallery.js index c626d24..bb081fd 100644 --- a/src/main/resources/static/js/gallery.js +++ b/src/main/resources/static/js/gallery.js @@ -14,7 +14,7 @@ 'use strict'; var ARROW = - 'absolute top-1/2 -translate-y-1/2 grid place-items-center h-10 w-10 rounded-full bg-bakery-900/40 ' + + 'absolute top-1/2 -translate-y-1/2 grid place-items-center h-11 w-11 rounded-full bg-bakery-900/40 ' + 'text-white backdrop-blur-sm transition hover:bg-bakery-900/60 focus:outline-none focus-visible:ring-2 ' + 'focus-visible:ring-white'; diff --git a/src/main/resources/templates/catering.html b/src/main/resources/templates/catering.html index 5f06daf..cb1096e 100644 --- a/src/main/resources/templates/catering.html +++ b/src/main/resources/templates/catering.html @@ -89,7 +89,7 @@ three cards led to the same place, since an enquiry is about the table rather than the size, and the label read "Ask about the 15–20 people" on the tables whose sizes are headcounts. */--> -

+

Good to know

    diff --git a/src/main/resources/templates/contact.html b/src/main/resources/templates/contact.html index 865bf44..756fb18 100644 --- a/src/main/resources/templates/contact.html +++ b/src/main/resources/templates/contact.html @@ -43,6 +43,16 @@
+ + +