dev #3

Merged
JoeKung merged 34 commits from dev into int 2026-02-05 15:30:05 +01:00
4 changed files with 34 additions and 19 deletions
Showing only changes of commit 810d5f6c0c - Show all commits

View File

@@ -158,18 +158,16 @@ import { TranslateModule } from '@ngx-translate/core';
/* Right Column */ /* Right Column */
.visual-content { .visual-content {
display: flex; display: flex;
justify-content: center;
gap: 2rem;
align-items: center;
/* Mobile: Stacked */
flex-direction: column; flex-direction: column;
justify-content: center;
align-items: center;
gap: 2rem;
/* Desktop: Side-by-side */
@media(min-width: 768px) { @media(min-width: 768px) {
flex-direction: row; display: grid;
flex-wrap: wrap; /* Wrap if necessary but try row */ grid-template-columns: repeat(2, 1fr);
align-items: flex-start; align-items: start;
justify-items: center;
} }
} }
@@ -178,7 +176,8 @@ import { TranslateModule } from '@ngx-translate/core';
padding: 1rem; padding: 1rem;
border-radius: var(--radius-lg); border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg); box-shadow: var(--shadow-lg);
width: 260px; width: 100%;
max-width: 260px;
position: relative; position: relative;
} }

View File

@@ -29,9 +29,9 @@ interface FilePreview {
<div class="row"> <div class="row">
<!-- Phone --> <!-- Phone -->
<app-input formControlName="email" type="email" label="Email *" placeholder="tuo@email.com" class="col"></app-input> <app-input formControlName="email" type="email" label="Email *" [placeholder]="'CONTACT.PLACEHOLDER_EMAIL' | translate" class="col"></app-input>
<!-- Phone --> <!-- Phone -->
<app-input formControlName="phone" type="tel" [label]="('CONTACT.PHONE' | translate)" placeholder="+41 00 000 00 00" class="col"></app-input> <app-input formControlName="phone" type="tel" [label]="('CONTACT.PHONE' | translate)" [placeholder]="'CONTACT.PLACEHOLDER_PHONE' | translate" class="col"></app-input>
</div> </div>
<!-- User Type Selector (Segmented Control) --> <!-- User Type Selector (Segmented Control) -->
@@ -45,16 +45,16 @@ interface FilePreview {
</div> </div>
<!-- Personal Name (Only if NOT Company) --> <!-- Personal Name (Only if NOT Company) -->
<app-input *ngIf="!isCompany" formControlName="name" label="Nome *" placeholder="Il tuo nome"></app-input> <app-input *ngIf="!isCompany" formControlName="name" label="Nome *" [placeholder]="'CONTACT.PLACEHOLDER_NAME' | translate"></app-input>
<!-- Company Fields (Only if Company) --> <!-- Company Fields (Only if Company) -->
<div *ngIf="isCompany" class="company-fields"> <div *ngIf="isCompany" class="company-fields">
<app-input formControlName="companyName" [label]="('CONTACT.COMPANY_NAME' | translate) + ' *'" placeholder="Nome Azienda"></app-input> <app-input formControlName="companyName" [label]="('CONTACT.COMPANY_NAME' | translate) + ' *'" [placeholder]="'CONTACT.PLACEHOLDER_COMPANY' | translate"></app-input>
<app-input formControlName="referencePerson" [label]="('CONTACT.REF_PERSON' | translate) + ' *'" placeholder="Persona di Riferimento"></app-input> <app-input formControlName="referencePerson" [label]="('CONTACT.REF_PERSON' | translate) + ' *'" [placeholder]="'CONTACT.PLACEHOLDER_REF_PERSON' | translate"></app-input>
</div> </div>
<div class="form-group"> <div class="form-group">
<label>Messaggio *</label> <label>{{ 'CONTACT.LABEL_MESSAGE' | translate }}</label>
<textarea formControlName="message" class="form-control" rows="4"></textarea> <textarea formControlName="message" class="form-control" rows="4"></textarea>
</div> </div>
@@ -85,7 +85,7 @@ interface FilePreview {
<div class="actions"> <div class="actions">
<app-button type="submit" [disabled]="form.invalid || sent()"> <app-button type="submit" [disabled]="form.invalid || sent()">
{{ sent() ? 'Inviato!' : ('CONTACT.SEND' | translate) }} {{ sent() ? ('CONTACT.MSG_SENT' | translate) : ('CONTACT.SEND' | translate) }}
</app-button> </app-button>
</div> </div>
</form> </form>

View File

@@ -78,6 +78,14 @@
"REF_PERSON": "Reference Person", "REF_PERSON": "Reference Person",
"UPLOAD_LABEL": "Attachments", "UPLOAD_LABEL": "Attachments",
"UPLOAD_HINT": "Max 15 files. Supported: Images, PDF, STL, STEP, 3MF, OBJ", "UPLOAD_HINT": "Max 15 files. Supported: Images, PDF, STL, STEP, 3MF, OBJ",
"DROP_FILES": "Drop files here or click to upload" "DROP_FILES": "Drop files here or click to upload",
"PLACEHOLDER_NAME": "Your Name",
"PLACEHOLDER_EMAIL": "your@email.com",
"PLACEHOLDER_PHONE": "+41 00 000 00 00",
"PLACEHOLDER_COMPANY": "Company Name",
"PLACEHOLDER_REF_PERSON": "Reference Person",
"LABEL_MESSAGE": "Message *",
"MSG_SENT": "Sent!",
"ERR_MAX_FILES": "Max 15 files limit reached."
} }
} }

View File

@@ -83,6 +83,14 @@
"REF_PERSON": "Persona di Riferimento", "REF_PERSON": "Persona di Riferimento",
"UPLOAD_LABEL": "Allegati", "UPLOAD_LABEL": "Allegati",
"UPLOAD_HINT": "Max 15 file. Supportati: Immagini, PDF, STL, STEP, 3MF, OBJ", "UPLOAD_HINT": "Max 15 file. Supportati: Immagini, PDF, STL, STEP, 3MF, OBJ",
"DROP_FILES": "Trascina qui i file o clicca per caricare" "DROP_FILES": "Trascina qui i file o clicca per caricare",
"PLACEHOLDER_NAME": "Il tuo nome",
"PLACEHOLDER_EMAIL": "tuo@email.com",
"PLACEHOLDER_PHONE": "+41 00 000 00 00",
"PLACEHOLDER_COMPANY": "Nome Azienda",
"PLACEHOLDER_REF_PERSON": "Persona di Riferimento",
"LABEL_MESSAGE": "Messaggio *",
"MSG_SENT": "Inviato!",
"ERR_MAX_FILES": "Limite massimo di 15 file raggiunto."
} }
} }