Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions ui/src/ld/launchDarklyContext.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const STORAGE_KEY = "ld-anonymous-context-key";
const PROJECT_KEY = 'epietrowicz-tabbit'

/**
* Stable anonymous LaunchDarkly context so targeting stays consistent across visits.
Expand Down
29 changes: 16 additions & 13 deletions ui/src/pages/ReceiptUploadPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default function ReceiptUploadPage() {
const navigate = useNavigate();
const flags = useFlags();
const showHeroFlag = Boolean(flags.heroFlag ?? flags["hero-flag"]);
const showReceiptHeader = Boolean(flags.showReceiptHeader ?? flags["show-receipt-header"]);
const [file, setFile] = useState(null);
const [uploading, setUploading] = useState(false);
const [error, setError] = useState(null);
Expand Down Expand Up @@ -56,19 +57,21 @@ export default function ReceiptUploadPage() {

return (
<div className="container mx-auto max-w-xl px-5 py-10 text-left">
<header className="mb-4 text-center">
<h1 className="mb-4 text-center text-5xl font-semibold tracking-tight">
Tabbit
</h1>
<h2 className="mb-2 text-lg font-semibold tracking-tight">
Split the tab without the spreadsheet
</h2>
<p className="text-base-content/80 mx-auto max-w-md text-base leading-relaxed">
Tabbit reads a photo of your receipt, pulls out line items and totals,
and gives you a link everyone can use. Each person says what they had
in plain language; we map it to the bill so you can settle up fairly.
</p>
</header>
{showReceiptHeader ? (
<header className="mb-4 text-center">
<h1 className="mb-4 text-center text-5xl font-semibold tracking-tight">
Tabbit
</h1>
<h2 className="mb-2 text-lg font-semibold tracking-tight">
Split the tab without the spreadsheet
</h2>
<p className="text-base-content/80 mx-auto max-w-md text-base leading-relaxed">
Tabbit reads a photo of your receipt, pulls out line items and totals,
and gives you a link everyone can use. Each person says what they had
in plain language; we map it to the bill so you can settle up fairly.
</p>
</header>
) : null}

{showHeroFlag ? (
<h2 className="mb-3 text-center text-lg font-semibold text-base-content/90">
Expand Down