Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/app/story/[storylineId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,12 @@ export default async function StoryPage({ params }: { params: Params }) {
{genesis ? (
<>
<GenesisSection plot={genesis} />
<a
href={chapters.length > 0 ? `/story/${id}/1` : "#genesis"}
className="border-accent text-accent hover:bg-accent/10 mt-8 block w-full rounded border py-3 text-center text-sm font-medium transition-colors"
>
Read the first Plot
</a>
<CommentSection storylineId={id} plotIndex={0} />
</>
) : (
Expand Down Expand Up @@ -284,7 +290,7 @@ function StoryHeader({

function GenesisSection({ plot }: { plot: Plot }) {
return (
<section>
<section id="genesis">
<ViewTracker storylineId={plot.storyline_id} plotIndex={0} />
<div className="text-muted mb-3 flex items-baseline gap-3 text-xs">
<span className="text-accent-dim font-medium">Genesis</span>
Expand Down
Loading