Step 3 explains what MealQuest notifies about, shows the iOS install hint and offers "Turn on notifications" and "Maybe later". Either one PATCHes onboarding_completed and goes Home, ending the first-run redirect. "Turn on notifications" first calls an injectable enableNotifications(), a no-op answering "unavailable" until Feature 19 wires Web Push; nothing asks for notification permission. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
250 lines
4.4 KiB
CSS
250 lines
4.4 KiB
CSS
/* Onboarding, handoff mock 1h: a full screen outside the app shell with
|
|
the step's action fixed to the bottom. */
|
|
.screen {
|
|
min-height: 100dvh;
|
|
box-sizing: border-box;
|
|
/* Room for the fixed 52 px action and its padding. */
|
|
padding: var(--space-6) var(--space-4) calc(52px + 2 * var(--space-6));
|
|
background: var(--color-bg);
|
|
}
|
|
|
|
.column {
|
|
max-width: 560px;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.progress {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.pill {
|
|
flex: 1;
|
|
height: 6px;
|
|
border-radius: var(--radius-pill);
|
|
background: var(--color-neutral-300);
|
|
}
|
|
|
|
.filled {
|
|
background: var(--color-accent);
|
|
}
|
|
|
|
.kicker {
|
|
margin: 30px 0 0;
|
|
font-family: var(--font-body);
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: var(--color-accent-700);
|
|
}
|
|
|
|
.title {
|
|
margin: 8px 0 0;
|
|
font-family: var(--font-heading);
|
|
font-size: 30px;
|
|
font-weight: 400;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.helper {
|
|
margin: 12px 0 0;
|
|
font-family: var(--font-body);
|
|
font-size: 15px;
|
|
line-height: 1.45;
|
|
color: var(--color-neutral-800);
|
|
}
|
|
|
|
.footer {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
padding: var(--space-4) var(--space-4) var(--space-6);
|
|
background: var(--color-bg);
|
|
}
|
|
|
|
.action {
|
|
display: flex;
|
|
width: 100%;
|
|
max-width: 560px;
|
|
height: 52px;
|
|
margin: 0 auto;
|
|
font-size: 17px;
|
|
}
|
|
|
|
/* Step 3: two stacked actions. */
|
|
.actions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-3);
|
|
}
|
|
|
|
/* Room for the second fixed action and the gap above it. */
|
|
.screen:has(.actions) {
|
|
padding-bottom: calc(2 * 52px + var(--space-3) + 2 * var(--space-6));
|
|
}
|
|
|
|
/* Step 1: what MealQuest's words mean; step 3: what it notifies about. */
|
|
.terms {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-4);
|
|
margin: var(--space-6) 0 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.term {
|
|
display: flex;
|
|
gap: var(--space-3);
|
|
align-items: flex-start;
|
|
padding: var(--space-4);
|
|
border-radius: var(--radius-lg);
|
|
background: var(--color-surface);
|
|
}
|
|
|
|
.termIcon {
|
|
flex: none;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: var(--radius-pill);
|
|
background: var(--color-accent-200);
|
|
color: var(--color-accent);
|
|
}
|
|
|
|
.termText {
|
|
margin: 0;
|
|
font-family: var(--font-body);
|
|
font-size: 15px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.termName {
|
|
display: block;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* Step 2: the add pill, with the "+" inside it. */
|
|
.add {
|
|
position: relative;
|
|
margin-top: var(--space-6);
|
|
}
|
|
|
|
/* Beats the TextInput's own padding whatever order the sheets load in. */
|
|
.add .addInput {
|
|
width: 100%;
|
|
padding-right: 52px;
|
|
}
|
|
|
|
/* 44 px hit box around the 36 px grape face, inset 2 px in the 48 px pill. */
|
|
.addButton {
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 4px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 44px;
|
|
height: 44px;
|
|
padding: 0;
|
|
border: 0;
|
|
border-radius: var(--radius-pill);
|
|
background: transparent;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.addButton:disabled {
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.addFace {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: var(--radius-pill);
|
|
background: var(--color-accent);
|
|
color: var(--on-accent);
|
|
transition: transform 100ms var(--ease-out-soft);
|
|
}
|
|
|
|
.addButton:disabled .addFace {
|
|
opacity: 0.45;
|
|
}
|
|
|
|
.addButton:active:not(:disabled) .addFace {
|
|
transform: scale(0.97);
|
|
}
|
|
|
|
.groupLabel {
|
|
margin: var(--space-6) 0 0;
|
|
font-family: var(--font-body);
|
|
font-size: 14px;
|
|
font-weight: 700;
|
|
color: var(--color-neutral-700);
|
|
}
|
|
|
|
.chips {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
margin: 10px 0 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.pending {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.pick {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
min-width: 44px;
|
|
min-height: 44px;
|
|
padding: 0 16px;
|
|
border: 1.5px dashed var(--color-neutral-400);
|
|
border-radius: var(--radius-pill);
|
|
background: transparent;
|
|
color: var(--color-text);
|
|
font-family: var(--font-body);
|
|
font-size: 15px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.pick:active {
|
|
background: var(--color-neutral-200);
|
|
}
|
|
|
|
.problem {
|
|
margin: var(--space-3) 0 0;
|
|
font-family: var(--font-body);
|
|
font-size: 14px;
|
|
color: var(--color-accent-700);
|
|
}
|
|
|
|
.status {
|
|
margin-top: 10px;
|
|
}
|
|
|
|
/* Step 3: the iOS install hint, when it shows. */
|
|
.hint {
|
|
margin-top: var(--space-4);
|
|
}
|
|
|
|
.hint:empty {
|
|
display: none;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.addFace {
|
|
transition: none;
|
|
}
|
|
}
|