Featured event card beside the hero text; Word import: tabs, quotes, callouts, dividers, videos, buttons
From lg up the featured event's photo sits beside its words, so the card is about as tall as the hero text. Word import turns a 'Tab:' line into a tab, the Quote and Intense Quote styles into quotes and callouts, '---' into a divider, a lone video link into a video and 'Button: label' into a button; Blog posts shows the whole mapping beside Import from Word. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3b034eb00e
commit
56acedf926
8 changed files with 143 additions and 16 deletions
|
|
@ -282,13 +282,40 @@ function ImportButton({ manifest }: { manifest: any }) {
|
|||
}
|
||||
}
|
||||
|
||||
const guide = manifest.importer.guide;
|
||||
|
||||
return (
|
||||
<div className="ml-auto flex items-center gap-3">
|
||||
<div className="ml-auto flex flex-wrap items-center gap-3">
|
||||
{error && (
|
||||
<span role="alert" className="text-sm text-danger">
|
||||
{error}
|
||||
</span>
|
||||
)}
|
||||
{guide && (
|
||||
<details className="relative">
|
||||
<summary className="cursor-pointer text-sm text-link hover:underline">What becomes what</summary>
|
||||
<div className="absolute right-0 z-20 mt-2 w-[min(36rem,90vw)] bg-raised p-4 text-sm shadow-xl">
|
||||
<p className="text-body">{guide.intro}</p>
|
||||
<table className="mt-3 w-full text-left">
|
||||
<thead className="text-xs uppercase tracking-wider text-muted">
|
||||
<tr>
|
||||
<th className="py-1 pr-4 font-medium">In Word</th>
|
||||
<th className="py-1 font-medium">In the post</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{guide.rows.map(([from, to]) => (
|
||||
<tr key={from} className="border-t border-muted/10 align-top">
|
||||
<td className="py-1.5 pr-4 text-body">{from}</td>
|
||||
<td className="py-1.5 text-muted">{to}</td>
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
{guide.outro && <p className="mt-3 text-xs text-muted">{guide.outro}</p>}
|
||||
</div>
|
||||
</details>
|
||||
)}
|
||||
<label
|
||||
className={`cursor-pointer btn border border-link px-4 py-2 text-sm text-link transition-colors hover:bg-tint ${
|
||||
busy ? "pointer-events-none opacity-60" : ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue