16 files changed
+1569
-558
No files matched your search
@@ -1,4 +1,5 @@
|
||||
/** @format */
|
||||
import React from "react";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import "./musicTrack.module.scss";
|
||||
import { getRuntimeMusic } from "../../utils/date/time";
|
||||
@@ -6,6 +7,7 @@ import LikeButton from "../buttons/likeButton";
|
||||
import TextLink from "../textLink";
|
||||
import PlayButton from "../buttons/playButton";
|
||||
import { useAudioPlayback } from "../../utils/store/audioPlayback";
|
||||
import { MdiMusic } from "../icons/mdiMusic";
|
||||
|
||||
/**
|
||||
* @typedef {Object} Props
|
||||
@@ -37,6 +39,14 @@ const MusicTrack = ({
|
||||
return (
|
||||
<div className={`music-track ${className}`}>
|
||||
<div className="music-track-image">
|
||||
<div className="music-track-icon">
|
||||
<MdiMusic
|
||||
sx={{
|
||||
fontSize: "2em !important",
|
||||
fill: "url(#clr-gradient-default) !important",
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
<img
|
||||
src={window.api.getItemImageUrl(
|
||||
Object.keys(item.ImageTags).length == 0
|
||||
@@ -93,13 +103,14 @@ const MusicTrack = ({
|
||||
{item.ArtistItems.map((artist, index) => (
|
||||
<>
|
||||
<TextLink
|
||||
text={artist.Name}
|
||||
variant={"subtitle2"}
|
||||
location={`/artist/${artist.Id}`}
|
||||
otherProps={{
|
||||
fontWeight: 400,
|
||||
}}
|
||||
/>
|
||||
>
|
||||
{artist.Name}
|
||||
</TextLink>
|
||||
{index != item.ArtistItems.length - 1 && (
|
||||
<span
|
||||
style={{
|
||||
|
||||
@@ -7,12 +7,25 @@
|
||||
align-items: center;
|
||||
justify-items: center;
|
||||
width: 100%;
|
||||
&-icon {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgb(255 255 255 / 0.09);
|
||||
z-index: -1;
|
||||
}
|
||||
&-image {
|
||||
margin: 0.4em;
|
||||
border-radius: $border-radius-default;
|
||||
overflow: hidden;
|
||||
aspect-ratio: 1;
|
||||
position: relative;
|
||||
width: 4em;
|
||||
&-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
@@ -27,7 +40,7 @@
|
||||
transition: opacity $transition-time-fast;
|
||||
}
|
||||
box-shadow: 0 0 10px rgb(0 0 0 / 0.2);
|
||||
transition: opacity $transition-time-fast;
|
||||
transition: opacity $transition-time-default;
|
||||
}
|
||||
&-info {
|
||||
justify-self: start;
|
||||
|
||||
Reference in new issue
Block a user