Skip to content

Commit

Permalink
Add favorite page #33
Browse files Browse the repository at this point in the history
  • Loading branch information
prayag17 committed Oct 7, 2023
1 parent 5f394c0 commit 48d0354
Show file tree
Hide file tree
Showing 5 changed files with 358 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/components/appBar/appBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const AppBar = () => {
<IconButton onClick={() => navigate("/search")}>
<MdiMagnify />
</IconButton>
<IconButton disabled>
<IconButton onClick={() => navigate("/favorite")}>
<MdiHeartOutline />
</IconButton>
<IconButton
Expand Down
26 changes: 18 additions & 8 deletions src/routes/album/album.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/** @format */

$border-radius: 20px;

.item-detail-album {
&-track {
display: grid;
Expand All @@ -9,22 +11,30 @@
gap: 0.5em;
width: 100%;
padding: 0.25em 0;
background: rgb(255 255 255 / 0);
background: hsl(256, 100%, 4%, 40%);
transition: background $transition-time-default;

&:first-child,
&:first-child {
border-radius: $border-radius $border-radius 8px 8px;
cursor: default !important;
}

&:last-child {
border-bottom: none;
border-radius: 8px 8px $border-radius $border-radius;
}
border-bottom: 1px solid rgb(255 255 255 / 0.05);
border-radius: 8px;

&s {
border-radius: 10px !important;
overflow: hidden !important;
background: $clr-background-dark-opacity-0_8 !important;
background: transparent !important;
box-shadow: none !important;
display: flex;
flex-direction: column;
gap: 5px;
}

&:hover {
background: rgb(255 255 255 / 0.05);
background: hsl(256, 100%, 4%, 50%);
cursor: pointer;
}

&.playing {
Expand Down
6 changes: 2 additions & 4 deletions src/routes/album/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @format */
import { useEffect } from "react";
import React, { useEffect } from "react";
import PropTypes from "prop-types";

import Box from "@mui/material/Box";
Expand Down Expand Up @@ -211,9 +211,7 @@ const MusicAlbumTitlePage = () => {
style={{
padding: "0.75em 0 ",
background:
"rgb(255 255 255 / 0.1)",
boxShadow:
"0 0 10px rgb(0 0 0 / 0.5)",
"hsl(256, 100%, 4%, 60%)",
}}
>
<Typography
Expand Down
Loading

0 comments on commit 48d0354

Please sign in to comment.