This commit is contained in:
2023-04-03 14:09:51 -07:00
parent 94d2479dc9
commit 620ae4d444
17 changed files with 3994 additions and 101 deletions

View File

@@ -33,6 +33,7 @@ export default async function Layout({ children }) {
</form>
</ul>
</nav>
{children}
</>
);
};

View File

@@ -1,6 +1,7 @@
import { cookies } from 'next/headers';
import db from '@/db';
import { accountFeedURL } from '@/paths';
import { Container } from '@/components/Container';
@@ -19,14 +20,14 @@ async function getSession() {
export default async function Page() {
const userId = await getSession();
const { uuid } = await db.get('select uuid from subscriptions where user_id=?', userId);
return (
<div className="pt-16 pb-12 sm:pb-4 lg:pt-12">
<Container>
<h1 className="text-2xl font-bold leading-7 text-slate-900">
The Reactors
</h1>
<a href="https://buy.stripe.com/test_3cs01j768d65gso289">Level I</a>
{userId && <p>user: {userId}</p>}
{<p>feed URL: <a href={accountFeedURL(uuid)}>{accountFeedURL(uuid)}</a></p>}
</Container>
</div>
);