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
58 changes: 30 additions & 28 deletions src/app/story/[storylineId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,37 +302,39 @@ function StoryHeader({
</div>

{priceInfo && (
<div className="mt-4 space-y-2 text-xs">
<div className="mt-4 text-xs">
<div className="border-border bg-surface grid grid-cols-1 sm:grid-cols-2 gap-2 rounded border px-3 py-2">
<MarketCapBox
tokenAddress={storyline.token_address}
totalSupply={parseFloat(priceInfo.totalSupply)}
pricePerToken={parseFloat(priceInfo.pricePerToken)}
/>
<div>
<span className="text-muted block text-[10px] uppercase tracking-wider">
Supply Minted
</span>
<span className="font-semibold text-accent">
{formatSupply(priceInfo.totalSupply)} tokens
</span>
<div className="space-y-2">
<MarketCapBox
tokenAddress={storyline.token_address}
totalSupply={parseFloat(priceInfo.totalSupply)}
pricePerToken={parseFloat(priceInfo.pricePerToken)}
/>
<div>
<span className="text-muted block text-[10px] uppercase tracking-wider">
Supply Minted
</span>
<span className="font-semibold text-accent">
{formatSupply(priceInfo.totalSupply)} tokens
</span>
</div>
</div>
{storyline.sunset ? (
<div>
<span className="text-muted">Story complete</span>
<span className="text-foreground ml-2">
{storyline.plot_count} {storyline.plot_count === 1 ? "plot" : "plots"} total
</span>
</div>
) : storyline.last_plot_time ? (
<div>
<span className="text-muted block text-[10px] uppercase tracking-wider mb-1">
Next Plot Publish Deadline
</span>
<DeadlineCountdown lastPlotTime={storyline.last_plot_time} hideLabel />
</div>
) : null}
</div>
{storyline.sunset ? (
<div className="border-border bg-surface rounded border px-3 py-2">
<span className="text-muted">Story complete</span>
<span className="text-foreground ml-2">
{storyline.plot_count} {storyline.plot_count === 1 ? "plot" : "plots"} total
</span>
</div>
) : storyline.last_plot_time ? (
<div className="border-border bg-surface rounded border px-3 py-2">
<span className="text-muted block text-[10px] uppercase tracking-wider mb-1">
Next Plot Publish Deadline
</span>
<DeadlineCountdown lastPlotTime={storyline.last_plot_time} hideLabel />
</div>
) : null}
</div>
)}
{!storyline.sunset && (
Expand Down
Loading