Skip to content

Commit

Permalink
feat: ajust responsive UI
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane committed Oct 19, 2023
1 parent ee28028 commit a7c9035
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 15 deletions.
9 changes: 1 addition & 8 deletions src/components/Genre.module.css
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
.item {
width: rem(90px);
height: rem(90px);
background: light-dark(var(--mantine-color-gray-0), var(--mantine-color-dark-6));
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: var(--mantine-spacing-xs);
transition: background-color 0.2s;

[data-mantine-color-scheme="light"] & {
background-color: var(--mantine-color-gray-0);
}

[data-mantine-color-scheme="light"] & {
background-color: var(--mantine-color-dark-6);
}
}

.text {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Header.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
position: sticky;
top: 0;
backdrop-filter: blur(8px);
z-index: 4;
z-index: 5;
padding: rem(16px);
}
7 changes: 3 additions & 4 deletions src/components/Main.module.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
.main {
flex: 1;
padding: rem(16px) rem(20px) rem(24px);
padding: rem(80px) rem(20px);

@media (max-width: $mantine-breakpoint-xs) {
min-height: calc(100vh - rem(128px));
}

@media (min-width: rem(640px)) {
padding-right: rem(28px);
padding-left: rem(28px);
@media (min-width: $mantine-breakpoint-md) {
padding: rem(16px) rem(28px) rem(24px);
}
}
5 changes: 4 additions & 1 deletion src/components/MobilePlayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ const ButtonOpenDrawer = memo(() => {

return (
<>
<ActionIcon onClick={() => setOpen((state) => !state)}>
<ActionIcon
color="transparent"
onClick={() => setOpen((state) => !state)}
>
<IconChevronUp size={18} />
</ActionIcon>
<Drawer
Expand Down
3 changes: 2 additions & 1 deletion src/containers/MobileNavigation.module.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.container {
position: sticky;
position: absolute;
bottom: 0;
width: 100%;
background: light-dark(rgba(231, 245, 255, 0.8), rgba(25, 113, 194, 0.2));
backdrop-filter: blur(8px);
z-index: 4;
Expand Down

0 comments on commit a7c9035

Please sign in to comment.