@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.
Files changed (90) hide show
  1. package/.agents/skills/publish-npm/SKILL.md +37 -0
  2. package/.agents/skills/publish-npm/eval.yaml +17 -0
  3. package/.t4g/agent-memory.db +0 -0
  4. package/CHANGELOG.md +66 -0
  5. package/README.md +16 -7
  6. package/changelog.config.json +19 -0
  7. package/contributing-docs/branches-and-releases.md +57 -0
  8. package/contributing-docs/commit-message.md +117 -0
  9. package/package.json +10 -2
  10. package/src/component/files/__name@dasherize__/__name@dasherize__.component.scss.template +1 -0
  11. package/src/component/schema.json +1 -0
  12. package/src/entity/files/__name@dasherize__/__name@dasherize__.mock.ts.template +1 -1
  13. package/src/entity/schema.json +1 -0
  14. package/src/ng-add/files/.gitignore.template +3 -0
  15. package/src/ng-add/files/package.json.template +3 -2
  16. package/src/ng-add/files/public/images/abstract.png +0 -0
  17. package/src/ng-add/files/src/app/admin/admin-panel/admin-panel.component.html.template +27 -22
  18. package/src/ng-add/files/src/app/admin/admin-panel/admin-panel.component.scss.template +35 -4
  19. package/src/ng-add/files/src/app/admin/admin-panel/admin-panel.component.ts.template +31 -75
  20. package/src/ng-add/files/src/app/admin/admin-panel/admin-settings/admin-settings.component.html.template +25 -0
  21. package/src/ng-add/files/src/app/admin/admin-panel/admin-settings/admin-settings.component.scss.template +67 -0
  22. package/src/ng-add/files/src/app/admin/admin-panel/admin-settings/admin-settings.component.ts.template +74 -0
  23. 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
  24. 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
  25. 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
  26. 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
  27. 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
  28. package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-counts/admin-user-counts.animations.ts.template +4 -0
  29. package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-counts/admin-user-counts.component.html.template +11 -0
  30. package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-counts/admin-user-counts.component.scss.template +22 -0
  31. 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
  32. package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-counts/admin-user-counts.component.ts.template +47 -0
  33. package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-list.component.html.template +52 -0
  34. package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-list.component.scss.template +66 -0
  35. package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-list.component.ts.template +220 -0
  36. package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-table/admin-user-table.animations.ts.template +4 -0
  37. package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-table/admin-user-table.component.html.template +81 -0
  38. package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-table/admin-user-table.component.scss.template +136 -0
  39. 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
  40. package/src/ng-add/files/src/app/admin/admin-panel/admin-user-list/admin-user-table/admin-user-table.component.ts.template +118 -0
  41. package/src/ng-add/files/src/app/app.component.html.template +2 -0
  42. package/src/ng-add/files/src/app/app.component.ts.template +2 -0
  43. package/src/ng-add/files/src/app/app.routes.ts.template +14 -18
  44. package/src/ng-add/files/src/app/core/auth/auth.service.ts.template +58 -0
  45. package/src/ng-add/files/src/app/core/auth/guards/admin-override.ts.template +9 -0
  46. package/src/ng-add/files/src/app/core/auth/guards/index.ts.template +11 -0
  47. package/src/ng-add/files/src/app/core/auth/guards/redirect-if-authenticated.guard.ts.template +42 -0
  48. package/src/ng-add/files/src/app/core/auth/guards/require-admin.guard.ts.template +39 -0
  49. package/src/ng-add/files/src/app/core/auth/guards/require-auth-and-consent.guard.ts.template +69 -0
  50. package/src/ng-add/files/src/app/core/auth/guards/require-auth.guard.ts.template +35 -0
  51. package/src/ng-add/files/src/app/core/firebase/cached-listeners.service.ts.template +2 -17
  52. package/src/ng-add/files/src/app/core/firebase/firebase.mock.service.ts.template +1 -1
  53. package/src/ng-add/files/src/app/core/firebase/firebase.service.ts.template +7 -1
  54. package/src/ng-add/files/src/app/core/store/app.model.ts.template +1 -1
  55. package/src/ng-add/files/src/app/core/store/app.store.ts.template +71 -6
  56. package/src/ng-add/files/src/app/core/store/auth/auth.store.ts.template +94 -53
  57. package/src/ng-add/files/src/app/core/store/user/user.mock.ts.template +5 -5
  58. package/src/ng-add/files/src/app/core/store/user/user.model.ts.template +5 -7
  59. package/src/ng-add/files/src/app/core/store/user-context/user-context.mock.ts.template +3 -5
  60. package/src/ng-add/files/src/app/core/store/user-context/user-context.model.ts.template +2 -5
  61. package/src/ng-add/files/src/app/first-time/consent/consent.component.ts.template +4 -3
  62. package/src/ng-add/files/src/app/first-time/consent/consent.guard.ts.template +54 -0
  63. package/src/ng-add/files/src/app/first-time/early-access/early-access.animations.ts.template +6 -0
  64. package/src/ng-add/files/src/app/first-time/early-access/early-access.component.html.template +70 -52
  65. package/src/ng-add/files/src/app/first-time/early-access/early-access.component.scss.template +73 -6
  66. package/src/ng-add/files/src/app/first-time/early-access/early-access.component.ts.template +59 -111
  67. package/src/ng-add/files/src/app/first-time/early-access/early-access.guard.ts.template +44 -0
  68. package/src/ng-add/files/src/app/first-time/landing/hero/hero.animations.ts.template +15 -0
  69. package/src/ng-add/files/src/app/first-time/landing/hero/hero.component.html.template +12 -0
  70. package/src/ng-add/files/src/app/first-time/landing/hero/hero.component.scss.template +79 -0
  71. package/src/ng-add/files/src/app/first-time/landing/hero/hero.component.ts.template +20 -0
  72. package/src/ng-add/files/src/app/first-time/landing/landing.component.html.template +1 -1
  73. package/src/ng-add/files/src/app/first-time/landing/landing.component.scss.template +11 -8
  74. package/src/ng-add/files/src/app/first-time/landing/landing.component.ts.template +2 -0
  75. package/src/ng-add/files/src/app/first-time/landing/rotating-quotes/rotating-quotes.component.html.template +3 -0
  76. package/src/ng-add/files/src/app/first-time/landing/rotating-quotes/rotating-quotes.component.scss.template +26 -0
  77. package/src/ng-add/files/src/app/first-time/landing/rotating-quotes/rotating-quotes.component.ts.template +52 -0
  78. package/src/ng-add/files/src/app/shared/dev-status-bar/dev-status-bar.component.html.template +21 -0
  79. package/src/ng-add/files/src/app/shared/dev-status-bar/dev-status-bar.component.scss.template +71 -0
  80. package/src/ng-add/files/src/app/shared/dev-status-bar/dev-status-bar.component.ts.template +70 -0
  81. package/src/ng-add/files/src/app/shared/hint-visibility/hint-visibility.directive.ts.template +131 -0
  82. package/src/ng-add/files/src/app/shared/navbar/navbar.component.html.template +1 -1
  83. package/src/ng-add/files/src/app/shared/redeployment-warning/redeployment-warning.component.ts.template +1 -1
  84. package/src/ng-add/files/src/app/shared/redeployment-warning/redeployment-warning.service.ts.template +2 -2
  85. package/src/ng-add/files/src/environments/environment.ts.template +1 -1
  86. package/src/ng-add/files/src/index.html.template +3 -2
  87. package/src/ng-add/files/src/styles/_variables.scss.template +1 -0
  88. package/src/ng-add/files/src/styles.scss.template +4 -2
  89. package/src/ng-add/schema.json +1 -0
  90. 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: false,
18
- consented: true,
19
- accessState: AccessState.DONE,
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
- CONSENT = '01 - consent', // on consent form
24
- SUBMIT_INTEREST = '02 - submit interest', // on basic interest form
25
- WAITING = '03 - waiting', // on waitlist for early access
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
- background: {
17
- selections: ['option1'],
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
- background: {
7
- selections: string[];
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.SUBMIT_INTEREST,
68
+ accessState: AccessState.DONE,
68
69
  consented: true,
69
70
  });
70
- this.router.navigate(['/early-access']);
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
+ };
@@ -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
  ];
@@ -1,65 +1,83 @@
1
1
  <app-navbar></app-navbar>
2
2
  @if (waitlistData(); as data) {
3
- <div class="early-access-container">
4
- <!-- Core questions on motivation and desired value -->
5
- @if (data.currentUser.accessState === AccessState.SUBMIT_INTEREST && !loading()) {
6
- <h1>Hello and Welcome!</h1>
7
- <form [formGroup]="backgroundForm" (ngSubmit)="submitInterest()">
8
- <div class="form-field-group">
9
- <mat-label class="question">
10
- Which of the following best describe your background and interest in {{ appName }}?
11
- @if (backgroundForm.hasError('noneChecked') && (backgroundForm.touched || backgroundForm.dirty)) {
12
- <mat-error class="checkbox-error">Please select one to help us understand your background</mat-error>
13
- }
14
- </mat-label>
15
- <div class="checkbox-group" formArrayName="backgroundSelections">
16
- @for (item of backgroundSelections.controls; track item.value.fieldName; let i = $index) {
17
- <ng-container [formGroupName]="i">
18
- <mat-checkbox formControlName="checked" [aria-label]="item.value.ariaLabel" (click)="check(item)">{{ item.value.label }}</mat-checkbox>
19
- </ng-container>
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">How would you describe your background and interest in {{ appName }}?</mat-label>
26
- <mat-form-field class="background-other" appearance="fill">
27
- <mat-label>Your background and interest</mat-label>
28
- <input matInput name="backgroundOther" formControlName="backgroundOther" required>
29
- @if (backgroundForm.hasError('needsOtherText') && (backgroundForm.touched || backgroundForm.dirty)) {
30
- <mat-error>Can you elaborate on your selection of 'Other'?</mat-error>
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
- <div class="form-field-group">
36
- <mat-label class="question">What do you hope to experience or get out of an application for {{ appArea }}?</mat-label>
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
- <mat-hint>You're at {{text.value?.length}} characters! Telling us about your goals or why you decided to try it out helps us design the experience to better support you! 🙏</mat-hint>
48
+ Submit and Continue
49
+ <img src="https://icongr.am/feather/arrow-right.svg?size=20&color=B2B6C7">
44
50
  }
45
- </mat-form-field>
46
- </div>
47
- <button type="submit" class="btn continue-btn" [disabled]="backgroundForm.invalid">
48
- Submit and Continue
49
- <img src="https://icongr.am/feather/arrow-right.svg?size=20&color=B2B6C7">
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
- <h1>You are <span class="your-position">{{ position }}</span> of {{ total }} on the waitlist</h1>
57
- <p>Thanks for signing up! We're hand-reviewing your response and personally onboarding our first 100 users to ensure that we can give you a delightful experience. We'll be in touch soon 😊</p>
58
- <p>Also, we haven't had the chance to implement a formal referral system yet, but if you would love to get off the waitlist faster and can help us reach others, email {{ outreachLeadName }} at <a [href]="'mailto:' + outreachLeadEmail">{{ outreachLeadEmail }}</a> and let's talk about getting you early access!</p>
59
- } @else if (loading()) {
60
- <div class="loading-container">
61
- Submitting... <mat-spinner [diameter]="20" [strokeWidth]="2"></mat-spinner>
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
+ }
@@ -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
- mat-spinner {
29
- margin-left: 10px;
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: 2em;
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: #6ea6fb;
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
  }