Skip to content

Commit 956f02b

Browse files
marcin-hoaDamianBrzezinskiHoA
authored andcommitted
feat: light mode improvements
1 parent d52b3b1 commit 956f02b

File tree

9 files changed

+17
-14
lines changed

9 files changed

+17
-14
lines changed

libs/blog/articles/ui-article-content/src/lib/article-content/article-content.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
code:not(pre code) {
5454
padding: 0.2em 0.4em;
5555
background: #2e2f3b;
56+
color: white;
5657
border-radius: 4px;
5758
font-size: 0.85rem;
5859
font-weight: 600;

libs/blog/authors/ui-author-card/src/lib/author-card.component.html

Whitespace-only changes.

libs/blog/authors/ui-author-card/src/lib/author-card.component.ts

Whitespace-only changes.

libs/blog/authors/ui-author-card/src/lib/author-card/author-card-template.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
class: 'block @container',
1515
},
1616
template: `
17-
<al-card alGradientCard>
17+
<al-card>
1818
<div alCardContent>
1919
<div
2020
class="@3xl:flex-row @3xl:border-none flex w-full flex-col items-center rounded-lg border"

libs/blog/become-author/feature-become-author-page/src/lib/become-author-page/become-author-page.component.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ <h3 id="author-ad-title" class="text-2xl font-bold lg:text-4xl">
2727
class="@xl:justify-end my-2 flex w-full flex-row items-center justify-center"
2828
>
2929
<a
30-
class="bg-al-pink flex h-[46px] w-full items-center justify-center rounded-lg md:w-4/5 lg:w-full"
30+
al-button
31+
class="h-[46px] w-full"
32+
[size]="'small'"
3133
href="https://form.typeform.com/to/Zzf1Girt?typeform-source=angular.love"
3234
target="_blank"
3335
>
34-
<p class="text-sm font-bold text-white">
35-
{{ t('becomeAuthorCard.buttonText') }}
36-
</p>
36+
{{ t('becomeAuthorCard.buttonText') }}
3737
</a>
3838
</div>
3939
</al-become-author-advertisement>
@@ -58,12 +58,12 @@ <h3 id="author-ad-title" class="text-2xl font-bold lg:text-4xl">
5858
class="@xl:justify-end my-2 flex w-full flex-row items-center justify-center"
5959
>
6060
<a
61-
class="bg-al-pink flex h-[46px] w-full items-center justify-center rounded-lg md:w-4/5 lg:w-full"
61+
al-button
62+
class="h-[46px] w-full"
63+
[size]="'small'"
6264
[routerLink]="'/writing-rules' | alLocalize"
6365
>
64-
<p class="text-center text-sm font-bold text-white">
65-
{{ t('articleWritingRules.buttonText') }}
66-
</p>
66+
{{ t('articleWritingRules.buttonText') }}
6767
</a>
6868
</div>
6969
</al-become-author-advertisement>

libs/blog/become-author/feature-become-author-page/src/lib/become-author-page/become-author-page.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { RouterLink } from '@angular/router';
33
import { TranslocoDirective } from '@jsverse/transloco';
44

55
import { AlLocalizePipe } from '@angular-love/blog/i18n/util';
6+
import { ButtonComponent } from '@angular-love/blog/shared/ui-button';
67
import {
78
CardComponent,
89
GradientCardDirective,
@@ -23,6 +24,7 @@ import { BecomeAuthorImprovementsComponent } from '../components/become-author-i
2324
TranslocoDirective,
2425
RouterLink,
2526
AlLocalizePipe,
27+
ButtonComponent,
2628
],
2729
templateUrl: './become-author-page.component.html',
2830
changeDetection: ChangeDetectionStrategy.OnPush,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { Lang } from '@angular-love/contracts/articles';
1515
template: `
1616
<div class="flex h-full items-center text-sm">
1717
<label
18-
class="relative block text-gray-400 focus-within:text-gray-600"
18+
class="text-al-primary-foreground relative block focus-within:text-gray-600"
1919
for="language"
2020
>
2121
<span class="sr-only">Select language</span>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ export type AlButtonVariant =
1717
export type AlButtonSize = 'small' | 'medium' | 'large';
1818

1919
const buttonVariants = cva(
20-
`rounded-lg flex cursor-pointer items-center gap-2 no-underline disabled:cursor-[initial] disabled:opacity-50`,
20+
`rounded-lg flex cursor-pointer items-center gap-2 justify-center no-underline disabled:cursor-[initial] disabled:opacity-50`,
2121
{
2222
variants: {
2323
variant: <Record<AlButtonVariant, string>>{
24-
Primary: 'bg-al-primary/90',
24+
Primary: 'bg-al-primary/90 text-white font-bold uppercase',
2525
Secondary: 'bg-al-background border',
2626
Outline: 'border border-al-primary/90 bg-white text-al-primary',
2727
Ghost: 'bg-transparent',

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
:root {
2828
--primary: 213 1 89;
2929
--foreground: 20 21 27;
30-
--primary-foreground: 106 121 139;
30+
--primary-foreground: 0 0 0;
3131
--muted: 25 25 25;
3232
--border: 200 200 200;
3333
--card: 255 255 255;
@@ -91,6 +91,6 @@ html {
9191

9292
@layer components {
9393
.al-link {
94-
@apply text-blue-400 hover:underline;
94+
@apply text-blue-600 hover:underline;
9595
}
9696
}

0 commit comments

Comments
 (0)