Skip to content

Commit

Permalink
CTA visible on desktop screen size only
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitarangelkov committed Aug 12, 2024
1 parent d238670 commit 059dd86
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
1 change: 1 addition & 0 deletions frontend/src/app/bounty/[bountyId]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const ButtonsBox: FC<{
href={`/bounty/${bountyIndex}/exploit`}
disabled={!isOpen}
fullWidth
visibleFrom="md"
>
Submit exploit
</Button>
Expand Down
7 changes: 6 additions & 1 deletion frontend/src/app/explore/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@ const Explore: FC = () => {
return (
<Stack>
<HasConnectedAccount>
<Flex mt="lg" mr={{ base: "xs", md: "lg" }} justify="flex-end">
<Flex
mt="lg"
mr={{ base: "xs", md: "lg" }}
justify="flex-end"
visibleFrom="md"
>
<Link href={GOOGLE_BOUNTY_CREATION_FORM_URL}>
<Button size="lg">Create bounty</Button>
</Link>
Expand Down
8 changes: 6 additions & 2 deletions frontend/src/app/shell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,14 @@ export const Shell: FC<{ children: React.ReactNode }> = ({ children }) => {
<AppShell.Header>
<Header />
</AppShell.Header>
<AppShell.Main mt={{ base: offset, sm: "7rem" }} pb="8rem">
<AppShell.Main
mt={{ base: offset, sm: "7rem" }}
pb="8rem"
style={{ minHeight: "auto" }}
>
{children}
</AppShell.Main>
<AppShell.Footer>
<AppShell.Footer style={{ position: "relative" }}>
<Footer />
</AppShell.Footer>
</AppShell>
Expand Down

0 comments on commit 059dd86

Please sign in to comment.