- corretto footer catalogo

- corretti il path delle immagini (quando hanno lo spazio nel nomefile).
- aggiunto colore di sfondo per il testo descrittivo, in trasparenza
This commit is contained in:
Surya Paolo
2025-05-21 12:06:09 +02:00
parent fea40922cb
commit e0583044d7
21 changed files with 782 additions and 263 deletions

View File

@@ -113,6 +113,11 @@ body {
font-size: calc(20 * var(--scalecatalog) * 1px);
height: calc(380 * var(--scalecatalog) * 1px);
line-height: 130%;
font-weight: bold;
padding: 8px;
border-radius: 20px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.book-text-down {
@@ -120,12 +125,28 @@ body {
margin-bottom: calc(5 * var(--scalecatalog) * 1px);
}
.book-pagina-title {
.book-pagina-title, .book-pagina-title-footer {
font-family: 'DINPro', sans-serif;
margin-top: calc(20 * var(--scalecatalog) * 1px);
margin-bottom: calc(5 * var(--scalecatalog) * 1px);
font-size: calc(35 * var(--scalecatalog) * 1px);
height: calc(100 * var(--scalecatalog) * 1px);
margin-top: calc(50 * var(--scalecatalog) * 1px);
margin-bottom: calc(0 * var(--scalecatalog) * 1px);
font-size: calc(30 * var(--scalecatalog) * 1px);
height: calc(50 * var(--scalecatalog) * 1px);
text-transform: uppercase;
font-weight: bold;
}
.book-pagina-title-footer{
font-size: calc(20 * var(--scalecatalog) * 1px) !important;
text-transform: none;
}
.book-pagina-fondo {
position: absolute;
bottom: 0;
width: 100%;
display: flex;
flex-direction: row;
justify-content: center;
}
.categories {
@@ -163,4 +184,4 @@ body {
font-weight: 600;
border-color: #5c8ef4 !important;
box-shadow: 0 0 0 2px rgba(92, 142, 244, 0.3);
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -178,7 +178,10 @@
</q-inner-loading>
<q-btn
v-if="!showListaFiltrata && tools.is"
v-if="
!showListaFiltrata &&
(tools.isEditor() || tools.isCommerciale())
"
rounded
icon="fas fa-redo"
label="Rigenera Lista"
@@ -316,7 +319,11 @@
</q-tabs>
<CTitleBanner
v-show="tabcatalogo === 'visu' && !tools.isUtente() && arrProducts?.length > 0"
v-show="
tabcatalogo === 'visu' &&
!tools.isUtente() &&
arrProducts?.length > 0
"
class="q-pa-xs"
title="Genera PDF"
bgcolor="bg-blue"
@@ -352,7 +359,7 @@
color="positive"
></q-btn>
<q-btn
v-if="tools.isAdmin() && false"
v-if="tools.isAdmin() && true"
label="Debug"
@click="toggleDebug()"
:push="optcatalogo.indebug"
@@ -867,6 +874,36 @@
></div>
</div>
<!-- Testo sul footer -->
<div
v-if="recscheda.scheda?.dimensioni?.pagina?.testo_title"
:style="{
'--scalecatalog':
tools.getScale(optcatalogo),
'line-height':
recscheda.scheda.dimensioni.pagina
?.testo_title?.font.line_height,
display: 'flex',
flexDirection: 'column',
position: 'relative', // Posizionamento assoluto
bottom: '8.5%', // Posiziona in basso
left: '50%', // Centra orizzontalmente
transform: 'translateX(-50%)', // Correzione per centrare perfettamente
width: '100%', // Assicura che il contenitore occupi l'intera larghezza
textAlign: 'center', // Allinea il testo al centro
zIndex: '10', // Assicura che il testo sia visibile sopra altri elementi
}"
>
<div
v-html="getTitoloPagina(null, optcatalogo.arrSchede[0], true)"
></div>
</div>
<div v-if="optcatalogo.indebug">
IMG:
{{ getImgIntroCatalogo(recscheda.scheda) }}
</div>
<!-- Itera sulle righe di ogni pagina -->
<div
v-for="(row, rowIndex) in page"

View File

@@ -162,19 +162,19 @@ export default defineComponent({
imagefile = recimg.imagefile!;
fit = recimg.fit! || 'contain';
imagefile = imagefile
? `url(${tools.getDirUpload() + shared_consts.getDirectoryByTable(shared_consts.TABLES_CATALOG) + '/' + trovatoraccolta._id + '/' + imagefile})`
? `url("${tools.getDirUpload() + shared_consts.getDirectoryByTable(shared_consts.TABLES_CATALOG) + '/' + trovatoraccolta._id + '/' + imagefile}")`
: '';
}
}
if (!imagefile) {
let myimg = costanti.CATALOGHI.PAG_SFONDO_DEFAULT;
// Se non c'è un immagine di sfondo, allora prende quella di default
imagefile = `url(${tools.getDirUpload() + shared_consts.getDirectoryByTable(shared_consts.TABLES_CATALOG) + '/' + myimg})`;
imagefile = `url("${tools.getDirUpload() + shared_consts.getDirectoryByTable(shared_consts.TABLES_CATALOG) + '/' + myimg})"`;
}
if (!imagefile && mypage) {
imagefile = mypage.imgsfondo!.imagefile!;
imagefile = imagefile ? `url(${tools.getDirUpload() + costanti.DIR_CATALOGO + imagefile})` : '';
imagefile = imagefile ? `url("${tools.getDirUpload() + costanti.DIR_CATALOGO + imagefile}")` : '';
fit = mypage.imgsfondo!.fit!;
}