refactor: simplify upload UI and enforce glb-only preview
This commit is contained in:
+18
-15
@@ -72,6 +72,23 @@ export default function UploadZone() {
|
||||
|
||||
return (
|
||||
<div className="w-full max-w-2xl space-y-4">
|
||||
{entries.length === 0 && (
|
||||
<p className="rounded-2xl border border-white/20 bg-black-800 px-4 py-3 text-xs text-gray-400 leading-relaxed text-center mb-3">
|
||||
Deposez un dossier complet contenant votre modele 3D nomme
|
||||
{' '}<span className="font-mono text-gray-200">model.glb</span>
|
||||
{' '}ainsi que toutes les textures necessaires.
|
||||
{' '}Les textures peuvent etre en
|
||||
{' '}<span className="font-mono text-gray-200">.png</span>,
|
||||
{' '}<span className="font-mono text-gray-200">.jpg</span>
|
||||
{' '}ou <span className="font-mono text-gray-200">.webp</span>.
|
||||
{' '}Utilisez un nom simple si la texture s'applique au modele entier, et un nom detaille si elle correspond a une partie precise du modele,
|
||||
{' '}par exemple <span className="font-mono text-gray-200">color_porte.jpg</span>,
|
||||
{' '}<span className="font-mono text-gray-200">roughness_tuyaux.png</span>,
|
||||
{' '}<span className="font-mono text-gray-200">normal_dashboard.webp</span>
|
||||
{' '}ou <span className="font-mono text-gray-200">opacity_fenetre.png</span>
|
||||
</p>
|
||||
)}
|
||||
|
||||
<SecretInput
|
||||
secret={secret}
|
||||
secretVisible={secretVisible}
|
||||
@@ -82,21 +99,7 @@ export default function UploadZone() {
|
||||
/>
|
||||
|
||||
{entries.length === 0 && (
|
||||
<div className="space-y-2">
|
||||
<p className="text-xs text-gray-400 leading-relaxed text-center">
|
||||
Deposez un dossier complet contenant votre modele 3D nomme
|
||||
{' '}<span className="font-mono text-gray-200">model.glb</span>
|
||||
{' '}ainsi que toutes les textures necessaires.
|
||||
{' '}Les textures peuvent etre en
|
||||
{' '}<span className="font-mono text-gray-200">.png</span>,
|
||||
{' '}<span className="font-mono text-gray-200">.jpg</span>
|
||||
{' '}ou <span className="font-mono text-gray-200">.webp</span>.
|
||||
{' '}Utilisez un nom simple si la texture s'applique au modele entier, et un nom detaille si elle correspond a une partie precise du modele,
|
||||
{' '}par exemple <span className="font-mono text-gray-200">color_fenetre.jpg</span>,
|
||||
{' '}<span className="font-mono text-gray-200">roughness_tuyaux.png</span>,
|
||||
{' '}<span className="font-mono text-gray-200">normal_dashboard.webp</span>
|
||||
{' '}ou <span className="font-mono text-gray-200">opacity_verre.png</span>.
|
||||
</p>
|
||||
<div>
|
||||
<FolderDropzone
|
||||
isUploading={isUploading}
|
||||
onFolderSelected={handleFolderSelected}
|
||||
|
||||
Reference in New Issue
Block a user