Sharing settings and public profile pages (phase 1, step 5)
- sharing.html: switch sharing on/off, see the handle (with the "permanent once followed" warning and a note that following comes later), choose who sees posts (followers only by default; help text on why approval matters), follower approval, directory and search opt-ins, display name and bio; save status shown by the button - profile.html?u=<name>: the public page browsers land on from an actor URL: name, handle (with copy), bio and how to follow; never asks the visitor to sign in - "Sharing" appears in the nav only when the server federates (remembered per tab) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
This commit is contained in:
1 parent
0b10469514
commit
c0b9e85519
6 files changed
+361
No files matched your search
@@ -844,3 +844,104 @@ input {
|
||||
transition: width 0.4s ease-out;
|
||||
}
|
||||
}
|
||||
|
||||
/* ---- Sharing & profile ---------------------------------------------------- */
|
||||
.sharing {
|
||||
max-width: 44rem;
|
||||
}
|
||||
|
||||
.share-switch {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
font-size: var(--step-1);
|
||||
font-weight: 650;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.share-switch input {
|
||||
width: 1.4rem;
|
||||
height: 1.4rem;
|
||||
accent-color: var(--ok);
|
||||
}
|
||||
|
||||
.handle-panel {
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
|
||||
.handle {
|
||||
font-size: clamp(1.1rem, 4vw, var(--step-2));
|
||||
margin: 0.4rem 0 0.75rem;
|
||||
}
|
||||
|
||||
.handle-panel .notice {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
.choices {
|
||||
border: 0;
|
||||
border-top: 1px solid var(--rule);
|
||||
margin: 0 0 1.5rem;
|
||||
padding: 1.25rem 0 0;
|
||||
min-inline-size: 0;
|
||||
}
|
||||
|
||||
.choices legend {
|
||||
font-weight: 650;
|
||||
font-size: var(--step-1);
|
||||
padding: 0 0.5rem 0 0;
|
||||
}
|
||||
|
||||
.choice {
|
||||
display: flex;
|
||||
gap: 0.75rem;
|
||||
align-items: flex-start;
|
||||
margin-bottom: 0.9rem;
|
||||
}
|
||||
|
||||
.choice input {
|
||||
margin-top: 0.3rem;
|
||||
accent-color: var(--ink);
|
||||
}
|
||||
|
||||
.choice label {
|
||||
display: grid;
|
||||
gap: 0.1rem;
|
||||
}
|
||||
|
||||
.choice label .muted {
|
||||
font-size: var(--step--1);
|
||||
}
|
||||
|
||||
.choices .hint {
|
||||
color: var(--ink-soft);
|
||||
font-size: var(--step--1);
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.field textarea {
|
||||
min-height: 5rem;
|
||||
padding: 0.5rem 0.75rem;
|
||||
border: 1px solid var(--rule);
|
||||
border-radius: var(--radius-control);
|
||||
background: var(--paper-raised);
|
||||
font: inherit;
|
||||
color: inherit;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.field textarea:focus-visible {
|
||||
border-color: var(--focus);
|
||||
}
|
||||
|
||||
.profile-bio {
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
.profile-follow {
|
||||
margin: 2rem 0 0.4rem;
|
||||
}
|
||||
|
||||
.save-row {
|
||||
align-items: center;
|
||||
}
|
||||
Reference in new issue
Block a user