Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚧 disable nomination #18

Merged
merged 4 commits into from
Jul 13, 2024
Merged
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
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