import React, { useState } from 'react'; import { CircularProgressbar, buildStyles } from 'react-circular-progressbar'; import 'react-circular-progressbar/dist/styles.css'; const TestUploading = () => { const [percentage, setPercentage] = useState(50); // Design Variables from your SCSS const darkColor = '#28404e'; const lightColor = '#27e1ae'; return (
{/* Container logic */}
{/* Title */} {/* SCSS: text-shadow, animation: title 0.5s infinite alternate linear */}
UPLOADING
{/* Progress Bar Container */}
{/* The Progress Bar Library */}
{/* Custom CSS for the text position to match your SCSS "top: 57px" specific alignment if needed, though the library centers it automatically. We use the library default here for better alignment. */}
{/* Slider Container */}
setPercentage(Number(e.target.value))} className="slider-custom w-full h-[10px] rounded-[4px] bg-black/20 appearance-none outline-none focus:outline-none cursor-pointer" />
{/* Tailwind doesn't support complex browser-specific pseudo-elements (::-webkit-slider-thumb) cleanly out of the box without plugins. We use a scoped style tag to match your SCSS exactly. */}
); }; export default TestUploading;