index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Upload Zone</title>
<link rel="stylesheet" href="styles.css"/>
</head>
<body>
<main class="card">
<h2>Upload files</h2>
<p class="subtitle">Drag and drop your files here</p>
<label class="dropzone">
<input type="file" multiple/>
<div class="icon">☁️</div>
<p class="main-text">Drop files here</p>
<p class="sub-text">or <span class="browse">browse</span> to choose</p>
</label>
<p class="formats">PDF, DOCX, JPG, PNG - max 10MB</p>
</main>
</body>
</html>
styles.css
* {
margin: 0;
box-sizing: border-box;
}
body {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: linear-gradient(160deg, #050608, #0a1810 60%, #0e2218);
font-family: system-ui, sans-serif;
}
.card {
width: 400px;
padding: 32px;
border-radius: 24px;
background: rgba(255, 255, 255, 0.04);
backdrop-filter: blur(40px);
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
h2 {
font-size: 18px;
font-weight: 700;
color: #f0fdf4;
margin-bottom: 6px;
}
.subtitle {
font-size: 13px;
color: rgba(255, 255, 255, 0.4);
margin-bottom: 20px;
}
.dropzone {
display: block;
position: relative;
border: 2px dashed rgba(255, 255, 255, 0.15);
border-radius: 16px;
padding: 40px 20px;
text-align: center;
cursor: pointer;
transition: border-color 0.3s, background 0.3s;
}
.dropzone:hover {
border-color: rgba(34, 197, 94, 0.5);
background: rgba(34, 197, 94, 0.04);
}
.dropzone input {
position: absolute;
inset: 0;
opacity: 0;
cursor: pointer;
}
.icon {
font-size: 40px;
margin-bottom: 12px;
}
.main-text {
font-size: 14px;
font-weight: 600;
color: #dcfce7;
margin-bottom: 4px;
}
.sub-text {
font-size: 12px;
color: rgba(255, 255, 255, 0.35);
}
.browse {
color: #4ade80;
}
.formats {
font-size: 11px;
color: rgba(255, 255, 255, 0.25);
margin-top: 16px;
text-align: center;
}