Skip to content

Commit

Permalink
board preview page responsive layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Hartaithan committed Jan 23, 2024
1 parent 279d9ff commit 663bfb6
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/(auth)/board/[username]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const BoardPage: Page<BoardParams> = async ({
const initializedBoard = initializeBoard(board);

return (
<Flex direction="column" h="100%" pt="md" pb="xl">
<Flex direction="column" h="100%" pt="md" pb={{ base: "md", md: "xl" }}>
<Title order={3} mb="sm" tt="capitalize">
{username}&apos;s board
</Title>
Expand Down
2 changes: 1 addition & 1 deletion components/BoardColumn/BoardColumn.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
padding: var(--mantine-spacing-xs);
background: var(--mantine-color-primary-7);
border-radius: var(--mantine-radius-lg);
min-width: 300;
min-width: 300px;
flex: 1;
}

Expand Down
15 changes: 15 additions & 0 deletions components/BoardPreview/BoardPreview.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
.container {
flex: 1;
height: 100%;
gap: var(--mantine-spacing-xl);
@media (max-width: $mantine-breakpoint-xl) {
gap: var(--mantine-spacing-md);
}
@media (max-width: $mantine-breakpoint-lg) {
gap: var(--mantine-spacing-sm);
}
@media (max-width: $mantine-breakpoint-md) {
flex-direction: column;
}
}

.private {
Expand All @@ -8,3 +19,7 @@
justify-content: center;
align-items: center;
}

.private > p {
text-align: center;
}
6 changes: 4 additions & 2 deletions components/BoardPreview/BoardPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ const BoardPreview: FC<Props> = (props) => {
) : (
<Flex className={classes.private}>
<IconMoodSadDizzy size={120} />
<Title order={3}>Board not exist!</Title>
<Text c="dimmed">
<Title mt="xs" order={3}>
Board not exist!
</Title>
<Text mt="xs" c="dimmed">
Or the user is restricted from accessing their board.
</Text>
</Flex>
Expand Down
2 changes: 1 addition & 1 deletion components/Header/Header.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ a.disabledLink {
}

.profile {
min-width: 100;
min-width: 100px;
display: flex;
align-items: center;
justify-content: flex-end;
Expand Down

1 comment on commit 663bfb6

@vercel
Copy link

@vercel vercel bot commented on 663bfb6 Jan 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

trophy-hunt – ./

trophy-hunt-hartaithan.vercel.app
trophy-hunt-git-main-hartaithan.vercel.app
trophy-hunt.vercel.app

Please sign in to comment.