Skip to content

Commit e0949a5

Browse files
fix: changed styles for difficulty component
1 parent f23d6c9 commit e0949a5

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

libs/blog/layouts/ui-layouts/src/lib/footer/footer.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class="al-container mx-auto grid max-w-screen-xl gap-y-4 px-6 py-4 xl:px-0"
44
>
55
<al-footer-logo class="self-center" [currentYear]="currentYear" />
6-
<al-navigation />
6+
<al-navigation [whiteFont]="true" />
77
<div
88
class="social-media-container flex items-center justify-self-end md:max-lg:justify-self-center"
99
>

libs/blog/layouts/ui-navigation/src/lib/navigation/navigation.component.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
>
2222
<a
2323
[attr.data-testid]="item.dataTestId"
24-
class="text-al-foreground p-2 font-medium md:p-6"
24+
class="p-2 font-medium md:p-6"
25+
[ngClass]="whiteFont() ? 'text-white' : 'text-al-foreground'"
2526
[routerLinkActive]="'text-al-pink'"
2627
[routerLink]="item.link | alLocalize"
2728
(click)="navigated.emit()"
@@ -33,7 +34,8 @@
3334
<li>
3435
<a
3536
[attr.data-testid]="item.dataTestId"
36-
class="text-al-foreground p-2 font-medium md:p-6"
37+
class="p-2 font-medium md:p-6"
38+
[ngClass]="whiteFont() ? 'text-white' : 'text-al-foreground'"
3739
[href]="item.link"
3840
target="_blank"
3941
>

libs/blog/layouts/ui-navigation/src/lib/navigation/navigation.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export type NavItem = {
3333
})
3434
export class NavigationComponent {
3535
readonly layout = input<'vertical' | 'horizontal'>('horizontal');
36+
readonly whiteFont = input<boolean>(false);
3637

3738
readonly navItems: NavItem[] = [
3839
{

libs/blog/shared/ui-difficulty/src/lib/ui-difficulty.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export type UiDifficulty = 'beginner' | 'intermediate' | 'advanced';
2727
class="flex items-center self-stretch rounded-l-md pl-1 text-center align-middle xl:pl-2"
2828
[ngClass]="{
2929
'dark:bg-al-background bg-transparent': isColorBackground(),
30-
'bg-al-border': !isColorBackground(),
30+
'bg-al-grey': !isColorBackground(),
3131
}"
3232
>
3333
<span
@@ -79,7 +79,7 @@ export type UiDifficulty = 'beginner' | 'intermediate' | 'advanced';
7979
class="flex items-center self-stretch rounded-r-md pr-1 text-center align-middle"
8080
[ngClass]="{
8181
'dark:bg-al-background bg-transparent': isColorBackground(),
82-
'bg-al-border': !isColorBackground(),
82+
'bg-al-grey': !isColorBackground(),
8383
}"
8484
></div>
8585
</div>

libs/shared/assets/src/lib/styles/main.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
--border: 46 47 59;
1414
--card: 25 26 34;
1515
--background: 16 15 21;
16+
--grey: 46 47 59;
1617
}
1718

1819
@media (prefers-color-scheme: light) {
@@ -24,6 +25,7 @@
2425
--border: 200 200 200;
2526
--card: 255 255 255;
2627
--background: 255 255 255;
28+
--grey: 241 241 241;
2729
}
2830
}
2931
}

tailwind.preset.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module.exports = {
1919
'al-pink': 'rgba(var(--primary) / <alpha-value>)',
2020
'al-primary': 'rgba(var(--primary) / <alpha-value>)',
2121
'al-muted': 'rgba(var(--muted) / <alpha-value>)',
22+
'al-grey': 'rgba(var(--grey) / <alpha-value>)',
2223
},
2324
backgroundImage: {
2425
'al-radial-gradient':
@@ -31,7 +32,7 @@ module.exports = {
3132
boxShadow: {
3233
'al-primary': '0 0 0 1px rgba(var(--primary) / <alpha-value>)',
3334
'al-full-background': '0px 0px 0px 999px rgba(var(--background) / 1)',
34-
'al-full-border': '0px 0px 0px 999px rgba(var(--border) / 1)',
35+
'al-full-border': '0px 0px 0px 999px rgba(var(--grey) / 1)',
3536
},
3637
},
3738
},

0 commit comments

Comments
 (0)