- aggiornati form registrazione

- Login
- Password dimenticata
- Aggiorna password.
- Email registrazione
- Ammetti Utente
This commit is contained in:
Surya Paolo
2025-11-24 17:42:56 +01:00
parent 00bdc278d8
commit c61572a715
18 changed files with 1278 additions and 284 deletions

View File

@@ -16,14 +16,15 @@ html(lang="it")
padding: 20px;
line-height: 1.6;
}
.header-logo {
width: 80px;
width: 120px;
height: auto;
margin-bottom: 16px;
display: block;
margin-left: auto;
margin-right: auto;
}
}
.email-container {
max-width: 600px;
@@ -35,7 +36,7 @@ html(lang="it")
}
.email-header {
background: linear-gradient(135deg, #027be3 0%, #0056b3 100%);
background: linear-gradient(135deg, #7cb342 0%, #558b2f 100%);
color: white;
padding: 40px 24px;
text-align: center;
@@ -43,90 +44,39 @@ html(lang="it")
.email-header h1 {
margin: 0 0 8px 0;
font-size: 28px;
font-size: 26px;
font-weight: 600;
line-height: 1.3;
}
.email-header p {
margin: 0;
font-size: 16px;
.email-header .subtitle {
margin: 8px 0 0 0;
font-size: 17px;
opacity: 0.95;
font-style: italic;
}
.welcome-icon {
font-size: 48px;
margin-bottom: 16px;
font-size: 56px;
margin-bottom: 12px;
}
.email-body {
padding: 20px 16px;
padding: 32px 24px;
}
.intro-text {
font-size: 16px;
color: #333;
margin-bottom: 16px;
margin-bottom: 20px;
text-align: center;
line-height: 1.7;
}
.credentials-box {
background: #f8f9fa;
border-left: 4px solid #027be3;
border-radius: 8px;
padding: 12px;
margin-bottom: 16px;
}
.credentials-title {
font-size: 15px;
font-weight: 600;
color: #555;
margin-bottom: 8px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.credential-row {
display: flex;
align-items: center;
padding: 6px 0;
border-bottom: 1px solid #e0e0e0;
}
.credential-row:last-child {
border-bottom: none;
padding-bottom: 0;
}
.credential-label {
font-weight: 600;
color: #666;
min-width: 120px;
font-size: 14px;
}
.credential-value {
color: #1a1a1a;
font-size: 15px;
font-weight: 500;
flex: 1;
word-break: break-word;
}
.credential-value a {
color: #027be3;
text-decoration: none;
}
.credential-value a:hover {
text-decoration: underline;
}
.cta-section {
text-align: center;
margin: 16px 0;
padding: 16px 0;
margin: 24px 0;
padding: 20px 0;
border-top: 1px solid #e0e0e0;
border-bottom: 1px solid #e0e0e0;
}
@@ -138,57 +88,22 @@ html(lang="it")
margin-bottom: 16px;
}
.cta-buttons-wrapper {
display: flex;
gap: 12px;
justify-content: center;
align-items: stretch;
flex-wrap: wrap;
margin-top: 16px;
}
.cta-button {
display: inline-block;
padding: 16px 32px;
font-size: 16px;
padding: 16px 48px;
font-size: 18px;
font-weight: 600;
color: white;
background: linear-gradient(135deg, #027be3 0%, #0056b3 100%);
background: linear-gradient(135deg, #7cb342 0%, #558b2f 100%);
border-radius: 50px;
text-decoration: none;
box-shadow: 0 4px 12px rgba(2, 123, 227, 0.3);
transition: transform 0.2s, box-shadow 0.2s;
flex: 1;
min-width: 180px;
max-width: 220px;
}
.cta-button:hover {
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(2, 123, 227, 0.4);
}
.cta-button-secondary {
background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}
.cta-button-secondary:hover {
box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}
.cta-button-tertiary {
background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}
.cta-button-tertiary:hover {
box-shadow: 0 6px 16px rgba(255, 152, 0, 0.4);
box-shadow: 0 4px 12px rgba(124, 179, 66, 0.3);
transition: all 0.3s ease;
}
.button-icon {
font-size: 18px;
margin-right: 6px;
margin-right: 8px;
vertical-align: middle;
}
@@ -196,31 +111,114 @@ html(lang="it")
margin-top: 16px;
font-size: 13px;
color: #777;
line-height: 1.6;
}
.alternative-link a {
color: #027be3;
color: #558b2f;
text-decoration: none;
word-break: break-all;
}
.info-box {
background: #e3f2fd;
.verification-process {
background: #f8f9fa;
border-radius: 8px;
padding: 10px;
margin-top: 12px;
text-align: center;
padding: 24px 20px;
margin: 24px 0;
}
.info-box p {
.process-title {
font-size: 18px;
font-weight: 600;
color: #1a1a1a;
text-align: center;
margin-bottom: 20px;
}
.process-title .icon {
font-size: 24px;
margin-right: 8px;
vertical-align: middle;
}
.process-steps {
margin: 20px 0;
}
.process-step {
display: flex;
align-items: flex-start;
margin-bottom: 20px;
padding: 16px;
background: white;
border-radius: 8px;
border-left: 4px solid #e0e0e0;
}
.process-step.active {
border-left-color: #7cb342;
background: linear-gradient(135deg, #f8fdf8 0%, #e8f5e9 100%);
}
.step-badge {
min-width: 40px;
height: 40px;
border-radius: 50%;
background: #e0e0e0;
color: #666;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 18px;
margin-right: 16px;
flex-shrink: 0;
}
.process-step.active .step-badge {
background: linear-gradient(135deg, #7cb342 0%, #558b2f 100%);
color: white;
}
.step-content {
flex: 1;
}
.step-content h4 {
font-size: 16px;
color: #1a1a1a;
margin-bottom: 6px;
font-weight: 600;
}
.step-content p {
font-size: 15px;
color: #555;
line-height: 1.5;
margin: 0;
color: #1565c0;
font-size: 14px;
}
.info-note {
background: #fff8dc;
border-left: 4px solid #7cb342;
border-radius: 8px;
padding: 14px;
margin-top: 20px;
}
.info-note p {
margin: 0;
font-size: 15px;
color: #1a1a1a;
line-height: 1.6;
}
.info-note strong {
color: #558b2f;
}
.email-footer {
padding: 16px 12px;
padding: 20px;
text-align: center;
background: #f8f9fa;
color: #777;
@@ -234,115 +232,132 @@ html(lang="it")
.divider {
height: 1px;
background: linear-gradient(to right, transparent, #e0e0e0, transparent);
margin: 24px 0;
margin: 20px 0;
}
@media only screen and (max-width: 600px) {
body {
padding: 5px;
padding: 10px;
}
.email-header {
padding: 16px 10px;
padding: 24px 16px;
}
.email-header h1 {
font-size: 24px;
font-size: 22px;
}
.welcome-icon {
font-size: 48px;
}
.email-body {
padding: 16px 10px;
}
.credentials-box {
padding: 20px 16px;
}
.credential-row {
flex-direction: column;
align-items: flex-start;
}
.credential-label {
margin-bottom: 4px;
font-size: 13px;
}
.credential-value {
font-size: 14px;
}
.cta-buttons-wrapper {
flex-direction: column;
gap: 12px;
}
.cta-button {
padding: 14px 24px;
font-size: 15px;
padding: 14px 32px;
font-size: 16px;
width: 100%;
max-width: 100%;
max-width: 300px;
}
.verification-process {
padding: 20px 16px;
}
.process-step {
padding: 12px;
}
.step-badge {
min-width: 36px;
height: 36px;
font-size: 16px;
margin-right: 12px;
}
.step-content h4 {
font-size: 15px;
}
.step-content p {
font-size: 14px;
}
}
body
.email-container
//- Header
.email-header
- var baseimg = baseurl + '/';
img.header-logo(src=baseimg+"images/logo.png" alt=nomeapp || 'Logo')
h1 Benvenuto #{name ? ', ' + name : username}
| su #{nomeapp || 'la nostra piattaforma'}!
- var baseimg = baseurl + '/';
img.header-logo(src=baseimg+"images/logo.png" alt=nomeapp || 'RISO')
h1 Benvenuto/a #{name ? name : username} su #{nomeapp}!
p.subtitle Rete Italiana Scambio Orizzontale
//- Body
.email-body
if !verified_email
.intro-text
| Verifica il tuo indirizzo email cliccando sul pulsante qui sotto.
| Per iniziare il tuo percorso in RISO, verifica il tuo indirizzo email cliccando sul pulsante qui sotto.
.cta-section
.cta-title 🔐 1. Verifica il tuo account
.cta-title 🔐 Verifica il tuo account
if strlinkreg
a.cta-button(href=strlinkreg target="_blank")
span.button-icon ✓
| Verifica Registrazione
| Verifica Email
.alternative-link
| Oppure copia e incolla questo link nel tuo browser:
br
a(href=strlinkreg target="_blank") #{strlinkreg}
//- Processo di verifica
.verification-process
.process-title
span.icon 📋
span.icon 🌱
| Il tuo percorso di ingresso in RISO
.process-steps
.process-step
.step-badge 1
.step-content
h4 ✓ Verifica la tua email:
p Cliccando sul bottone qui sopra.
h4 ✓ Verifica la tua email
p Clicca sul pulsante sopra per confermare il tuo indirizzo email.
.process-step.active
.step-badge 2
.step-content
h4 ⏳ In attesa di ammissione
p Il tuo invitante vedrà la tua richiesta. Riceverai un'email appena sarai ammesso !
p Il tuo invitante vedrà la tua richiesta. Riceverai un'email appena sarai ammesso!
.process-step
.step-badge 3
.step-content
h4 🎉 Accesso alla piattaforma
p Potrai così accedere e completare il tuo profilo per iniziare a fare parte della comunità RISO.
h4 🎯 Completa il tuo profilo
p Una volta ammesso, potrai completare il tuo profilo e iniziare a fare parte della comunità RISO.
.process-step
.step-badge 4
.step-content
h4 🍚 Inizia a scambiare
p Crea annunci, scambia beni e servizi, e partecipa agli eventi della tua comunità locale!
.info-note
p
strong 💡 Suggerimento:
| Se dovesse passare più di 24 ore, contatta il tuo invitante per ricordargli di ammetterti.
| Se dovessero passare più di 24 ore senza ammissione, contatta il tuo invitante per ricordargli di approvarti.
//- Footer
.email-footer
.divider
p Hai ricevuto questa email perché ti sei registrato su #{nomeapp || 'la nostra piattaforma'}
p(style="margin-top: 12px; font-size: 12px;")
| © #{new Date().getFullYear()} #{nomeapp || ''}.
p Hai ricevuto questa email perché ti sei registrato su #{nomeapp || 'RISO'}
p(style="margin-top: 12px; font-size: 12px;")
| #{new Date().getFullYear()} #{nomeapp || 'RISO'} - Rete Italiana Scambi Orizzontali
p(style="margin-top: 8px; font-size: 11px; color: #999;")
| Se non hai richiesto questa registrazione, ignora questa email.
| Se non hai richiesto questa registrazione, puoi semplicemente ignorare questa email.
p(style="margin-top: 12px; font-size: 12px;")
| 🍚 Comunità · Fiducia · Scambi Solidali · Sostenibilità