-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
128 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
h1, | ||
h2, | ||
h3 { | ||
font-family: 'VC Henrietta Trial', 'Noto Serif', serif; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,92 @@ | ||
import { | ||
PageContent, | ||
PageFixedArea, | ||
PageRoot, | ||
PageSection, | ||
PageSectionGrid, | ||
} from '@a-type/ui/components/layouts'; | ||
import { Button } from '@a-type/ui/components/button'; | ||
import { Icon } from '@a-type/ui/components/icon'; | ||
import { graphql, useLocalStorage, useQuery } from '@biscuits/client'; | ||
import { Link, useNavigate } from '@verdant-web/react-router'; | ||
import { useEffect } from 'react'; | ||
import classNames from 'classnames'; | ||
import { Price } from '@/components/subscription/Price.jsx'; | ||
|
||
export interface JoinPageProps {} | ||
|
||
const startingPriceQuery = graphql(` | ||
query StartingPrice { | ||
productInfo(lookupKey: "for_two") { | ||
price | ||
currency | ||
} | ||
} | ||
`); | ||
|
||
export function JoinPage({}: JoinPageProps) { | ||
return <div>TODO: join page</div>; | ||
const [seen] = useLocalStorage('seenBefore', false); | ||
const navigate = useNavigate(); | ||
useEffect(() => { | ||
if (seen) { | ||
navigate(`/login`); | ||
} | ||
}, [seen, navigate]); | ||
|
||
return ( | ||
<PageRoot className="bg-gray-1"> | ||
<PageContent> | ||
<div className="flex flex-col gap-6"> | ||
<h1 className={classNames('text-gray-9')}> | ||
Join Biscuits to unlock features and collaboration in every app | ||
</h1> | ||
<p> | ||
Biscuits apps are always free to use, but members can sync and share | ||
data with family or friends. Plans start at <StartingPrice />. | ||
</p> | ||
<PageFixedArea className="flex flex-row gap-3 py-4 justify-between"> | ||
<Button asChild color="default"> | ||
<Link to="/"> | ||
<Icon name="arrowLeft" /> | ||
Back to apps | ||
</Link> | ||
</Button> | ||
<Button asChild color="primary"> | ||
<Link to="/login">Get started</Link> | ||
</Button> | ||
</PageFixedArea> | ||
<PageSection> | ||
<h2>Gnocchi</h2> | ||
<p> | ||
Your personal cooking app becomes a family groceries list and | ||
recipe box. | ||
</p> | ||
<PageSectionGrid> | ||
<div>TODO: screenshots</div> | ||
</PageSectionGrid> | ||
</PageSection> | ||
<PageSection> | ||
<h2>Trip Tick</h2> | ||
<p> | ||
Now everyone can be on the same page when packing. Plus, get a | ||
weather forecast and more powerful trip planning tools. | ||
</p> | ||
</PageSection> | ||
</div> | ||
</PageContent> | ||
</PageRoot> | ||
); | ||
} | ||
|
||
const StartingPrice = () => { | ||
const [{ data }] = useQuery({ query: startingPriceQuery }); | ||
return ( | ||
<Price | ||
value={data?.productInfo.price} | ||
currency={data?.productInfo.currency} | ||
className="font-bold" | ||
/> | ||
); | ||
}; | ||
|
||
export default JoinPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters