From 397588dff272508b595b0f745624ecd79ffef60d Mon Sep 17 00:00:00 2001 From: arsam Date: Fri, 18 Sep 2026 23:08:03 +0330 Subject: [PATCH] Import source: src/components/NewReleases/NewReleases Import the existing local project snapshot. This commit organizes existing files; it does not represent newly developed functionality. --- src/components/NewReleases/NewReleases.jsx | 128 +++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 src/components/NewReleases/NewReleases.jsx diff --git a/src/components/NewReleases/NewReleases.jsx b/src/components/NewReleases/NewReleases.jsx new file mode 100644 index 0000000..58f20a3 --- /dev/null +++ b/src/components/NewReleases/NewReleases.jsx @@ -0,0 +1,128 @@ +import { useRef } from 'react' +import { motion } from 'framer-motion' +import { Canvas, useFrame } from '@react-three/fiber' + +const releases = [ + { id: 1, title: 'Singularity', artist: 'AURA', label: 'New', cover: 'https://picsum.photos/seed/nr1/400/400', duration: '38 min' }, + { id: 2, title: 'Phase IV', artist: 'The Void', label: 'Single', cover: 'https://picsum.photos/seed/nr2/400/400', duration: '4:12' }, + { id: 3, title: 'Lightspeed', artist: 'Echo System', label: 'EP', cover: 'https://picsum.photos/seed/nr3/400/400', duration: '22 min' }, + { id: 4, title: 'Aperture', artist: 'Parallax', label: 'New', cover: 'https://picsum.photos/seed/nr4/400/400', duration: '51 min' }, + { id: 5, title: 'Nocturne', artist: 'Solaris', label: 'Single', cover: 'https://picsum.photos/seed/nr5/400/400', duration: '5:04' }, + { id: 6, title: 'Tessellate', artist: 'Dark Matter', label: 'Album', cover: 'https://picsum.photos/seed/nr6/400/400', duration: '44 min' }, +] + +function SpinningDisc() { + const outerRef = useRef() + const innerRef = useRef() + useFrame((_, delta) => { + outerRef.current.rotation.z += delta * 0.3 + innerRef.current.rotation.z -= delta * 0.5 + }) + return ( + + + + + + + + + + + + + + + + + + + ) +} + +function ReleaseCard({ release, index }) { + const label = { 'New': '#c9a84c', 'Single': '#8a6f2e', 'EP': '#6b5a25', 'Album': '#c9a84c' } + + return ( + +
+ {release.title} +
+ + {/* Label badge */} +
+ {release.label} +
+ + {/* Play on hover */} +
+
+ +
+
+
+ +

{release.title}

+

{release.artist} ยท {release.duration}

+ + ) +} + +export default function NewReleases() { + const scrollRef = useRef() + + return ( +
+
+ +
+
+ {/* Vinyl 3D */} +
+ + + + + + +
+ + {/* Heading */} +
+ +

Fresh Drops

+

+ New Releases +

+

The latest from the artists shaping the sound of tomorrow. Updated every Friday.

+
+
+
+ + {/* Horizontal scroll */} +
+ {releases.map((r, i) => )} +
+
+
+ ) +}