Build and Push Docker Image / build-and-push (push) Successful in 6m47s
- Admin: sign-up Open / Invite only / Closed with single-use invite links - Present mode for scripts (auto-scroll) and outlines (step through, pace vs planned minutes) - Series: group studies on the dashboard, filter by series, calendar file for a study's sessions - Lesson handout: printable page per session (passage, outline, questions, writing lines) - Save a chunk's notes as your own study template (synced) - Voice dictation for notes and scripts (browser speech recognition) - Reading progress: map of the 66 books and a calendar of days read, synced and merged across devices - Export highlights and bookmarks as Markdown or Word, grouped by named colour - Verse of the day push to the ntfy topic (needs IQBIBLE_API_KEY) - Sharing: co-teacher editing via single-use invite links; read-only links can expire and take a passcode Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
21 lines
1.4 KiB
React
21 lines
1.4 KiB
React
// What someone sees when a shared link needs a passcode.
|
|
import { useState } from 'react';
|
|
|
|
export default function SharedPasscodeForm({ error, busy, onSubmit, dark = false }) {
|
|
const [value, setValue] = useState('');
|
|
return (
|
|
<div className={`flex min-h-dvh items-center justify-center px-4 ${dark ? 'bg-slate-900' : 'bg-[var(--r-bg)] text-[var(--r-text)]'}`}>
|
|
<form onSubmit={(e) => { e.preventDefault(); if (value.trim()) onSubmit(value.trim()); }}
|
|
className="w-full max-w-sm rounded-3xl border border-black/10 bg-white p-8 text-center text-slate-900 shadow-lg">
|
|
<p className="text-xs uppercase tracking-[0.24em] text-slate-400">Bible Study Project</p>
|
|
<h1 className="mt-4 text-lg font-medium">This link has a passcode</h1>
|
|
<p className="mt-1 text-sm text-slate-500">Enter the passcode the person who shared it gave you.</p>
|
|
<input type="password" autoFocus autoComplete="off" aria-label="Passcode" value={value} onChange={(e) => setValue(e.target.value)}
|
|
className="mt-5 block w-full rounded-xl border border-slate-300 px-3 py-2.5 text-center text-sm" />
|
|
{error && <p role="alert" className="mt-3 text-sm text-rose-600">{error}</p>}
|
|
<button type="submit" disabled={busy || !value.trim()} className="mt-5 w-full rounded-full bg-slate-900 px-4 py-2.5 text-sm font-medium text-white hover:opacity-90 disabled:opacity-50">{busy ? 'Checking…' : 'Open'}</button>
|
|
</form>
|
|
</div>
|
|
);
|
|
}
|