Ship LNURL mint pages, indexing UI, and reviews rewrite.
Add lnurl list/detail routes, OG fixtures, i18n strings, and the write/ index client flows so the site surfaces the new mint type end to end. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
---
|
||||
import Base from '../../layouts/Base.astro';
|
||||
import MintCard from '../../components/MintCard.astro';
|
||||
import ReviewByUrl from '../../components/ReviewByUrl.astro';
|
||||
import { readCapabilities } from '@cashumints/shared';
|
||||
import { fetchMint, fetchMints } from '../../lib/api';
|
||||
import { localePath, useI18n, type Locale } from '../../i18n';
|
||||
@@ -66,8 +67,18 @@ const schema = [
|
||||
*/}
|
||||
<div class="page">
|
||||
<div class="index-head">
|
||||
<h1>{t('mints.heading')}</h1>
|
||||
<p class="lede">{t('mints.lede')}</p>
|
||||
<div class="index-head-text">
|
||||
<h1>{t('mints.heading')}</h1>
|
||||
<p class="lede">{t('mints.lede')}</p>
|
||||
</div>
|
||||
{/*
|
||||
The way in for something this site has never seen. Every other route to writing
|
||||
a review starts from a page that already exists, which is exactly the case a
|
||||
reader with a brand new mint does not have.
|
||||
*/}
|
||||
<button class="btn primary index-head-action" type="button" data-review-url-open="cashu">
|
||||
{t('reviews.byUrl.open')}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="controls" data-mint-controls>
|
||||
@@ -125,10 +136,17 @@ const schema = [
|
||||
<button class="link-btn" type="button" data-clear-search>{t('mints.clearSearch')}</button>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Two steps in one dialog: identify the mint, then the ordinary review form. */}
|
||||
<ReviewByUrl type="cashu" />
|
||||
</Base>
|
||||
|
||||
<style>
|
||||
.index-head { margin-bottom: 24px; }
|
||||
/* Heading and lede on the left, the one primary action on the right, wrapping to
|
||||
its own line before the lede has to give up any width. */
|
||||
.index-head { margin-bottom: 24px; display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
|
||||
.index-head-text { flex: 1 1 320px; }
|
||||
.index-head-action { flex-shrink: 0; }
|
||||
.index-head h1 { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
|
||||
.index-head .lede { max-width: 620px; font-size: 15.5px; margin-top: 10px; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user