feat: enable gallery upload and update scanner button theme to amber
This commit is contained in:
@@ -30,7 +30,6 @@ export default function FloatingScannerButton({ onImageSelected }: FloatingScann
|
|||||||
ref={fileInputRef}
|
ref={fileInputRef}
|
||||||
onChange={handleFileChange}
|
onChange={handleFileChange}
|
||||||
accept="image/*"
|
accept="image/*"
|
||||||
capture="environment"
|
|
||||||
className="hidden"
|
className="hidden"
|
||||||
/>
|
/>
|
||||||
<motion.button
|
<motion.button
|
||||||
@@ -39,7 +38,7 @@ export default function FloatingScannerButton({ onImageSelected }: FloatingScann
|
|||||||
whileTap={{ scale: 0.9 }}
|
whileTap={{ scale: 0.9 }}
|
||||||
initial={{ y: 100, opacity: 0 }}
|
initial={{ y: 100, opacity: 0 }}
|
||||||
animate={{ y: 0, opacity: 1 }}
|
animate={{ y: 0, opacity: 1 }}
|
||||||
className="relative group p-6 rounded-full bg-[#C89D46] text-black shadow-[0_0_30px_rgba(200,157,70,0.4)] hover:shadow-[0_0_40px_rgba(200,157,70,0.6)] transition-all overflow-hidden"
|
className="relative group p-6 rounded-full bg-amber-600 text-black shadow-[0_0_30px_rgba(217,119,6,0.4)] hover:shadow-[0_0_40px_rgba(217,119,6,0.6)] transition-all overflow-hidden"
|
||||||
>
|
>
|
||||||
{/* Shine Animation */}
|
{/* Shine Animation */}
|
||||||
<motion.div
|
<motion.div
|
||||||
@@ -58,7 +57,7 @@ export default function FloatingScannerButton({ onImageSelected }: FloatingScann
|
|||||||
<Camera size={32} strokeWidth={2.5} className="relative z-10" />
|
<Camera size={32} strokeWidth={2.5} className="relative z-10" />
|
||||||
|
|
||||||
{/* Pulse ring */}
|
{/* Pulse ring */}
|
||||||
<span className="absolute inset-0 rounded-full border-4 border-[#C89D46] animate-ping opacity-20" />
|
<span className="absolute inset-0 rounded-full border-4 border-amber-600 animate-ping opacity-20" />
|
||||||
</motion.button>
|
</motion.button>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user