-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(openchallenges): upgrade legacy components (#2290)
* not-found page: upgrade MatCard * org-profile page: remove unused tabs component * github-button: upgrade MatButton * _app-theme: upgrade legacy; fix fonts * navbar: upgrade MatButton; fix colors and padding * fix typography for buttons * signup page: upgrade components * add required `mat-label` * update styles to account for changes * user-button: upgrade MatButton, MatMenu * update styles to account for changes * upgrade component in commented code * remove dependency on legacy-* in _app-theme * add typography to discord button; add discord theme * schematic: remove unused font; upgrade legacies
- Loading branch information
Showing
20 changed files
with
91 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
@use '@angular/material' as mat; | ||
|
||
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;500&display=swap'); | ||
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap'); | ||
|
||
$fira: mat.define-typography-config( | ||
$font-family: "'Fira Sans', sans-serif", | ||
); | ||
|
||
$lato: mat.define-typography-config( | ||
$headline-5: mat.define-typography-level(46px, 56px, 700, "'Lato', sans-serif"), | ||
$headline-6: mat.define-typography-level(40px, 50px, 700, "'Lato', sans-serif"), | ||
$subtitle-1: mat.define-typography-level(28px, 38px, 700, "'Lato', sans-serif", -0.1px), | ||
$subtitle-2: mat.define-typography-level(18px, 30px, 400, "'Lato', sans-serif", -0.1px), | ||
$body-1: mat.define-typography-level(21px, 36px, 400, "'Lato', sans-serif", -0.1px), | ||
$body-2: mat.define-typography-level(16px, 26px, 400, "'Lato', sans-serif"), | ||
$caption: mat.define-typography-level(14px, 21px, 400, "'Lato', sans-serif"), | ||
$button: mat.define-typography-level(16px, 18px, 400, "'Lato', sans-serif"), | ||
$font-family: "'Lato', sans-serif", | ||
$headline-5: mat.define-typography-level(46px, 56px, 700), | ||
$headline-6: mat.define-typography-level(40px, 50px, 700), | ||
$subtitle-1: mat.define-typography-level(28px, 38px, 700, $letter-spacing: -0.1px), | ||
$subtitle-2: mat.define-typography-level(20px, 32px, 400, $letter-spacing: -0.1px), | ||
$body-1: mat.define-typography-level(21px, 36px, 400, $letter-spacing: -0.1px), | ||
$body-2: mat.define-typography-level(16px, 26px, 400), | ||
$caption: mat.define-typography-level(14px, 21px, 400), | ||
$button: mat.define-typography-level(16px, 18px, 700), | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
libs/openchallenges/ui/src/lib/button-github/button-github.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 17 additions & 15 deletions
32
libs/openchallenges/ui/src/lib/discord-button/discord-button.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
<a | ||
mat-button | ||
class="docs-button" | ||
[href]="href" | ||
aria-label="OpenChallenges Discord server" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
<img | ||
alt="OpenChallenges Discord server" | ||
class="discord-logo" | ||
src="/openchallenges-assets/images/discord-icon.svg" | ||
/> | ||
{{ label }} | ||
</a> | ||
<div class="mat-typography"> | ||
<a | ||
mat-button | ||
class="docs-button" | ||
[href]="href" | ||
aria-label="OpenChallenges Discord server" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
<img | ||
alt="OpenChallenges Discord server" | ||
class="discord-logo" | ||
src="/openchallenges-assets/images/discord-icon.svg" | ||
/> | ||
{{ label }} | ||
</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.