diff --git a/public/imgs/quaddro2/est/bns/diba_sufr_mobl.jpg b/public/imgs/quaddro2/est/bns/diba_sufr_mobl.jpg index 3590256..02caff2 100644 Binary files a/public/imgs/quaddro2/est/bns/diba_sufr_mobl.jpg and b/public/imgs/quaddro2/est/bns/diba_sufr_mobl.jpg differ diff --git a/public/imgs/quaddro2/est/bns/diba_sufr_mobl_old.jpg b/public/imgs/quaddro2/est/bns/diba_sufr_mobl_old.jpg new file mode 100644 index 0000000..3590256 Binary files /dev/null and b/public/imgs/quaddro2/est/bns/diba_sufr_mobl_old.jpg differ diff --git a/public/imgs/quaddro2/mat/ducha_vigo_fresno.jpg b/public/imgs/quaddro2/mat/ducha_viggo_fresno.jpg similarity index 100% rename from public/imgs/quaddro2/mat/ducha_vigo_fresno.jpg rename to public/imgs/quaddro2/mat/ducha_viggo_fresno.jpg diff --git a/src/app.css b/src/app.css index 57ca95a..dfa66e4 100644 --- a/src/app.css +++ b/src/app.css @@ -1,6 +1,7 @@ @import "tailwindcss"; /* Utilities y tema */ + html { height: 100%; /* Propaga altura desde root */ } @@ -11,9 +12,6 @@ body { padding: 0; } -/* Tus estilos personalizados aquí, si los tienes */ -@theme { - /* Personalizaciones de tema, si necesitas */ -} + diff --git a/src/data/data_proyecto.ts b/src/data/data_proyecto.ts index 53acb57..045c3f7 100644 --- a/src/data/data_proyecto.ts +++ b/src/data/data_proyecto.ts @@ -29,48 +29,81 @@ export const proyecto : Proyecto = { 'suelo_viggo_fresno' : { nombre : 'Viggo Fresno', ref : 'suelo_viggo_fresno', - imagen : '/imgs/quaddro2/mat/suelo_vigo_fresno.jpg' + thumb : './imgs/quaddro2/mat/tn_suelo_viggo_fresno.jpg', + imagen : './imgs/quaddro2/mat/suelo_viggo_fresno.jpg' }, 'suelo_viggo_roble' : { nombre : 'Viggo Roble', ref : 'suelo_viggo_roble', - imagen : '/imgs/quaddro2/mat/suelo_vigo_roble.jpg' + thumb : './imgs/quaddro2/mat/tn_suelo_viggo_roble.jpg', + imagen : './imgs/quaddro2/mat/suelo_viggo_roble.jpg' + }, + 'encimera_negra' : { + nombre : "Encimera Negra", + ref : 'encimera_negra', + thumb : './imgs/quaddro2/mat/tn_encimera_negra.jpg', + imagen : './imgs/quaddro2/mat/encimera_negra.png' + }, + 'encimera_blanca' : { + nombre : "Encimera Blanca", + ref : 'encimera_blanca', + thumb : './imgs/quaddro2/mat/tn_encimera_blanca.jpg', + imagen : './imgs/quaddro2/mat/encimera_blanca.png' }, 'mueble_roble' : { - nombre : "Mueble Roble", + nombre : "Mueble Madera", ref : 'mueble_roble', - imagen : '/imgs/quaddro2/mat/mueble_roble.jpg' + thumb : './imgs/quaddro2/mat/tn_mueble_roble.jpg', + imagen : './imgs/quaddro2/mat/mueble_roble.jpg' }, 'mueble_blanco' : { nombre : 'Mueble Blanco', ref : 'mueble_blanco', - imagen : '/imgs/quaddro2/mat/mueble_blanco.jpg' + thumb : './imgs/quaddro2/mat/tn_mueble_blanco.jpg', + imagen : './imgs/quaddro2/mat/mueble_blanco.jpg' }, 'mueble_topo' : { nombre : 'Mueble_Blanco', ref : 'mueble_topo', - imagen : '/imgs/quaddro2/mat/mueble_topo.jpg' + thumb : './imgs/quaddro2/mat/tn_mueble_topo.jpg', + imagen : './imgs/quaddro2/mat/mueble_topo.jpg' }, 'ducha_viggo_roble' : { nombre : 'Ducha Viggo Roble', ref : 'ducha_viggo_roble', - imagen : '/imgs/quaddro2/mat/ducha_viggo_roble.jpg' + thumb : './imgs/quaddro2/mat/tn_ducha_viggo_roble.jpg', + imagen : './imgs/quaddro2/mat/ducha_viggo_roble.jpg' }, 'ducha_viggo_fresno': { nombre : 'Ducha Viggo Fresno', ref : 'ducha_viggo_fresno', - imagen : '/imgs/quaddro2/mat/ducha_viggo_fresno.jpg' + thumb : './imgs/quaddro2/mat/tn_ducha_viggo_fresno.jpg', + imagen : './imgs/quaddro2/mat/ducha_viggo_fresno.jpg' }, 'alicatado_agar' : { nombre : 'Alicatado Agar Mate', ref : 'alicatado_agar', - imagen : '/imgs/quaddro2/mat/alicatado_agar.jpg' + thumb : './imgs/quaddro2/mat/tn_alicatado_agar_mate.jpg', + imagen : './imgs/quaddro2/mat/alicatado_agar_mate.jpg' }, 'madera_palilleria' : { nombre : 'Palilleria', ref : 'madera_palilleria', - imagen : '/imgs/quaddro2/mat/madera_palilleria.png' - } + thumb : './imgs/quaddro2/mat/tn_madera_palilleria.jpg', + imagen : './imgs/quaddro2/mat/madera_palilleria.jpg' + }, + 'ducha' : { + nombre : 'Baño con Ducha', + ref : 'ducha', + thumb : './imgs/quaddro2/mat/tn_ducha.jpg', + imagen : './imgs/quaddro2/mat/ducha.jpg' + }, + 'banera' : { + nombre : 'Baño con Bañera', + ref : 'banera', + thumb : './imgs/quaddro2/mat/tn_banera.jpg', + imagen : './imgs/quaddro2/mat/banera.jpg' + }, }, @@ -93,7 +126,7 @@ export const proyecto : Proyecto = { { nombre : 'Suelo Viggo Roble', value : 'suro', - material: 'suelo_viggo_fresno', + material: 'suelo_viggo_roble', } ] } @@ -107,8 +140,8 @@ export const proyecto : Proyecto = { adds : { 'ab' : { nombre : 'Cocina abierta', - imagen : 'imgs/quaddro2/est/ccn/diab.jpg', - imagenTn: 'imgs/quaddro2/est/ccn/diab_tn.png', + imagen : './imgs/quaddro2/est/ccn/diab.jpg', + thumb: './imgs/quaddro2/est/ccn/diab_tn.png', } }, opciones: [ @@ -133,12 +166,12 @@ export const proyecto : Proyecto = { { nombre : 'Encimera Negra', value : 'enne', - material: null, + material: 'encimera_negra', }, { nombre : 'Encimera Blanca', value : 'enbl', - material: null, + material: 'encimera_blanca', } ] }, @@ -153,7 +186,7 @@ export const proyecto : Proyecto = { { nombre : 'Con Palilleria', value : 'repa', - material: null, + material: 'madera_palilleria', } ] }, @@ -163,12 +196,12 @@ export const proyecto : Proyecto = { { nombre : 'Mueble Blanco', value : 'mubl', - material: null, + material: 'mueble_blanco', }, { nombre : 'Mueble Topo', value : 'muto', - material: null, + material: 'mueble_topo', } ] } @@ -183,7 +216,7 @@ export const proyecto : Proyecto = { 'kit' : { nombre : 'Kit Sanitario', imagen : 'imgs/quaddro2/est/bnp/diks.jpg', - imagenTn: 'imgs/quaddro2/est/bnp/diks_tn.png' + thumb : 'imgs/quaddro2/est/bnp/diks_tn.png' } }, opciones: [ @@ -197,7 +230,7 @@ export const proyecto : Proyecto = { }, { nombre : 'Suelo Viggo Roble', - material: 'suelo_viggo_Roble', + material: 'suelo_viggo_roble', value : 'suro' } ] @@ -212,7 +245,7 @@ export const proyecto : Proyecto = { }, { nombre : 'Agar Mate', - material: null, + material: 'alicatado_agar', value : 'alag', } ] @@ -222,12 +255,12 @@ export const proyecto : Proyecto = { opciones: [ { nombre : 'Mueble Blanco', - material: null, + material: 'mueble_blanco', value : 'mobl', }, { - nombre : 'Mueble Madera', - material: null, + nombre : 'Mueble Roble', + material: 'mueble_roble', value : 'moma', } ] @@ -247,12 +280,12 @@ export const proyecto : Proyecto = { { nombre: 'Con Ducha', value : 'didu', - material: null, + material: 'ducha', }, { nombre: 'Con Bañera', value : 'diba', - material: null, + material: 'banera', }, ] }, @@ -276,12 +309,12 @@ export const proyecto : Proyecto = { opciones: [ { nombre : 'Mueble Blanco', - material: null, + material: 'mueble_blanco', value : 'mobl', }, { nombre : 'Mueble Madera', - material: null, + material: 'mueble_roble', value : 'moma', } ] diff --git a/src/data/data_types.ts b/src/data/data_types.ts index 7bd3a60..5c20374 100644 --- a/src/data/data_types.ts +++ b/src/data/data_types.ts @@ -26,6 +26,7 @@ export interface Empresa { export interface Material { nombre : string; ref : string; + thumb? : string; imagen?: string; } @@ -48,7 +49,7 @@ export interface OpcionesSet { export interface Add { nombre : string; imagen : string; - imagenTn : string + thumb : string } export interface Estancia { diff --git a/src/lib/components/BotonAcabado.svelte b/src/lib/components/BotonAcabado.svelte index 1b6e63c..4b7838c 100644 --- a/src/lib/components/BotonAcabado.svelte +++ b/src/lib/components/BotonAcabado.svelte @@ -1,27 +1,44 @@ + - - + {/if} + \ No newline at end of file diff --git a/src/lib/components/BotonEstancia.svelte b/src/lib/components/BotonEstancia.svelte index 484ff05..643e025 100644 --- a/src/lib/components/BotonEstancia.svelte +++ b/src/lib/components/BotonEstancia.svelte @@ -2,16 +2,25 @@ - + + {/each} + - + {/if} + {/if} + + + + +
@@ -84,11 +170,47 @@
- + + + + + - \ No newline at end of file + + + + + +{#if modalInfo} +
{ if (e.key === 'Escape') + closeModal() } } + role="dialog" + aria-modal="true" + tabindex="0"> + +
e.stopPropagation()} + role="button" + tabindex="0" + onkeydown={ (e) => { if (e.key === 'Escape') closeModal() }} + > +

Opción de {modalInfo.texto}

+ Imagen ampliada + +
+ +
+{/if} + diff --git a/src/lib/components/ProyectoView.svelte b/src/lib/components/ProyectoView.svelte index aabb66e..1ff9003 100644 --- a/src/lib/components/ProyectoView.svelte +++ b/src/lib/components/ProyectoView.svelte @@ -3,10 +3,11 @@ import {proyecto} from "../../data/data_proyecto"; // Asume que la URL de la imagen de fondo viene como prop o se define aquí - let { projectBg } = $props<{ projectBg: string }>(); + let { projectBg } = $props<{ projectBg?: string }>(); +
diff --git a/src/lib/components/test/Selector.svelte b/src/lib/components/test/Selector.svelte index a9ed462..ad13f4a 100644 --- a/src/lib/components/test/Selector.svelte +++ b/src/lib/components/test/Selector.svelte @@ -126,7 +126,7 @@ onclick={() => openModal(add.imagen)} > {`Vista diff --git a/src/lib/components/test/StoreTestTW.svelte b/src/lib/components/test/StoreTestTW.svelte index 88e2bda..4c9c93d 100644 --- a/src/lib/components/test/StoreTestTW.svelte +++ b/src/lib/components/test/StoreTestTW.svelte @@ -112,7 +112,7 @@ {`Vista openModal(add.imagen)} diff --git a/tailwind.config.js b/tailwind.config.js index 1d059ca..398b135 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,8 +1,5 @@ module.exports = { - content: [ - './index.html', - './src/**/*.{svelte,js,ts}', // RUTA CRUCIAL - ], + content: ['./src/**/*.{svelte,js,ts}'], theme: { extend: { colors: { @@ -12,8 +9,9 @@ module.exports = { 600: '#2563eb', 700: '#1d4ed8' } - } + }, + width: {'image-fit': 'calc(100% - 2ren)' }, }, }, - plugins: [], + } \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index cfd6d97..46739fa 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -9,7 +9,7 @@ export default defineConfig({ base: './', plugins: [svelte(),tailwindcss()/*,viteSingleFile()*/], css: { - transformer: 'lightningcss' // Opcional, pero recomendado en v4 para mejor rendimiento + /* transformer: 'lightningcss' // Opcional, pero recomendado en v4 para mejor rendimiento */ }, build: { cssCodeSplit: false,