Skip to content

Commit f42e668

Browse files
committed
fix(landing): fix mobile styles, anchor links
1 parent 19c6a15 commit f42e668

7 files changed

Lines changed: 22 additions & 3 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
"pose-viewer": "0.10.0",
101101
"rxjs": "7.8.1",
102102
"stats.js": "0.17.0",
103+
"swiper": "^11.1.14",
103104
"three": "0.169.0",
104105
"tslib": "2.7.0",
105106
"web-vitals": "4.2.3",

‎src/app/pages/landing/about/about-customers/about-customers.component.scss‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,10 @@ ion-item {
5050
background: rgb(from var(--ion-card-background, #fff) r g b / 0.8);
5151
backdrop-filter: blur(10.2px);
5252
border: 1px solid rgba(255, 255, 255, 0.3);
53+
54+
@media #{$breakpoint-lt-sm} {
55+
max-width: none;
56+
margin-top: revert-layer;
57+
}
5358
}
5459
}

‎src/app/pages/landing/about/about-hero/about-hero.component.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h1>
1313
Try it out
1414
<ion-icon slot="end" name="arrow-forward"></ion-icon>
1515
</ion-button>
16-
<ion-button routerLink="/about#competition" shape="round" color="light">Discover Competition</ion-button>
16+
<ion-button routerLink="/about" fragment="competition" shape="round" color="light">Discover Competition</ion-button>
1717
</div>
1818
<img src="assets/promotional/about/hero.webp" [alt]="'landing.about.hero.img' | transloco" />
1919
</div>

‎src/app/pages/landing/about/about-team/about-team.component.scss‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import '../../../../../theme/variables';
2+
13
.container {
24
text-align: center;
35
}
@@ -11,6 +13,10 @@ ion-card {
1113
max-width: 280px;
1214
text-align: center;
1315
border-radius: 16px;
16+
@media #{$breakpoint-lt-md} {
17+
margin-left: auto;
18+
margin-right: auto;
19+
}
1420
}
1521

1622
ion-avatar {

‎src/app/pages/landing/about/about-team/about-team.component.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class AboutTeamComponent {
1111
name: 'Timothy Rabozzi',
1212
avatar: 'assets/promotional/about/team/timothy-rabozzi.jpg',
1313
title: 'CEO',
14-
bio: 'CEO with a background in LegalTech, campaigning, and business analysis. Holds a Master of Law with a focus on public law and innovation from the University of Bern.',
14+
bio: 'Background in LegalTech, campaigning, and business analysis. Holds a Master of Law with a focus on public law and innovation from the University of Bern.',
1515
},
1616
{
1717
name: 'Amit Moryossef',

‎src/app/pages/landing/about/about.component.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
:host > * {
44
display: block;
55
padding: 50px;
6+
padding-top: 0;
67

78
@media #{$breakpoint-lt-md} {
89
padding: 50px 25px;

‎src/app/pages/landing/landing.module.ts‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {NgModule} from '@angular/core';
1+
import {CUSTOM_ELEMENTS_SCHEMA, NgModule} from '@angular/core';
22
import {CommonModule} from '@angular/common';
33
import {LandingComponent} from './landing.component';
44
import {AboutComponent} from './about/about.component';
@@ -30,6 +30,10 @@ import {PrivacyComponent} from './privacy/privacy.component';
3030
import {MermaidChartComponent} from './mermaid-chart/mermaid-chart.component';
3131
import {LandingFooterComponent} from './landing-footer/landing-footer.component';
3232
import {ReactiveFormsModule} from '@angular/forms';
33+
import {register} from 'swiper/element/bundle';
34+
import {SignedToSpokenModule} from '../translate/signed-to-spoken/signed-to-spoken.module';
35+
36+
register();
3337

3438
@NgModule({
3539
declarations: [
@@ -66,8 +70,10 @@ import {ReactiveFormsModule} from '@angular/forms';
6670
IonicModule,
6771
MermaidChartComponent,
6872
ReactiveFormsModule,
73+
SignedToSpokenModule,
6974
],
7075
bootstrap: [LandingComponent],
7176
exports: [I18NLanguageSelectorComponent],
77+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
7278
})
7379
export class LandingModule {}

0 commit comments

Comments
 (0)