mirror of
https://github.com/FranP-code/spooky-spotify-showcase.git
synced 2025-10-13 00:02:36 +00:00
Changes on album image
This commit is contained in:
@@ -102,42 +102,32 @@ export function AlbumImage({
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{showSpookyImage && !spookyImageLoaded && !error && (
|
{showSpookyImage && !spookyImageLoaded && !error && (
|
||||||
<div className="flex h-36 w-36 items-center justify-center rounded bg-slate-300 bg-opacity-10">
|
<div className="flex h-36 w-36 flex-col items-center justify-center rounded bg-slate-900 text-base backdrop-blur-3xl">
|
||||||
<div>
|
{(() => {
|
||||||
{(() => {
|
if (generateSpookyImageData) {
|
||||||
if (generateSpookyImageData) {
|
if (onQueue) {
|
||||||
if (onQueue) {
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<l-pulsar
|
|
||||||
size="100"
|
|
||||||
speed="1.75"
|
|
||||||
color="white"
|
|
||||||
></l-pulsar>{" "}
|
|
||||||
<p className="text-center">On queue...</p>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<l-quantum
|
<l-pulsar size="75" speed="1.75" color="white"></l-pulsar>{" "}
|
||||||
size="100"
|
<p className="text-center">On queue...</p>
|
||||||
speed="1.75"
|
|
||||||
color="white"
|
|
||||||
></l-quantum>
|
|
||||||
<p className="text-center">Generating...</p>
|
|
||||||
</>
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<l-ring-2 size="100" speed="1.75" color="white"></l-ring-2>
|
|
||||||
<p className="text-center">Getting image...</p>
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
})()}
|
return (
|
||||||
</div>
|
<>
|
||||||
|
<l-quantum size="75" speed="1.75" color="white"></l-quantum>
|
||||||
|
<p className="text-center">Generating...</p>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<l-ring-2 size="75" speed="1.75" color="white"></l-ring-2>
|
||||||
|
<p className="text-center">Getting image...</p>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
})()}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{error && (
|
{error && (
|
||||||
|
|||||||
@@ -135,10 +135,12 @@ export default function AlbumShowcase({
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
onClick={() => setShowSpookyImage(!showSpookyImage)}
|
onClick={() => setShowSpookyImage(!showSpookyImage)}
|
||||||
className="cursor-pointer *:select-none"
|
className="*:drag-none cursor-pointer *:select-none"
|
||||||
>
|
>
|
||||||
<Swiper>
|
<Swiper>
|
||||||
<SwiperSlide className="shadow-lg">
|
<SwiperSlide
|
||||||
|
className={`shadow-lg ${!showSpookyImage ? "swiper-no-swiping" : ""}`}
|
||||||
|
>
|
||||||
<AlbumImage
|
<AlbumImage
|
||||||
entry={entry}
|
entry={entry}
|
||||||
showSpookyImage={showSpookyImage}
|
showSpookyImage={showSpookyImage}
|
||||||
@@ -163,7 +165,9 @@ export default function AlbumShowcase({
|
|||||||
error={firstImageError}
|
error={firstImageError}
|
||||||
/>
|
/>
|
||||||
</SwiperSlide>
|
</SwiperSlide>
|
||||||
<SwiperSlide>
|
<SwiperSlide
|
||||||
|
className={`shadow-lg ${!showSpookyImage ? "swiper-no-swiping" : ""}`}
|
||||||
|
>
|
||||||
<AlbumImage
|
<AlbumImage
|
||||||
number={2}
|
number={2}
|
||||||
entry={secondEntry}
|
entry={secondEntry}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { type Config } from "tailwindcss";
|
import { type Config } from "tailwindcss";
|
||||||
import { fontFamily } from "tailwindcss/defaultTheme";
|
import { fontFamily } from "tailwindcss/defaultTheme";
|
||||||
|
import plugin from "tailwindcss/plugin";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
content: ["./src/**/*.tsx"],
|
content: ["./src/**/*.tsx"],
|
||||||
@@ -10,5 +11,17 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: [],
|
plugins: [
|
||||||
|
plugin(function ({ addUtilities }) {
|
||||||
|
addUtilities({
|
||||||
|
".drag-none": {
|
||||||
|
"-webkit-user-drag": "none",
|
||||||
|
"-khtml-user-drag": "none",
|
||||||
|
"-moz-user-drag": "none",
|
||||||
|
"-o-user-drag": "none",
|
||||||
|
"user-drag": "none",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}),
|
||||||
|
],
|
||||||
} satisfies Config;
|
} satisfies Config;
|
||||||
|
|||||||
Reference in New Issue
Block a user