Refine mobile hero CTA and event editor layout

This commit is contained in:
Dorian
2026-05-15 22:11:19 -05:00
parent aa4fb384c6
commit 5da32d73f5
2 changed files with 99 additions and 12 deletions

View File

@@ -2412,12 +2412,14 @@ watch(mobileMenuOpen, (open) => {
>
{{ item.label }}
</button>
<button class="mobile-menu-link" type="button" @click="currentMember ? signOutMember() : openMemberSignin(); mobileMenuOpen = false">
{{ currentMember ? 'Sign out' : 'Sign in' }}
</button>
<button class="mobile-menu-link mobile-menu-cta" type="button" @click="openSignup(); mobileMenuOpen = false">
{{ currentMember ? 'View card' : 'Become a member' }}
</button>
<div class="mobile-menu-actions">
<button class="member-button ghost-member-button" type="button" @click="currentMember ? signOutMember() : openMemberSignin(); mobileMenuOpen = false">
{{ currentMember ? 'Sign out' : 'Sign in' }}
</button>
<button v-if="currentMember" class="member-button" type="button" @click="openSignup(); mobileMenuOpen = false">
View card
</button>
</div>
</div>
</div>
@@ -2453,6 +2455,9 @@ watch(mobileMenuOpen, (open) => {
<span class="hero-title-line hero-title-line-primary">{{ homepageContent.hero.line1 }}</span>
<span class="hero-title-line hero-title-line-secondary">{{ homepageContent.hero.line2 }}</span>
</h1>
<button class="member-button hero-mobile-cta" type="button" @click="openSignup">
{{ currentMember ? 'View card' : 'Become a member' }}
</button>
</div>
</div>
@@ -2827,6 +2832,10 @@ watch(mobileMenuOpen, (open) => {
<small>{{ siteContentDraft.homepage.events.enquiryTitle.length }}/{{ contentLimits.sectionTitle }}</small>
</label>
</div>
<div class="events-list-heading">
<p class="section-kicker">Calendar</p>
<h4>Events</h4>
</div>
<div class="event-editor-grid">
<article v-for="(event, index) in siteContentDraft.homepage.events.items" :key="`edit-event-${index}`" class="event-editor-card">
<div class="site-editor-item-heading">

View File

@@ -244,9 +244,20 @@ body.menu-open {
color: #f2a900;
}
.mobile-menu-actions {
display: none;
}
.hero-mobile-cta {
display: none;
width: max-content;
margin-top: 1.15rem;
}
@media (max-width: 900px) {
.intro-header {
background:
radial-gradient(ellipse 120% 80% at 50% 100%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.18) 38%, rgba(0, 0, 0, 0.72) 72%, #000 100%),
linear-gradient(
to bottom,
#000 0%,
@@ -267,7 +278,7 @@ body.menu-open {
}
.header-actions > .member-button {
display: inline-flex;
display: none;
}
.mobile-menu-trigger {
@@ -283,6 +294,29 @@ body.menu-open {
.benefits-cue {
padding-bottom: 0;
}
.hero-mobile-cta {
display: inline-flex;
animation: copy-in 900ms cubic-bezier(0.19, 1, 0.22, 1) 2600ms both;
}
.mobile-menu-links {
width: min(100%, 22rem);
min-height: 100%;
justify-content: center;
padding: calc(5rem + env(safe-area-inset-top)) 0 calc(5rem + env(safe-area-inset-bottom));
}
.mobile-menu-actions {
display: grid;
width: 100%;
gap: 0.75rem;
margin-top: auto;
}
.mobile-menu-actions .member-button {
width: 100%;
}
}
.intro-copy {
@@ -2417,15 +2451,34 @@ body.menu-open {
.event-editor-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 1rem;
}
.events-editor-layout {
display: grid;
grid-column: 1 / -1;
gap: 1rem;
}
.events-list-heading {
display: flex;
align-items: end;
justify-content: space-between;
gap: 1rem;
padding-top: 0.35rem;
}
.events-list-heading h4 {
margin: 0;
color: #fafafa;
font-size: 1.1rem;
font-weight: 950;
letter-spacing: 0.08em;
line-height: 1;
text-transform: uppercase;
}
.events-page-editor {
display: grid;
gap: 0.85rem;
@@ -2440,17 +2493,20 @@ body.menu-open {
.event-editor-card {
display: grid;
min-width: 0;
min-height: 100%;
aspect-ratio: 1 / 1;
min-height: 0;
overflow-y: auto;
align-content: start;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
background: rgba(255, 255, 255, 0.035);
padding: 1rem;
padding: 0.85rem;
scrollbar-gutter: stable;
}
.event-editor-fields {
display: grid;
gap: 0.75rem;
gap: 0.62rem;
}
.site-editor-item-heading {
@@ -2471,7 +2527,7 @@ body.menu-open {
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.55rem;
margin-top: auto;
padding-top: 1rem;
padding-top: 0.85rem;
}
.event-editor-card-actions .primary-action:disabled {
@@ -2489,6 +2545,28 @@ body.menu-open {
min-width: 0;
}
@media (max-width: 1280px) {
.event-editor-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
@media (max-width: 980px) {
.event-editor-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 620px) {
.event-editor-grid {
grid-template-columns: 1fr;
}
.event-editor-card {
aspect-ratio: auto;
}
}
.edit-page-grid {
display: grid;
grid-template-columns: minmax(0, 1fr);