feat: initial commit for deBallet Atelier Budget Calculator
This commit is contained in:
24
.gitignore
vendored
Normal file
24
.gitignore
vendored
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# Logs
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
lerna-debug.log*
|
||||||
|
|
||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
dist-ssr
|
||||||
|
*.local
|
||||||
|
|
||||||
|
# Editor directories and files
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/extensions.json
|
||||||
|
.idea
|
||||||
|
.DS_Store
|
||||||
|
*.suo
|
||||||
|
*.ntvs*
|
||||||
|
*.njsproj
|
||||||
|
*.sln
|
||||||
|
*.sw?
|
||||||
124
index.html
Normal file
124
index.html
Normal file
@@ -0,0 +1,124 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="es">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<link rel="icon" type="image/svg+xml" href="/javascript.svg" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<title>DeBallet Atelier - Presupuestador Pro</title>
|
||||||
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Playfair+Display:ital,wght@0,700;1,700&display=swap" rel="stylesheet">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="app">
|
||||||
|
<div class="container">
|
||||||
|
<header>
|
||||||
|
<h1>DeBallet Atelier</h1>
|
||||||
|
<p>Calculadora de Presupuestos de Alta Costura</p>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<main>
|
||||||
|
<!-- Seccion de Carga de Archivos (Configuracion) -->
|
||||||
|
<section id="config-section" class="card">
|
||||||
|
<h2>Configuración de Tarifas</h2>
|
||||||
|
<p style="margin-bottom: 1.5rem; font-size: 0.9rem; color: #666;">
|
||||||
|
Sube tus archivos Excel para cargar los precios de confección y materiales.
|
||||||
|
</p>
|
||||||
|
<div class="grid">
|
||||||
|
<div>
|
||||||
|
<label>Excel de Confección</label>
|
||||||
|
<div id="upload-confeccion" class="upload-zone">
|
||||||
|
<p>Arrastra aquí o haz clic para subir</p>
|
||||||
|
<input type="file" id="file-confeccion" accept=".xlsx, .xls" class="hidden">
|
||||||
|
<span id="status-confeccion" style="font-size: 0.8rem; color: var(--primary-color);"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<label>Excel de Materias Básicas</label>
|
||||||
|
<div id="upload-materias" class="upload-zone">
|
||||||
|
<p>Arrastra aquí o haz clic para subir</p>
|
||||||
|
<input type="file" id="file-materias" accept=".xlsx, .xls" class="hidden">
|
||||||
|
<span id="status-materias" style="font-size: 0.8rem; color: var(--primary-color);"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<!-- Seccion de Calculo -->
|
||||||
|
<section id="budget-section" class="card">
|
||||||
|
<h2>Nuevo Presupuesto</h2>
|
||||||
|
<div class="grid" style="margin-top: 2rem;">
|
||||||
|
<!-- Columna Izquierda: Inputs -->
|
||||||
|
<div class="budget-form">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="select-materia">Materia Prima</label>
|
||||||
|
<input type="text" id="search-materia" placeholder="Buscar materia prima...">
|
||||||
|
<div class="data-table-container">
|
||||||
|
<table id="table-materias">
|
||||||
|
<thead>
|
||||||
|
<tr><th>Concepto</th><th>Precio</th></tr>
|
||||||
|
</thead>
|
||||||
|
<tbody id="tbody-materias">
|
||||||
|
<tr><td colspan="2" style="text-align: center;">Carga un Excel para ver datos</td></tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<input type="number" id="manual-materia" placeholder="O ingresa monto manual" style="margin-top: 0.5rem;">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="select-confeccion">Confección</label>
|
||||||
|
<input type="text" id="search-confeccion" placeholder="Buscar tipo de confección...">
|
||||||
|
<div class="data-table-container">
|
||||||
|
<table id="table-confeccion">
|
||||||
|
<thead>
|
||||||
|
<tr><th>Trabajo</th><th>Precio</th></tr>
|
||||||
|
</thead>
|
||||||
|
<tbody id="tbody-confeccion">
|
||||||
|
<tr><td colspan="2" style="text-align: center;">Carga un Excel para ver datos</td></tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<input type="number" id="manual-confeccion" placeholder="O ingresa monto manual" style="margin-top: 0.5rem;">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid">
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Corte (€)</label>
|
||||||
|
<input type="number" id="costo-corte" value="1" step="0.5">
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label>Distribución (€)</label>
|
||||||
|
<input type="number" id="costo-distribucion" value="1" step="0.5">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button id="btn-calcular" class="btn" style="width: 100%;">CALCULAR TOTALES</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- Columna Derecha: Resultados -->
|
||||||
|
<div class="budget-results">
|
||||||
|
<div class="price-box" style="margin-bottom: 1.5rem;">
|
||||||
|
<div class="price-label">Precio de Venta</div>
|
||||||
|
<div class="price-value"><span id="res-venta">0.00</span><span class="currency">€</span></div>
|
||||||
|
<p style="font-size: 0.8rem; color: #999; margin-top: 1rem;">
|
||||||
|
Fórmula: (Materias + Confección + Corte + Dist) x 2
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="price-box coste">
|
||||||
|
<div class="price-label">Precio de Coste</div>
|
||||||
|
<div class="price-value" style="font-size: 1.8rem;"><span id="res-coste">0.00</span><span class="currency">€</span></div>
|
||||||
|
<p style="font-size: 0.8rem; color: #999; margin-top: 1rem;">
|
||||||
|
Suma total de gastos directos.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script type="module" src="/src/main.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
1138
package-lock.json
generated
Normal file
1138
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
17
package.json
Normal file
17
package.json
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"name": "costuraballet",
|
||||||
|
"private": true,
|
||||||
|
"version": "0.0.0",
|
||||||
|
"type": "module",
|
||||||
|
"scripts": {
|
||||||
|
"dev": "vite",
|
||||||
|
"build": "vite build",
|
||||||
|
"preview": "vite preview"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"vite": "^7.2.4"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"xlsx": "^0.18.5"
|
||||||
|
}
|
||||||
|
}
|
||||||
117
src/main.js
Normal file
117
src/main.js
Normal file
@@ -0,0 +1,117 @@
|
|||||||
|
import './style.css';
|
||||||
|
import * as XLSX from 'xlsx';
|
||||||
|
|
||||||
|
// Estado Global
|
||||||
|
let dataMaterias = [];
|
||||||
|
let dataConfeccion = [];
|
||||||
|
|
||||||
|
// Elementos del DOM
|
||||||
|
const fileConfeccion = document.getElementById('file-confeccion');
|
||||||
|
const fileMaterias = document.getElementById('file-materias');
|
||||||
|
const uploadConfeccion = document.getElementById('upload-confeccion');
|
||||||
|
const uploadMaterias = document.getElementById('upload-materias');
|
||||||
|
|
||||||
|
const tbodyMaterias = document.getElementById('tbody-materias');
|
||||||
|
const tbodyConfeccion = document.getElementById('tbody-confeccion');
|
||||||
|
|
||||||
|
const searchMateria = document.getElementById('search-materia');
|
||||||
|
const searchConfeccion = document.getElementById('search-confeccion');
|
||||||
|
|
||||||
|
const inputMateriaTotal = document.getElementById('manual-materia');
|
||||||
|
const inputConfeccionTotal = document.getElementById('manual-confeccion');
|
||||||
|
const inputCorte = document.getElementById('costo-corte');
|
||||||
|
const inputDistribucion = document.getElementById('costo-distribucion');
|
||||||
|
|
||||||
|
const btnCalcular = document.getElementById('btn-calcular');
|
||||||
|
const resVenta = document.getElementById('res-venta');
|
||||||
|
const resCoste = document.getElementById('res-coste');
|
||||||
|
|
||||||
|
// Handlers para subida de archivos
|
||||||
|
uploadConfeccion.onclick = () => fileConfeccion.click();
|
||||||
|
uploadMaterias.onclick = () => fileMaterias.click();
|
||||||
|
|
||||||
|
fileConfeccion.onchange = (e) => handleFileUpload(e, 'confeccion');
|
||||||
|
fileMaterias.onchange = (e) => handleFileUpload(e, 'materias');
|
||||||
|
|
||||||
|
async function handleFileUpload(event, type) {
|
||||||
|
const file = event.target.files[0];
|
||||||
|
if (!file) return;
|
||||||
|
|
||||||
|
const data = await file.arrayBuffer();
|
||||||
|
const workbook = XLSX.read(data);
|
||||||
|
const firstSheetName = workbook.SheetNames[0];
|
||||||
|
const worksheet = workbook.Sheets[firstSheetName];
|
||||||
|
const jsonData = XLSX.utils.sheet_to_json(worksheet);
|
||||||
|
|
||||||
|
if (type === 'confeccion') {
|
||||||
|
dataConfeccion = jsonData;
|
||||||
|
document.getElementById('status-confeccion').innerText = `✓ ${jsonData.length} precios cargados`;
|
||||||
|
renderTable(tbodyConfeccion, dataConfeccion, ['Concepto', 'Precio'], inputConfeccionTotal);
|
||||||
|
} else {
|
||||||
|
dataMaterias = jsonData;
|
||||||
|
document.getElementById('status-materias').innerText = `✓ ${jsonData.length} materiales cargados`;
|
||||||
|
renderTable(tbodyMaterias, dataMaterias, ['Concepto', 'Precio'], inputMateriaTotal);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function renderTable(container, data, keys, targetInput) {
|
||||||
|
container.innerHTML = '';
|
||||||
|
|
||||||
|
// Detectar nombres de columnas automáticamente si no son estándar
|
||||||
|
const availableKeys = data.length > 0 ? Object.keys(data[0]) : [];
|
||||||
|
const nameKey = availableKeys[0] || 'Concepto';
|
||||||
|
const priceKey = availableKeys.find(k => k.toLowerCase().includes('precio') || k.toLowerCase().includes('valor') || k.toLowerCase().includes('coste')) || availableKeys[1];
|
||||||
|
|
||||||
|
data.forEach(item => {
|
||||||
|
const tr = document.createElement('tr');
|
||||||
|
const price = parseFloat(item[priceKey]) || 0;
|
||||||
|
tr.innerHTML = `
|
||||||
|
<td>${item[nameKey] || 'N/A'}</td>
|
||||||
|
<td>${price.toFixed(2)}€</td>
|
||||||
|
`;
|
||||||
|
tr.onclick = () => {
|
||||||
|
targetInput.value = price;
|
||||||
|
// Highlight visual opcional
|
||||||
|
Array.from(container.children).forEach(r => r.style.background = '');
|
||||||
|
tr.style.background = 'var(--primary-light)';
|
||||||
|
};
|
||||||
|
container.appendChild(tr);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Búsqueda en tablas
|
||||||
|
searchMateria.oninput = (e) => {
|
||||||
|
const term = e.target.value.toLowerCase();
|
||||||
|
const filtered = dataMaterias.filter(item =>
|
||||||
|
Object.values(item).some(val => String(val).toLowerCase().includes(term))
|
||||||
|
);
|
||||||
|
renderTable(tbodyMaterias, filtered, [], inputMateriaTotal);
|
||||||
|
};
|
||||||
|
|
||||||
|
searchConfeccion.oninput = (e) => {
|
||||||
|
const term = e.target.value.toLowerCase();
|
||||||
|
const filtered = dataConfeccion.filter(item =>
|
||||||
|
Object.values(item).some(val => String(val).toLowerCase().includes(term))
|
||||||
|
);
|
||||||
|
renderTable(tbodyConfeccion, filtered, [], inputConfeccionTotal);
|
||||||
|
};
|
||||||
|
|
||||||
|
// Cálculo Final
|
||||||
|
btnCalcular.onclick = () => {
|
||||||
|
const m = parseFloat(inputMateriaTotal.value) || 0;
|
||||||
|
const c = parseFloat(inputConfeccionTotal.value) || 0;
|
||||||
|
const corte = parseFloat(inputCorte.value) || 0;
|
||||||
|
const dist = parseFloat(inputDistribucion.value) || 0;
|
||||||
|
|
||||||
|
const costeTotal = m + c + corte + dist;
|
||||||
|
const precioVenta = costeTotal * 2;
|
||||||
|
|
||||||
|
resCoste.innerText = costeTotal.toFixed(2);
|
||||||
|
resVenta.innerText = precioVenta.toFixed(2);
|
||||||
|
|
||||||
|
// Animación de bounce
|
||||||
|
resVenta.parentElement.style.transform = 'scale(1.1)';
|
||||||
|
setTimeout(() => {
|
||||||
|
resVenta.parentElement.style.transform = 'scale(1)';
|
||||||
|
}, 200);
|
||||||
|
};
|
||||||
247
src/style.css
Normal file
247
src/style.css
Normal file
@@ -0,0 +1,247 @@
|
|||||||
|
:root {
|
||||||
|
--font-serif: 'Playfair Display', serif;
|
||||||
|
--font-sans: 'Inter', system-ui, -apple-system, sans-serif;
|
||||||
|
|
||||||
|
/* Palette: Ballet Atelier */
|
||||||
|
--bg-color: #fcf9f8;
|
||||||
|
--card-bg: rgba(255, 255, 255, 0.85);
|
||||||
|
--primary-color: #d4a373; /* Satin Tan */
|
||||||
|
--primary-light: #faedcd;
|
||||||
|
--accent-color: #e76f51; /* Deep Silk */
|
||||||
|
--text-dark: #264653;
|
||||||
|
--text-muted: #6d6d6d;
|
||||||
|
--border-color: #e9edc9;
|
||||||
|
--shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
|
||||||
|
--glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
|
||||||
|
}
|
||||||
|
|
||||||
|
* {
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: var(--font-sans);
|
||||||
|
background-color: var(--bg-color);
|
||||||
|
color: var(--text-dark);
|
||||||
|
line-height: 1.6;
|
||||||
|
min-height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3 {
|
||||||
|
font-family: var(--font-serif);
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
max-width: 1100px;
|
||||||
|
margin: 0 auto;
|
||||||
|
padding: 2rem;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 3rem;
|
||||||
|
padding-top: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
header h1 {
|
||||||
|
font-size: 2.5rem;
|
||||||
|
color: var(--primary-color);
|
||||||
|
letter-spacing: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
header p {
|
||||||
|
color: var(--text-muted);
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Glassmorphism Card Style */
|
||||||
|
.card {
|
||||||
|
background: var(--card-bg);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
-webkit-backdrop-filter: blur(10px);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.18);
|
||||||
|
border-radius: 1.5rem;
|
||||||
|
padding: 2.5rem;
|
||||||
|
box-shadow: var(--glass-shadow);
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Form Styles */
|
||||||
|
.form-group {
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
label {
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: var(--text-dark);
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
input, select {
|
||||||
|
width: 100%;
|
||||||
|
padding: 1rem;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
border-radius: 0.75rem;
|
||||||
|
font-size: 1rem;
|
||||||
|
background: white;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
input:focus, select:focus {
|
||||||
|
outline: none;
|
||||||
|
border-color: var(--primary-color);
|
||||||
|
box-shadow: 0 0 0 3px var(--primary-light);
|
||||||
|
}
|
||||||
|
|
||||||
|
.grid {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
gap: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.grid {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Custom Button */
|
||||||
|
.btn {
|
||||||
|
background: var(--primary-color);
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
padding: 1rem 2rem;
|
||||||
|
border-radius: 50px;
|
||||||
|
font-size: 1rem;
|
||||||
|
font-weight: 600;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.3s ease;
|
||||||
|
display: inline-block;
|
||||||
|
text-align: center;
|
||||||
|
box-shadow: 0 4px 15px rgba(212, 163, 115, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn:hover {
|
||||||
|
transform: translateY(-2px);
|
||||||
|
box-shadow: 0 6px 20px rgba(212, 163, 115, 0.4);
|
||||||
|
background: #c29262;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-secondary {
|
||||||
|
background: white;
|
||||||
|
color: var(--primary-color);
|
||||||
|
border: 1px solid var(--primary-color);
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-secondary:hover {
|
||||||
|
background: var(--primary-light);
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Results Display */
|
||||||
|
.results {
|
||||||
|
margin-top: 2rem;
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr 1fr;
|
||||||
|
gap: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.result-card {
|
||||||
|
padding: 1.5rem;
|
||||||
|
border-radius: 1rem;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.price-box {
|
||||||
|
background: #fff;
|
||||||
|
padding: 2rem;
|
||||||
|
border-radius: 1.5rem;
|
||||||
|
border-top: 4px solid var(--primary-color);
|
||||||
|
box-shadow: var(--shadow);
|
||||||
|
}
|
||||||
|
|
||||||
|
.price-box.coste {
|
||||||
|
border-top-color: var(--text-muted);
|
||||||
|
}
|
||||||
|
|
||||||
|
.price-label {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
color: var(--text-muted);
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin-bottom: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.price-value {
|
||||||
|
font-size: 2.5rem;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--text-dark);
|
||||||
|
}
|
||||||
|
|
||||||
|
.currency {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
vertical-align: super;
|
||||||
|
margin-left: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Table Style for Data Selection */
|
||||||
|
.data-table-container {
|
||||||
|
max-height: 300px;
|
||||||
|
overflow-y: auto;
|
||||||
|
border: 1px solid #eee;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
margin-top: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
width: 100%;
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
|
th, td {
|
||||||
|
padding: 0.75rem;
|
||||||
|
text-align: left;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
th {
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
background: #f8f8f8;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
text-transform: uppercase;
|
||||||
|
}
|
||||||
|
|
||||||
|
tr:hover {
|
||||||
|
background: var(--primary-light);
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Upload Section */
|
||||||
|
.upload-zone {
|
||||||
|
border: 2px dashed #ddd;
|
||||||
|
padding: 2rem;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 1rem;
|
||||||
|
background: white;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: border-color 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.upload-zone:hover {
|
||||||
|
border-color: var(--primary-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.hidden {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user