Align brewery tour CTA buttons on /contact - #129
Merged
Merged
Conversation
Make both tour cards flex columns and pin each CTA to the card bottom with mt-auto, so the buttons share a baseline at md+ widths regardless of per-card copy height. The auto margin collapses when stacked, so mobile keeps its natural pt-5 gap with no extra blank space. Closes #128 Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Reviewer's GuideAligns the two Flow diagram for aligned brewery tour CTA cardsflowchart LR
A["Brewery Tour card"] --> A1["flex flex-col"]
B["Tour + tasting card"] --> B1["flex flex-col"]
A1 --> C["CTA wrapper: mt-auto pt-5"]
B1 --> C
C --> D["CTAs share bottom baseline on desktop"]
C --> E["Natural spacing when cards stack on mobile"]
File-Level Changes
Assessment against linked issues
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The two side-by-side Brewery Tours cards on
/contactrendered their CTA buttons at different vertical positions on desktop, because the right card carries an extra "Stay for a taste" eyebrow line plus slightly longer copy.Each card is now a flex column with its CTA wrapped in
mt-auto pt-5, pinning both buttons to the card bottom so they share a baseline regardless of per-card copy height. The auto margin collapses when the cards stack, so mobile keeps its natural 20px gap with no added blank space.Closes #128
Changes
app/(pages)/contact/page.tsx— both tour cards:p-6 sm:p-8→flex flex-col p-6 sm:p-8; eachTourInquiryCtawrapped in<div className="mt-auto pt-5">(the CTA's ownmt-5moved onto the wrapper aspt-5).No copy, pricing, behavior, analytics, or accessibility changes — layout classes only.
Verification
npx tsc --noEmit— passnpm run lint— passnpm run build— passnpx playwright test(smoke, tour-inquiry, accessibility, analytics specs — 66/66 pass)Not run (judgment call — layout-only change, no logic/env/rules touched):
npm ci,check:react-versions,npm test,test:rules,check:md-links. CI will run the full set.Risk / deployment notes
None — presentational only.
Generated with Devin
Summary by Sourcery
Bug Fixes: