@tech4good/angular-schematics 20.1.0 → 20.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/publish-npm/SKILL.md +37 -0
- package/.agents/skills/publish-npm/eval.yaml +17 -0
- package/.t4g/agent-memory.db +0 -0
- package/CHANGELOG.md +66 -0
- package/README.md +16 -7
- package/changelog.config.json +19 -0
- package/contributing-docs/branches-and-releases.md +57 -0
- package/contributing-docs/commit-message.md +117 -0
- package/package.json +10 -2
- package/src/component/files/__name@dasherize__/__name@dasherize__.component.scss.template +1 -0
- package/src/component/schema.json +1 -0
- package/src/entity/files/__name@dasherize__/__name@dasherize__.mock.ts.template +1 -1
- package/src/entity/schema.json +1 -0
- package/src/ng-add/files/.gitignore.template +3 -0
- package/src/ng-add/files/package.json.template +3 -2
- package/src/ng-add/files/public/images/abstract.png +0 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-panel.component.html.template +27 -22
- package/src/ng-add/files/src/app/admin/admin-panel/admin-panel.component.scss.template +35 -4
- package/src/ng-add/files/src/app/admin/admin-panel/admin-panel.component.ts.template +31 -75
- package/src/ng-add/files/src/app/admin/admin-panel/admin-settings/admin-settings.component.html.template +25 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-settings/admin-settings.component.scss.template +67 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-settings/admin-settings.component.ts.template +74 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-counts/admin-count-pill/admin-count-pill.animations.ts.template +4 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-counts/admin-count-pill/admin-count-pill.component.html.template +4 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-counts/admin-count-pill/admin-count-pill.component.scss.template +22 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-counts/admin-count-pill/admin-count-pill.component.spec.ts.template +37 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-counts/admin-count-pill/admin-count-pill.component.ts.template +36 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-counts/admin-user-counts.animations.ts.template +4 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-counts/admin-user-counts.component.html.template +11 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-counts/admin-user-counts.component.scss.template +22 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-counts/admin-user-counts.component.spec.ts.template +37 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-counts/admin-user-counts.component.ts.template +47 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-list.component.html.template +52 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-list.component.scss.template +66 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-list.component.ts.template +220 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-table/admin-user-table.animations.ts.template +4 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-table/admin-user-table.component.html.template +81 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-table/admin-user-table.component.scss.template +136 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-table/admin-user-table.component.spec.ts.template +37 -0
- package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-table/admin-user-table.component.ts.template +118 -0
- package/src/ng-add/files/src/app/app.component.html.template +2 -0
- package/src/ng-add/files/src/app/app.component.ts.template +2 -0
- package/src/ng-add/files/src/app/app.routes.ts.template +14 -18
- package/src/ng-add/files/src/app/core/auth/auth.service.ts.template +58 -0
- package/src/ng-add/files/src/app/core/auth/guards/admin-override.ts.template +9 -0
- package/src/ng-add/files/src/app/core/auth/guards/index.ts.template +11 -0
- package/src/ng-add/files/src/app/core/auth/guards/redirect-if-authenticated.guard.ts.template +42 -0
- package/src/ng-add/files/src/app/core/auth/guards/require-admin.guard.ts.template +39 -0
- package/src/ng-add/files/src/app/core/auth/guards/require-auth-and-consent.guard.ts.template +69 -0
- package/src/ng-add/files/src/app/core/auth/guards/require-auth.guard.ts.template +35 -0
- package/src/ng-add/files/src/app/core/firebase/cached-listeners.service.ts.template +2 -17
- package/src/ng-add/files/src/app/core/firebase/firebase.mock.service.ts.template +1 -1
- package/src/ng-add/files/src/app/core/firebase/firebase.service.ts.template +7 -1
- package/src/ng-add/files/src/app/core/store/app.model.ts.template +1 -1
- package/src/ng-add/files/src/app/core/store/app.store.ts.template +71 -6
- package/src/ng-add/files/src/app/core/store/auth/auth.store.ts.template +94 -53
- package/src/ng-add/files/src/app/core/store/user/user.mock.ts.template +5 -5
- package/src/ng-add/files/src/app/core/store/user/user.model.ts.template +5 -7
- package/src/ng-add/files/src/app/core/store/user-context/user-context.mock.ts.template +3 -5
- package/src/ng-add/files/src/app/core/store/user-context/user-context.model.ts.template +2 -5
- package/src/ng-add/files/src/app/first-time/consent/consent.component.ts.template +4 -3
- package/src/ng-add/files/src/app/first-time/consent/consent.guard.ts.template +54 -0
- package/src/ng-add/files/src/app/first-time/early-access/early-access.animations.ts.template +6 -0
- package/src/ng-add/files/src/app/first-time/early-access/early-access.component.html.template +70 -52
- package/src/ng-add/files/src/app/first-time/early-access/early-access.component.scss.template +73 -6
- package/src/ng-add/files/src/app/first-time/early-access/early-access.component.ts.template +59 -111
- package/src/ng-add/files/src/app/first-time/early-access/early-access.guard.ts.template +44 -0
- package/src/ng-add/files/src/app/first-time/landing/hero/hero.animations.ts.template +15 -0
- package/src/ng-add/files/src/app/first-time/landing/hero/hero.component.html.template +12 -0
- package/src/ng-add/files/src/app/first-time/landing/hero/hero.component.scss.template +79 -0
- package/src/ng-add/files/src/app/first-time/landing/hero/hero.component.ts.template +20 -0
- package/src/ng-add/files/src/app/first-time/landing/landing.component.html.template +1 -1
- package/src/ng-add/files/src/app/first-time/landing/landing.component.scss.template +11 -8
- package/src/ng-add/files/src/app/first-time/landing/landing.component.ts.template +2 -0
- package/src/ng-add/files/src/app/first-time/landing/rotating-quotes/rotating-quotes.component.html.template +3 -0
- package/src/ng-add/files/src/app/first-time/landing/rotating-quotes/rotating-quotes.component.scss.template +26 -0
- package/src/ng-add/files/src/app/first-time/landing/rotating-quotes/rotating-quotes.component.ts.template +52 -0
- package/src/ng-add/files/src/app/shared/dev-status-bar/dev-status-bar.component.html.template +21 -0
- package/src/ng-add/files/src/app/shared/dev-status-bar/dev-status-bar.component.scss.template +71 -0
- package/src/ng-add/files/src/app/shared/dev-status-bar/dev-status-bar.component.ts.template +70 -0
- package/src/ng-add/files/src/app/shared/hint-visibility/hint-visibility.directive.ts.template +131 -0
- package/src/ng-add/files/src/app/shared/navbar/navbar.component.html.template +1 -1
- package/src/ng-add/files/src/app/shared/redeployment-warning/redeployment-warning.component.ts.template +1 -1
- package/src/ng-add/files/src/app/shared/redeployment-warning/redeployment-warning.service.ts.template +2 -2
- package/src/ng-add/files/src/environments/environment.ts.template +1 -1
- package/src/ng-add/files/src/index.html.template +3 -2
- package/src/ng-add/files/src/styles/_variables.scss.template +1 -0
- package/src/ng-add/files/src/styles.scss.template +4 -2
- package/src/ng-add/schema.json +1 -0
- package/src/ng-add/files/src/app/core/auth/auth.guard.ts.template +0 -96
|
@@ -5,7 +5,7 @@ import { User, AccessState } from './user.model';
|
|
|
5
5
|
|
|
6
6
|
export const UserMockDB = signalStore(
|
|
7
7
|
{ providedIn: 'root' },
|
|
8
|
-
withEntitiesForMockDB<User>(),
|
|
8
|
+
withEntitiesForMockDB<User>('users'),
|
|
9
9
|
);
|
|
10
10
|
|
|
11
11
|
export const USER_DB: User[] = [
|
|
@@ -13,10 +13,10 @@ export const USER_DB: User[] = [
|
|
|
13
13
|
__id: '1',
|
|
14
14
|
email: 'a@sample.com',
|
|
15
15
|
name: 'User A',
|
|
16
|
-
photoURL: 'http://loremflickr.com/100/100',
|
|
17
|
-
isAdmin:
|
|
18
|
-
consented:
|
|
19
|
-
accessState: AccessState.
|
|
16
|
+
photoURL: 'http://loremflickr.com/100/100?lock=1',
|
|
17
|
+
isAdmin: true,
|
|
18
|
+
consented: false,
|
|
19
|
+
accessState: AccessState.SUBMIT_INTEREST,
|
|
20
20
|
_createdAt: Timestamp.now(),
|
|
21
21
|
_updatedAt: Timestamp.now(),
|
|
22
22
|
_deleted: false,
|
|
@@ -9,19 +9,17 @@ export interface User {
|
|
|
9
9
|
name: string;
|
|
10
10
|
email: string;
|
|
11
11
|
photoURL?: string;
|
|
12
|
-
tokens?: {
|
|
13
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14
|
-
[index: string]: any;
|
|
15
|
-
};
|
|
16
12
|
isAdmin: boolean;
|
|
17
13
|
accessState: AccessState;
|
|
18
14
|
consented: boolean;
|
|
19
15
|
joinedWaitlistAt?: Timestamp;
|
|
16
|
+
/** Admin-only: routes where auth guards are bypassed for testing/debugging. */
|
|
17
|
+
adminOverridePaths?: string[];
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
export enum AccessState {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
SUBMIT_INTEREST = '01 - submit interest', // on basic interest form
|
|
22
|
+
WAITING = '02 - waiting', // on waitlist for early access
|
|
23
|
+
CONSENT = '03 - consent', // on consent form
|
|
26
24
|
DONE = 'done', // finished with the access flow
|
|
27
25
|
}
|
|
@@ -6,17 +6,15 @@ import { USER_DB } from '../user/user.mock';
|
|
|
6
6
|
|
|
7
7
|
export const UserContextMockDB = signalStore(
|
|
8
8
|
{ providedIn: 'root' },
|
|
9
|
-
withEntitiesForMockDB<UserContext>(),
|
|
9
|
+
withEntitiesForMockDB<UserContext>('userContexts'),
|
|
10
10
|
);
|
|
11
11
|
|
|
12
12
|
export const USERCONTEXT_DB = [
|
|
13
13
|
{
|
|
14
14
|
__id: 'uc1',
|
|
15
15
|
__userId: USER_DB[0].__id,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
desiredValue: 'test',
|
|
16
|
+
questionOne: 'test',
|
|
17
|
+
questionTwo: 'test',
|
|
20
18
|
_createdAt: Timestamp.now(),
|
|
21
19
|
_updatedAt: Timestamp.now(),
|
|
22
20
|
_deleted: false,
|
|
@@ -3,11 +3,8 @@ import { Timestamp } from '@angular/fire/firestore';
|
|
|
3
3
|
export interface UserContext {
|
|
4
4
|
__id: string;
|
|
5
5
|
__userId: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
other?: string;
|
|
9
|
-
}
|
|
10
|
-
desiredValue: string;
|
|
6
|
+
questionOne: string;
|
|
7
|
+
questionTwo: string;
|
|
11
8
|
_createdAt?: Timestamp;
|
|
12
9
|
_updatedAt?: Timestamp;
|
|
13
10
|
_deleted?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component, OnInit, ChangeDetectionStrategy, input, output, inject, WritableSignal, Signal, signal, computed, Inject, Injector } from '@angular/core';
|
|
2
2
|
import { ConsentAnimations } from './consent.animations';
|
|
3
|
-
import { Router } from '@angular/router';
|
|
3
|
+
import { Router, RouterLink } from '@angular/router';
|
|
4
4
|
import { User, AccessState } from 'src/app/core/store/user/user.model';
|
|
5
5
|
import { Location } from '@angular/common';
|
|
6
6
|
import { AuthStore } from 'src/app/core/store/auth/auth.store';
|
|
@@ -21,6 +21,7 @@ import { NavbarComponent } from 'src/app/shared/navbar/navbar.component';
|
|
|
21
21
|
ReactiveFormsModule,
|
|
22
22
|
NavbarComponent,
|
|
23
23
|
MatCheckbox,
|
|
24
|
+
RouterLink
|
|
24
25
|
],
|
|
25
26
|
})
|
|
26
27
|
export class ConsentComponent implements OnInit {
|
|
@@ -64,10 +65,10 @@ export class ConsentComponent implements OnInit {
|
|
|
64
65
|
async submit() {
|
|
65
66
|
try {
|
|
66
67
|
await this.userStore.update(this.currentUser().__id, {
|
|
67
|
-
accessState: AccessState.
|
|
68
|
+
accessState: AccessState.DONE,
|
|
68
69
|
consented: true,
|
|
69
70
|
});
|
|
70
|
-
this.router.navigate(['/
|
|
71
|
+
this.router.navigate(['/home']);
|
|
71
72
|
} catch (e) {
|
|
72
73
|
console.error(e);
|
|
73
74
|
this.snackBar.open('Failed to update consent status', '', { duration: 3000 });
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { inject } from '@angular/core';
|
|
2
|
+
import { CanActivateFn, Router, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
|
|
3
|
+
import { map } from 'rxjs/operators';
|
|
4
|
+
import { AuthService } from '../../core/auth/auth.service';
|
|
5
|
+
import { User, AccessState } from '../../core/store/user/user.model';
|
|
6
|
+
import { hasAdminOverride } from '../../core/auth/guards/admin-override';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Single guard logic for the consent page that checks two conditions:
|
|
10
|
+
*
|
|
11
|
+
* 1. User has cleared the waitlist (accessState is CONSENT or DONE,
|
|
12
|
+
* i.e. not SUBMIT_INTEREST or WAITING). If still on the waitlist,
|
|
13
|
+
* redirects to `/early-access`.
|
|
14
|
+
*
|
|
15
|
+
* 2. User still needs to consent (accessState is not DONE, or consented
|
|
16
|
+
* is false). If already fully consented, redirects to `/home`.
|
|
17
|
+
*/
|
|
18
|
+
export function handleAccess(
|
|
19
|
+
user: User | null | undefined,
|
|
20
|
+
router: Router,
|
|
21
|
+
route: ActivatedRouteSnapshot,
|
|
22
|
+
state: RouterStateSnapshot
|
|
23
|
+
): boolean {
|
|
24
|
+
if (hasAdminOverride(user, state.url)) return true;
|
|
25
|
+
|
|
26
|
+
// Check 1: Has the user cleared the waitlist?
|
|
27
|
+
const waitingStates = [AccessState.SUBMIT_INTEREST, AccessState.WAITING];
|
|
28
|
+
if (user && waitingStates.includes(user.accessState)) {
|
|
29
|
+
router.navigate(['/early-access'], { queryParams: route.queryParams });
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Check 2: Does the user still need to consent?
|
|
34
|
+
if (user && user.accessState === AccessState.DONE && user.consented) {
|
|
35
|
+
router.navigate(['/home'], { queryParams: route.queryParams });
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Route guard that delegates to `handleAccess`.
|
|
44
|
+
*/
|
|
45
|
+
export const consentGuard: CanActivateFn = (route, state) => {
|
|
46
|
+
const auth = inject(AuthService);
|
|
47
|
+
const router = inject(Router);
|
|
48
|
+
|
|
49
|
+
return auth.resolveUser().pipe(
|
|
50
|
+
map((user) => {
|
|
51
|
+
return handleAccess(user, router, route, state);
|
|
52
|
+
}),
|
|
53
|
+
);
|
|
54
|
+
};
|
package/src/ng-add/files/src/app/first-time/early-access/early-access.animations.ts.template
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { trigger, group, query, animateChild, state, style, animate, transition } from '@angular/animations';
|
|
2
2
|
|
|
3
3
|
export const EarlyAccessAnimations = [
|
|
4
|
+
trigger('fadeIn', [
|
|
5
|
+
transition(':enter', [
|
|
6
|
+
style({ opacity: 0 }),
|
|
7
|
+
animate('400ms ease-in', style({ opacity: 1 }))
|
|
8
|
+
])
|
|
9
|
+
])
|
|
4
10
|
];
|
package/src/ng-add/files/src/app/first-time/early-access/early-access.component.html.template
CHANGED
|
@@ -1,65 +1,83 @@
|
|
|
1
1
|
<app-navbar></app-navbar>
|
|
2
2
|
@if (waitlistData(); as data) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
3
|
+
<div class="early-access-container">
|
|
4
|
+
<div class="content-split">
|
|
5
|
+
<div class="text-section">
|
|
6
|
+
<!-- Core questions on motivation and desired value -->
|
|
7
|
+
@if (data.currentUser.accessState === AccessState.SUBMIT_INTEREST) {
|
|
8
|
+
<div @fadeIn>
|
|
9
|
+
<h1>Hello and Welcome! 👋</h1>
|
|
10
|
+
<p class="subtitle">Please help us understand your context and needs so that we know how to best support you!</p>
|
|
11
|
+
<form [formGroup]="surveyForm" (ngSubmit)="submitInterest()">
|
|
12
|
+
<div class="form-field-group">
|
|
13
|
+
<mat-label class="question">QUESTION_1 [What is your current role and what are you hoping to achieve?]</mat-label>
|
|
14
|
+
<mat-form-field class="question-one" appearance="outline">
|
|
15
|
+
<mat-label>QUESTION_1_SHORT_LABEL [Current role & goals]</mat-label>
|
|
16
|
+
<textarea #q1Text matInput cdkTextareaAutosize formControlName="questionOne" name="questionOne" required appHintVisibility [hintControl]="questionOne!" [hintSiblingControl]="questionTwo!" #q1Hint="hintVisibility"></textarea>
|
|
17
|
+
@if (q1Hint.showHint()) {
|
|
18
|
+
<mat-hint>
|
|
19
|
+
@if (q1Text.value?.length < 25) {
|
|
20
|
+
You've shared {{q1Text.value?.length || 0}} of 25 characters. If you could say a little more, that'd help us! 🙏
|
|
21
|
+
} @else {
|
|
22
|
+
Thank you! This helps us understand your context better! 🙏
|
|
23
|
+
}
|
|
24
|
+
</mat-hint>
|
|
25
|
+
}
|
|
26
|
+
</mat-form-field>
|
|
21
27
|
</div>
|
|
22
|
-
</div>
|
|
23
|
-
@if (backgroundForm.contains('backgroundOther')) {
|
|
24
28
|
<div class="form-field-group">
|
|
25
|
-
<mat-label class="question">
|
|
26
|
-
<mat-form-field class="
|
|
27
|
-
<mat-label>
|
|
28
|
-
<
|
|
29
|
-
@if (
|
|
30
|
-
|
|
29
|
+
<mat-label class="question">QUESTION_2 [What is the biggest hurdle preventing you from achieving this right now?]</mat-label>
|
|
30
|
+
<mat-form-field class="question-two" appearance="outline">
|
|
31
|
+
<mat-label>QUESTION_2_SHORT_LABEL [Biggest hurdle]</mat-label>
|
|
32
|
+
<textarea #q2Text matInput cdkTextareaAutosize formControlName="questionTwo" required appHintVisibility [hintControl]="questionTwo!" [hintSiblingControl]="questionOne!" #q2Hint="hintVisibility"></textarea>
|
|
33
|
+
@if (q2Hint.showHint() && questionOne?.valid) {
|
|
34
|
+
<mat-hint>
|
|
35
|
+
@if (q2Text.value?.length < 50) {
|
|
36
|
+
You've shared {{q2Text.value?.length || 0}} of 50 characters. Knowing your hurdles helps us build the right tools!
|
|
37
|
+
} @else {
|
|
38
|
+
Thank you! We're excited to see how we can help clear these hurdles.
|
|
39
|
+
}
|
|
40
|
+
</mat-hint>
|
|
31
41
|
}
|
|
32
42
|
</mat-form-field>
|
|
33
43
|
</div>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
<mat-form-field class="desired-value" appearance="fill">
|
|
38
|
-
<mat-label>Your ideal experience or outcomes</mat-label>
|
|
39
|
-
<textarea #text matInput formControlName="desiredValue" name="desiredValue" required></textarea>
|
|
40
|
-
@if (text.value?.length < 50) {
|
|
41
|
-
<mat-hint>You've shared {{text.value?.length || 0}} of 50 characters. If you could say a little more about your goals or why you decided to try it out, that'd help us! 🙏</mat-hint>
|
|
44
|
+
<button type="submit" class="btn continue-btn" [disabled]="surveyForm.invalid || loading()">
|
|
45
|
+
@if (loading()) {
|
|
46
|
+
Submitting...
|
|
42
47
|
} @else {
|
|
43
|
-
|
|
48
|
+
Submit and Continue
|
|
49
|
+
<img src="https://icongr.am/feather/arrow-right.svg?size=20&color=B2B6C7">
|
|
44
50
|
}
|
|
45
|
-
</
|
|
46
|
-
</
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
</button>
|
|
51
|
-
</form>
|
|
52
|
-
} @else if (data.currentUser.accessState === AccessState.WAITING && !loading()) {
|
|
53
|
-
<!-- Waiting list position and path for going getting access early -->
|
|
51
|
+
</button>
|
|
52
|
+
</form>
|
|
53
|
+
</div>
|
|
54
|
+
} @else if (data.currentUser.accessState === AccessState.WAITING) {
|
|
55
|
+
<!-- Waiting list position and path for going getting access early -->
|
|
54
56
|
@let position = positionText$ | async;
|
|
55
57
|
@let total = totalWaiting$ | async;
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
<div @fadeIn class="waitlist-content">
|
|
59
|
+
@if (position && total) {
|
|
60
|
+
<h1 class="waitlist-header">
|
|
61
|
+
You are <span class="your-position">{{ position }}</span> of {{ total }} on the waitlist
|
|
62
|
+
</h1>
|
|
63
|
+
} @else {
|
|
64
|
+
<h1 class="waitlist-header">
|
|
65
|
+
You are on the waitlist!
|
|
66
|
+
</h1>
|
|
67
|
+
}
|
|
68
|
+
<p>Thanks for signing up! We're personally onboarding our first cohort of users
|
|
69
|
+
to ensure we understand your context deeply and can provide a delightful experience. We'll be in touch soon!
|
|
70
|
+
😊
|
|
71
|
+
</p>
|
|
72
|
+
<p>If you would really benefit from getting off the waitlist faster, send {{
|
|
73
|
+
outreachLeadName }} an email at <a [href]="'mailto:' + outreachLeadEmail">{{ outreachLeadEmail }}</a>
|
|
74
|
+
explaining and we'll see what we can do!</p>
|
|
62
75
|
</div>
|
|
63
|
-
|
|
76
|
+
}
|
|
77
|
+
</div>
|
|
78
|
+
<div @fadeIn class="mentorship-graphic">
|
|
79
|
+
<img src="/images/abstract.png" alt="Abstract mentorship graphic" />
|
|
80
|
+
</div>
|
|
64
81
|
</div>
|
|
65
|
-
|
|
82
|
+
</div>
|
|
83
|
+
}
|
package/src/ng-add/files/src/app/first-time/early-access/early-access.component.scss.template
CHANGED
|
@@ -5,30 +5,34 @@
|
|
|
5
5
|
padding: 50px 100px;
|
|
6
6
|
overflow-y: auto;
|
|
7
7
|
color: #303030;
|
|
8
|
+
font-size: 1.1rem;
|
|
8
9
|
|
|
9
10
|
.agree-container {
|
|
10
11
|
display: flex;
|
|
11
12
|
align-items: flex-start;
|
|
12
13
|
margin-bottom: 10px;
|
|
14
|
+
|
|
13
15
|
input {
|
|
14
16
|
width: auto;
|
|
15
17
|
height: auto;
|
|
16
18
|
margin: 0 10px 0 0;
|
|
17
19
|
}
|
|
20
|
+
|
|
18
21
|
.permission-text {
|
|
19
22
|
margin-left: 10px;
|
|
20
23
|
display: inline-block;
|
|
21
24
|
}
|
|
22
25
|
}
|
|
26
|
+
|
|
23
27
|
.loading-container {
|
|
24
28
|
display: flex;
|
|
25
29
|
margin-top: 100px;
|
|
26
30
|
margin-bottom: 25px;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
+
font-size: 1.5rem;
|
|
32
|
+
font-weight: 500;
|
|
33
|
+
color: #6e84f8;
|
|
31
34
|
}
|
|
35
|
+
|
|
32
36
|
.continue-btn {
|
|
33
37
|
margin: 18px 15px 15px 0;
|
|
34
38
|
border: 1px solid #8c9fff;
|
|
@@ -42,33 +46,45 @@
|
|
|
42
46
|
font-size: 1.1em;
|
|
43
47
|
padding: 10px 22px 10px;
|
|
44
48
|
transition: color 0.8s ease, border 0.8s ease;
|
|
49
|
+
|
|
45
50
|
>img {
|
|
46
51
|
margin: 0 3px 0 2px;
|
|
47
52
|
transition: margin 0.2s ease;
|
|
48
53
|
}
|
|
54
|
+
|
|
49
55
|
&[disabled] {
|
|
50
56
|
background-color: white;
|
|
51
57
|
border: 1px solid #d8d8d8;
|
|
52
58
|
color: #b2b6c7;
|
|
53
59
|
box-shadow: none;
|
|
54
60
|
}
|
|
61
|
+
|
|
55
62
|
&:hover {
|
|
56
63
|
>img {
|
|
57
64
|
margin: 0 0 0 5px;
|
|
58
65
|
}
|
|
66
|
+
|
|
59
67
|
&[disabled] {
|
|
60
68
|
>img {
|
|
61
69
|
margin: 0 3px 0 2px;
|
|
62
70
|
}
|
|
63
71
|
}
|
|
64
72
|
}
|
|
73
|
+
|
|
65
74
|
&:focus {
|
|
66
75
|
outline: 0;
|
|
67
76
|
}
|
|
68
77
|
}
|
|
69
78
|
|
|
79
|
+
.subtitle {
|
|
80
|
+
color: #888;
|
|
81
|
+
font-size: 1.1rem;
|
|
82
|
+
margin-top: -10px;
|
|
83
|
+
margin-bottom: 30px;
|
|
84
|
+
}
|
|
85
|
+
|
|
70
86
|
form {
|
|
71
|
-
margin-top:
|
|
87
|
+
margin-top: 1em;
|
|
72
88
|
display: flex;
|
|
73
89
|
flex-direction: column;
|
|
74
90
|
align-items: flex-start;
|
|
@@ -83,6 +99,7 @@
|
|
|
83
99
|
flex-direction: column;
|
|
84
100
|
width: 100%;
|
|
85
101
|
margin-bottom: 20px;
|
|
102
|
+
|
|
86
103
|
.checkbox-group {
|
|
87
104
|
display: flex;
|
|
88
105
|
flex-direction: column;
|
|
@@ -92,6 +109,18 @@
|
|
|
92
109
|
margin-bottom: 10px;
|
|
93
110
|
font-weight: 600;
|
|
94
111
|
}
|
|
112
|
+
|
|
113
|
+
mat-form-field {
|
|
114
|
+
width: 100%;
|
|
115
|
+
|
|
116
|
+
::ng-deep .mdc-text-field--outlined {
|
|
117
|
+
background-color: #ffffff;
|
|
118
|
+
border-radius: 4px;
|
|
119
|
+
--mdc-outlined-text-field-focus-outline-color: #6e84f8;
|
|
120
|
+
--mdc-outlined-text-field-focus-label-text-color: #6e84f8;
|
|
121
|
+
--mdc-outlined-text-field-caret-color: #6e84f8;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
95
124
|
}
|
|
96
125
|
|
|
97
126
|
button {
|
|
@@ -100,7 +129,45 @@
|
|
|
100
129
|
}
|
|
101
130
|
}
|
|
102
131
|
|
|
132
|
+
.content-split {
|
|
133
|
+
display: flex;
|
|
134
|
+
flex-direction: row;
|
|
135
|
+
align-items: center;
|
|
136
|
+
justify-content: space-between;
|
|
137
|
+
gap: 40px;
|
|
138
|
+
width: 100%;
|
|
139
|
+
|
|
140
|
+
@media (max-width: 900px) {
|
|
141
|
+
flex-direction: column;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.text-section {
|
|
145
|
+
flex: 1;
|
|
146
|
+
max-width: 600px;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
103
150
|
.your-position {
|
|
104
|
-
color: #
|
|
151
|
+
color: #6e84f8;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.mentorship-graphic {
|
|
155
|
+
flex: 1;
|
|
156
|
+
display: flex;
|
|
157
|
+
justify-content: center;
|
|
158
|
+
align-items: center;
|
|
159
|
+
position: sticky;
|
|
160
|
+
top: 50px;
|
|
161
|
+
margin-top: 0;
|
|
162
|
+
width: 100%;
|
|
163
|
+
mix-blend-mode: multiply;
|
|
164
|
+
|
|
165
|
+
img {
|
|
166
|
+
max-width: 100%;
|
|
167
|
+
height: auto;
|
|
168
|
+
max-height: 500px;
|
|
169
|
+
object-fit: contain;
|
|
170
|
+
filter: contrast(1.2) brightness(1.1);
|
|
171
|
+
}
|
|
105
172
|
}
|
|
106
173
|
}
|