Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<ion-app>
<ion-router-outlet />
<app-rylo-redirect-overlay />
</ion-app>
3 changes: 2 additions & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {Capacitor} from '@capacitor/core';
import {languageCodeNormalizer} from './core/modules/transloco/languages';
import {Meta} from '@angular/platform-browser';
import {IonApp, IonRouterOutlet} from '@ionic/angular/standalone';
import {RyloRedirectOverlayComponent} from './components/rylo-redirect-overlay/rylo-redirect-overlay.component';
import {getUrlParams} from './core/helpers/url';
import * as CookieConsent from 'vanilla-cookieconsent';
import {ConsentStatus, ConsentType, FirebaseAnalytics} from '@capacitor-firebase/analytics';
Expand All @@ -17,7 +18,7 @@ import {MediaMatcher} from '@angular/cdk/layout';
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
imports: [IonApp, IonRouterOutlet],
imports: [IonApp, IonRouterOutlet, RyloRedirectOverlayComponent],
})
export class AppComponent implements AfterViewInit {
private meta = inject(Meta);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<ion-toolbar color="tertiary">
<ion-title>
<div class="announcement-content">
sign.mt has been acquired by Nagish!
<ion-button shape="round" href="https://nagish.com/post/nagish-acquires-sign-mt" target="_blank" rel="noopener">
sign.mt has been acquired by Rylo!
<ion-button shape="round" href="https://rylo.com" target="_blank" rel="noopener">
Check out the announcement
</ion-button>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/app/components/logo/logo.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
}
</a>
by
<a href="https://nagish.com">
<picture class="nagish-logo">
<img src="../../../assets/brand/nagish.svg" alt="Nagish" />
<a href="https://rylo.com">
<picture class="rylo-logo">
<img src="../../../assets/brand/rylo.svg" alt="Rylo" />
</picture>
</a>
2 changes: 1 addition & 1 deletion src/app/components/logo/logo.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ img {
display: block;
}

.nagish-logo {
.rylo-logo {
img {
height: 1em;
}
Expand Down
Comment thread
HTMHell marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@if (visible) {
<div class="rylo-overlay">
<div class="rylo-overlay__card" role="dialog" aria-modal="true" aria-labelledby="rylo-overlay-title">
<div class="rylo-overlay__text">
<h1 id="rylo-overlay-title" class="rylo-overlay__title">sign.Translate is now Sign Translate by Rylo.</h1>
<p class="rylo-overlay__subtitle">We have our new name and looks but your experience stays the same.</p>
</div>
<a class="rylo-overlay__cta" [href]="redirectUrl" (click)="redirect($event)" autofocus>Try Sign Translate</a>
</div>
</div>
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
@forward '../../../theme/fonts/poppins.css';

:host {
display: contents;
}

.rylo-overlay {
position: fixed;
inset: 0;
z-index: 99999;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
background-color: rgba(25, 20, 18, 0.6);
backdrop-filter: blur(2px);
}

.rylo-overlay__card {
display: flex;
flex-direction: column;
align-items: center;
gap: 32px;
width: 100%;
max-width: 760px;
padding: 72px 48px;
overflow: hidden;
text-align: center;
border-radius: 28px;
background-color: #5d7c93;
background-image: linear-gradient(rgba(93, 124, 147, 0.4), rgba(93, 124, 147, 0.4)), url('/assets/rylo-clouds.webp');
background-position: center;
background-repeat: no-repeat;
background-size: cover;
box-shadow: 0 24px 60px rgba(25, 20, 18, 0.4);
}

.rylo-overlay__text {
display: flex;
flex-direction: column;
gap: 14px;
}

.rylo-overlay__title {
margin: 0;
font-family: 'Poppins', sans-serif;
font-weight: 600;
font-size: clamp(28px, 5vw, 44px);
line-height: 1.15;
letter-spacing: -0.02em;
color: #faf5f2;
}

.rylo-overlay__subtitle {
margin: 0;
font-family: 'Poppins', sans-serif;
font-weight: 400;
font-size: clamp(16px, 2.2vw, 19px);
line-height: 1.45;
color: rgba(250, 245, 242, 0.95);
}

.rylo-overlay__cta {
display: inline-flex;
align-items: center;
justify-content: center;
height: 48px;
padding: 8px 24px;
border-radius: 12px;
background-color: #f9923c;
color: #191412;
font-family: 'Poppins', sans-serif;
font-weight: 600;
font-size: 16px;
text-decoration: none;
box-shadow:
0 8px 12px rgba(25, 20, 18, 0.15),
inset 0 0 8px rgba(255, 255, 255, 0.4);
transition:
transform 0.15s ease,
filter 0.15s ease;
}

.rylo-overlay__cta:hover {
transform: translateY(-1px);
filter: brightness(1.03);
}

.rylo-overlay__cta:active {
transform: translateY(0);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import {TestBed} from '@angular/core/testing';
import {Capacitor} from '@capacitor/core';
import {RyloRedirectOverlayComponent} from './rylo-redirect-overlay.component';

describe('RyloRedirectOverlayComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [RyloRedirectOverlayComponent],
}).compileComponents();
});

it('renders the redirect overlay with a CTA to Rylo on web', () => {
spyOn(Capacitor, 'isNativePlatform').and.returnValue(false);
const fixture = TestBed.createComponent(RyloRedirectOverlayComponent);
fixture.detectChanges();

const cta = fixture.nativeElement.querySelector('.rylo-overlay__cta') as HTMLAnchorElement;
expect(cta).toBeTruthy();
expect(cta.getAttribute('href')).toBe('https://rylo.com/sign/translate');
});

it('renders nothing on native platforms', () => {
spyOn(Capacitor, 'isNativePlatform').and.returnValue(true);
const fixture = TestBed.createComponent(RyloRedirectOverlayComponent);
fixture.detectChanges();

expect(fixture.nativeElement.querySelector('.rylo-overlay')).toBeNull();
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import {Component, inject} from '@angular/core';
import {Capacitor} from '@capacitor/core';
import {GoogleAnalyticsService} from '../../core/modules/google-analytics/google-analytics.service';

@Component({
selector: 'app-rylo-redirect-overlay',
standalone: true,
templateUrl: './rylo-redirect-overlay.component.html',
styleUrl: './rylo-redirect-overlay.component.scss',
})
export class RyloRedirectOverlayComponent {
private ga = inject(GoogleAnalyticsService);

readonly visible = !Capacitor.isNativePlatform();
readonly redirectUrl = 'https://rylo.com/sign/translate';

async redirect(event: Event): Promise<void> {
event.preventDefault();
try {
await this.ga.logEvent('rylo_redirect_click');
} catch {
// Analytics must never block the redirect.
}
window.location.href = this.redirectUrl;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ export class GoogleAnalyticsService {
await FirebaseAnalytics.setCurrentScreen({screenName});
}

async logEvent(name: string, params?: Record<string, any>) {
if (!this.isSupported) {
return;
}
await FirebaseAnalytics.logEvent({name, params});
}

logPerformanceMetrics() {
if (!this.isSupported) {
return;
Expand Down
8 changes: 8 additions & 0 deletions src/assets/brand/rylo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/rylo-clouds.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/theme/fonts/poppins.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@
font-display: swap;
src: url(https://fonts.gstatic.com/s/poppins/v24/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2) format('woff2');
}

@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url(https://fonts.gstatic.com/s/poppins/v24/pxiByp8kv8JHgFVrLEj6Z1xlFd2JQEk.woff2) format('woff2');
}
Loading