Design and UI tweaks
This commit is contained in:
parent
53f81b3605
commit
d5c91dd66b
4 changed files with 424 additions and 61 deletions
|
|
@ -3,7 +3,7 @@
|
|||
<!-- Already a member -->
|
||||
<template v-if="isAuthenticated">
|
||||
<div class="full-section">
|
||||
<h2>You're already a member</h2>
|
||||
<h1>You're already a member</h1>
|
||||
<p class="section-intro">
|
||||
Welcome back, {{ memberData?.name || "member" }}. You're part of Ghost
|
||||
Guild in the
|
||||
|
|
@ -75,7 +75,7 @@
|
|||
<div class="join-grid">
|
||||
<div class="join-main">
|
||||
<div class="join-main-inner">
|
||||
<div v-if="errorMessage" class="error-box">{{ errorMessage }}</div>
|
||||
<div v-if="errorMessage" class="error-box" role="alert">{{ errorMessage }}</div>
|
||||
|
||||
<form @submit.prevent="handleSubmit">
|
||||
<!-- About you -->
|
||||
|
|
@ -93,10 +93,12 @@
|
|||
class="form-input"
|
||||
type="text"
|
||||
required
|
||||
:aria-invalid="!!fieldErrors.name"
|
||||
aria-describedby="join-name-error"
|
||||
@blur="validateName"
|
||||
@input="fieldErrors.name && (fieldErrors.name = '')"
|
||||
>
|
||||
<p v-if="fieldErrors.name" class="field-error">
|
||||
<p v-if="fieldErrors.name" id="join-name-error" class="field-error">
|
||||
{{ fieldErrors.name }}
|
||||
</p>
|
||||
</div>
|
||||
|
|
@ -109,10 +111,12 @@
|
|||
type="email"
|
||||
placeholder="you@example.com"
|
||||
required
|
||||
:aria-invalid="!!fieldErrors.email"
|
||||
aria-describedby="join-email-error"
|
||||
@blur="validateEmail"
|
||||
@input="fieldErrors.email && (fieldErrors.email = '')"
|
||||
>
|
||||
<p v-if="fieldErrors.email" class="field-error">
|
||||
<p v-if="fieldErrors.email" id="join-email-error" class="field-error">
|
||||
{{ fieldErrors.email }}
|
||||
</p>
|
||||
</div>
|
||||
|
|
@ -132,6 +136,7 @@
|
|||
type="button"
|
||||
data-testid="cadence-monthly"
|
||||
:class="{ active: cadence === 'monthly' }"
|
||||
:aria-pressed="cadence === 'monthly'"
|
||||
@click="onCadenceChange('monthly')"
|
||||
>
|
||||
Monthly
|
||||
|
|
@ -140,6 +145,7 @@
|
|||
type="button"
|
||||
data-testid="cadence-annual"
|
||||
:class="{ active: cadence === 'annual' }"
|
||||
:aria-pressed="cadence === 'annual'"
|
||||
@click="onCadenceChange('annual')"
|
||||
>
|
||||
Annual
|
||||
|
|
@ -147,13 +153,14 @@
|
|||
</div>
|
||||
</div>
|
||||
<p class="form-block-intro">
|
||||
Equal access for everyone. Pick what fits — these aren't
|
||||
Equal access for everyone. Pick what fits. These aren't
|
||||
tiers.
|
||||
</p>
|
||||
|
||||
<ul
|
||||
class="pwyc-list"
|
||||
aria-label="Contribution amount"
|
||||
role="radiogroup"
|
||||
>
|
||||
<li
|
||||
v-for="preset in presetRows"
|
||||
|
|
@ -246,8 +253,8 @@
|
|||
you set up tax receipts after you join.
|
||||
</li>
|
||||
<li>
|
||||
<strong>Secure payment.</strong> Card entry handled by Helcim
|
||||
— we never see your card details.
|
||||
<strong>Secure payment.</strong> Card entry handled by Helcim;
|
||||
we never see your card details.
|
||||
</li>
|
||||
<li>
|
||||
<strong>Change anytime.</strong> Adjust your contribution or
|
||||
|
|
@ -707,7 +714,7 @@ onUnmounted(() => {
|
|||
.cadence-toggle button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
padding: 5px 12px;
|
||||
padding: 7px 12px;
|
||||
font-family: "Commit Mono", monospace;
|
||||
font-size: 10px;
|
||||
color: var(--text-faint);
|
||||
|
|
@ -883,7 +890,7 @@ onUnmounted(() => {
|
|||
border: 1px solid var(--parch);
|
||||
padding: 12px 24px;
|
||||
cursor: pointer;
|
||||
transition: all 0.15s;
|
||||
transition: background-color 0.15s, border-color 0.15s, color 0.15s;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.submit-btn:hover {
|
||||
|
|
@ -938,7 +945,7 @@ onUnmounted(() => {
|
|||
padding: 32px;
|
||||
border-bottom: 1px dashed var(--border);
|
||||
}
|
||||
.full-section h2 {
|
||||
.full-section h1 {
|
||||
font-family: "Brygada 1918", serif;
|
||||
font-size: 20px;
|
||||
font-weight: 500;
|
||||
|
|
@ -982,7 +989,7 @@ onUnmounted(() => {
|
|||
border: 1px solid var(--parch);
|
||||
padding: 12px 28px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
transition: background-color 0.2s, border-color 0.2s, color 0.2s;
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue