UiForge
Prompt

Upload de fichiers Drift — drag & drop, progression, apercus

Composants UIFramerMinimalAwwwardsMicro-interactionsHover effectReactTailwindFramer Motion
Prêt à l'emploi

Copie le prompt dans le presse-papier, sans quitter la page.

❯ Prompt Claude
CONTEXT & GOAL
Build the file upload component for Drift, a deliverables-sharing tool where creative studios send final assets (artwork, cuts, packaged fonts) to clients. Audience: designers uploading 2 GB of layered files who need trust that nothing silently failed. The signature idea: the dropzone behaves like a liquid surface — its dashed border ripples when a dragged file approaches, and dropped files "sink" into the queue with soft gravity, each preview card wearing a circular progress ring that morphs into a checkmark on completion.

ART DIRECTION
Playful but precise: pastel lavender and mint on a near-white ground, organic blob-ish dropzone corners against an otherwise strict grid, rounded geometry everywhere but never mushy. References: Framer's marketing playfulness, Figma's file cards, watercolor paper textures implied through tint rather than actual texture images. What separates it from a bootstrap-y uploader: motion carries the personality (ripple, sink, morph) while the layout stays disciplined enough for professional daily use.

COLOR SYSTEM
Page background: #FBFAFE. Dropzone idle fill: #F3F0FB, dashed border: #C9BFF0 (2px, 8px dash). Dropzone active-drag fill: #EAE4FA, border solidifies to #8B75E8. Card surface: #FFFFFF, border #ECE8F8, shadow 0 2px 8px rgba(96,76,180,0.06). Text primary: #2E2A3E. Text secondary: #7E7896. Accent violet: #8B75E8, hover #7A63DC, active #6952CC. Progress ring track: #ECE8F8, ring fill: #8B75E8, completed: #4CBF8B. Error: #E05D6F, error fill: #FDEEF0. Mint chip (file type badge): #D9F3E7 with text #2F7D5C. Cancel/ghost button: transparent, hover #F3F0FB. Focus ring: #8B75E8.

TYPOGRAPHY
Component heading Outfit 20px/26px weight 600 ("Send your deliverables"). Dropzone label Outfit 16px/24px weight 500 ("Drop files here, or browse"). Helper text Inter 13px/19px weight 400 color #7E7896 ("Up to 25 files, 4 GB each — we keep them for 30 days"). File name Inter 14px/20px weight 500, truncated middle-ellipsis so extensions stay visible. File meta (size, type) Inter 12px/16px weight 400 color #7E7896. Percentage inside the ring JetBrains Mono 11px weight 500. Error message Inter 12px/17px weight 500 color #E05D6F.

LAYOUT & GRID
Component max-width 640px. Dropzone: full width, 200px min-height, 24px radius with slightly irregular corners (24px/28px/22px/26px) for the organic feel, centered icon (40px cloud glyph) plus label plus browse button. Queue below: vertical stack of file cards, 12px gap, each card 72px height with 16px padding — thumbnail or type icon (44px, rounded 10px), name and meta center, progress ring (36px, 3px stroke) and action buttons right. Global progress bar: 4px full-width bar between dropzone and queue when 2+ files are active, with a summary line "3 of 5 uploaded — 1.2 GB / 3.4 GB". Mobile: cards keep the same anatomy but action buttons collapse into a kebab menu; dropzone min-height drops to 140px and the browse button becomes primary since drag is rare on touch.

SECTIONS & COMPONENTS
Dropzone states: idle (dashed lavender), drag-over (ripple active, border solid, label swaps to "Release to add 3 files"), disabled during a batch finalize (40% opacity, label "Finishing up..."), rejected flash (border pulses #E05D6F when an invalid file is dropped). Browse button: secondary style, opens the native picker, full keyboard path. File cards by type — image: real thumbnail preview; PDF: red-tinted doc glyph with page count "24 pages"; video: dark thumbnail with duration chip "02:14"; zip: mint archive glyph with "38 items". Per-file states: queued (ring empty, "Waiting..."), uploading (ring filling, mono percentage, cancel X button), paused (ring dimmed, resume button), completed (ring morphs to checkmark, meta gains "Uploaded 14:32", delete button appears), error (ring turns #E05D6F with an exclamation, message like "Connection dropped at 67% — Retry" with a retry button that resumes from the failed chunk). Validation copy, real examples: oversized file "brand-film-master.mov is 6.2 GB — the limit is 4 GB. Try a compressed export."; wrong type "We can't accept .exe files for security reasons." Empty state (no files yet): the queue area shows a faint illustration of three stacked cards with the caption "Your uploads will appear here". Batch bar actions: "Pause all" and "Cancel remaining" text buttons. All buttons expose default, hover, focus-visible (2px violet ring, 2px offset), active, and disabled states.

MOTION
Dropzone ripple: on dragenter, the dashed border animates dash-offset continuously (600ms linear loop) while the container scales to 1.01 with spring stiffness 260 damping 20; on dragleave it settles back over 250ms. Drop sink: each new card enters with translateY -16px to 0, scale 0.96 to 1, opacity 0 to 1 over 380ms cubic-bezier(0.34,1.3,0.64,1) — slight overshoot sells the gravity — staggered 70ms per file. Progress ring: stroke-dashoffset updates spring-smoothed (stiffness 60, damping 20) so jumps in network progress render as fluid catches. Complete morph: ring cross-fades to the check path drawing over 350ms ease-out, then the card background flashes #F0FAF5 for 400ms. Invalid drop: dropzone shakes horizontally 0/-5/4/-2/0 px over 300ms with the red border pulse. Reduced motion: no ripple loop or shake; sink becomes a 150ms fade; ring updates render stepwise without spring; the completion check appears instantly.

TECH & QUALITY
React 18, Tailwind CSS v4, Framer Motion; uploads via XMLHttpRequest or fetch with ReadableStream progress events, chunked with resume support stubbed behind an interface (uploader.ts). Files: FileUploader.tsx, Dropzone.tsx, FileCard.tsx, ProgressRing.tsx, uploader.ts. The dropzone is complemented by a real input type="file" multiple triggered by the browse button (label htmlFor wired); drag-and-drop is enhancement, never the only path. Status changes announce via aria-live="polite" ("logo-pack.zip uploaded"; "brand-film.mov failed, retry available"). Progress rings carry role="progressbar" with aria-valuenow. Contrast: #2E2A3E on #FBFAFE is 13.2:1; error text passes 4.9:1 on its fill.
Objectif

Composant d'upload de fichiers pour Drift, outil de partage de livrables entre studios creatifs et clients. Idee signature : la zone de depot se comporte comme une surface liquide — elle ondule a l'approche du drag et les fichiers deposes « coulent » dans la file avec une gravite douce, chaque carte d'apercu portant un anneau de progression circulaire.

Style

Playful pastel precis, lavande et menthe, formes organiques mais grille stricte

Composants
Zone de depot drag & drop avec ondulation a l'approcheFile d'attente de cartes d'apercu (image, PDF, video, zip)Anneau de progression circulaire par fichierActions par fichier (annuler, reessayer, supprimer)Barre de progression globale du lotValidation type et taille avec messages d'erreurEtat vide avec illustration legereBouton parcourir en alternative clavier
Animations
Ondulation de la bordure de la zone au survol du dragChute douce des cartes dans la file au depotRemplissage de l'anneau de progressionMorphing de l'anneau en coche a la finSecousse de refus pour fichier invalide
Stack technique
React 18Tailwind CSS v4Framer Motion
Scores
9/10
Qualité
8/10
Originalité
Notes de revue

Force : la zone de dépôt « liquide » qui ondule et la chute avec gravité douce des fichiers dans la file sont des détails soignés avec de vraies specs physiques (spring, overshoot). Faiblesse : le composant d'upload par glisser-déposer reste un motif d'interface courant. Pas de changement nécessaire.

À voir aussi

Prompts liés

Composants UI

Interface de chat Parlor — bulles, frappe et reactions

Encre sur papier chaud, calligraphique et humain, loin du chat SaaS froid

Q 9/10O 9/10MinimalAwwwardsFramer
Composants UI

Centre de notifications Harbor — dropdown et page complete

Warm neutrals facon carnet papier, encre douce, chaleureux et feutre

Q 9/10O 8/10MinimalFramerMicro-interactions
Composants UI

Colophon – trois fins de page pour Ridgeline

Éditorial serif clair, papier ivoire, encre presque noire, vert forêt en accent, filets fins façon livre imprimé.

Q 9/10O 9/10EditorialMinimalPrint