Skip to content

Commit

Permalink
🚧 disable nomination (#18)
Browse files Browse the repository at this point in the history
* 🚧 disable nomination

* 🥅 Add ts-expect-error

* 🚧 Add view collection CTA

* 🚧 Simplify frame
  • Loading branch information
preetjdp authored Jul 13, 2024
1 parent 06d2d5c commit c41dd98
Showing 1 changed file with 48 additions and 7 deletions.
55 changes: 48 additions & 7 deletions src/app/api/[[...routes]]/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,32 +86,73 @@ app.frame('/', c => {
});
});

// Disable Nomination
app.frame('/nominate/:id', c => {
return c.res({
title: 'SupaBald Jesse | Nominate',
image: (
<Box grow alignVertical="center" backgroundColor="background" padding="32" position="relative">
<VStack gap="16">
<Heading size={'48'} weight="500" font={'nyght'}>
Nominate a fren
The Buildathon has ended
</Heading>

<Text color="text" weight="300" size="24">
Frens don’t let frens miss out on opportunities. Ask a fren to join you at the Onchain Summer Buildathon.
And magnificently so! Here&apos;s a retro

</Text>
{/*
// @ts-expect-error Ignore the error with <br/> */}
<Text color="text" weight="300" size="24">
Builders: 10066
<br />
NFTs claimed: 8851
<br />
Projects built: 1255
</Text>
<Text color="text" weight="300" size="24">
Onchain Summer is based
</Text>
</VStack>
</Box>
),
intents: [
<TextInput key={1} placeholder="Farcaster username or FID" />,
<Button.Reset key={2}>Back</Button.Reset>,
<Button key={3} action={`/confirm/${v4()}`}>
Send Cast
</Button>,
<Button.Redirect key={1} location='https://onchain-summer.devfolio.co/projects'>
🛠 View projects
</Button.Redirect>,
<Button.Link key={3} href='https://devfolio.co/blog/supabald-jesse/'>
📖 Read more
</Button.Link>,
],
});
});

// app.frame('/nominate/:id', c => {
// return c.res({
// title: 'SupaBald Jesse | Nominate',
// image: (
// <Box grow alignVertical="center" backgroundColor="background" padding="32" position="relative">
// <VStack gap="16">
// <Heading size={'48'} weight="500" font={'nyght'}>
// Nominate a fren
// </Heading>

// <Text color="text" weight="300" size="24">
// Frens don’t let frens miss out on opportunities. Ask a fren to join you at the Onchain Summer Buildathon.
// </Text>
// </VStack>
// </Box>
// ),
// intents: [
// <TextInput key={1} placeholder="Farcaster username or FID" />,
// <Button.Reset key={2}>Back</Button.Reset>,
// <Button key={3} action={`/confirm/${v4()}`}>
// Send Cast
// </Button>,
// ],
// });
// });

app.frame('/confirm/:id', async c => {
const interactor = c.var.interactor;
if (!interactor) {
Expand Down

0 comments on commit c41dd98

Please sign in to comment.