Skip to content

Commit 3be6ade

Browse files
authored
Revert "feat: enable light mode (#255)" (#443)
This reverts commit 600f623.
1 parent 600f623 commit 3be6ade

File tree

32 files changed

+5095
-4651
lines changed

32 files changed

+5095
-4651
lines changed
Lines changed: 1 addition & 1 deletion
Loading

libs/blog/about-us/feature-about-us/src/lib/feature-about-us/feature-about-us.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<ng-container *transloco="let t; read: 'aboutUsPage'">
2-
<h2 class="text-al-primary-foreground py-4 text-[40px] font-bold">
2+
<h2 class="py-4 text-[40px] font-bold">
33
{{ t('title') }}
44
</h2>
55

6-
<al-card class="bg-transparent">
6+
<al-card>
77
<section
88
alCardContent
99
aria-labelledby="angular-love"
@@ -35,7 +35,7 @@ <h2 class="text-al-primary-foreground py-4 text-[40px] font-bold">
3535
<al-newsletter alCardContent />
3636
</al-card>
3737

38-
<h2 class="text-al-primary-foreground mb-8 mt-10 text-[40px] font-bold">
38+
<h2 class="mb-8 mt-10 text-[40px] font-bold">
3939
{{ t('authorsTitle') }}
4040
</h2>
4141
</ng-container>

libs/blog/articles/feature-latest-articles/src/lib/feature-latest-articles/feature-latest-articles.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import { CategoryListItem, injectCategories } from './categories.const';
3838
NgClass,
3939
TranslocoDirective,
4040
ArticleRegularCardSkeletonComponent,
41+
CardComponent,
4142
RepeatDirective,
4243
RouterLink,
4344
ButtonComponent,

libs/blog/articles/ui-article-card/src/lib/components/article-compact-card/article-compact-card.component.html

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
<a [routerLink]="['/', article().slug] | alLocalize">
22
<article
3-
class="relative h-full overflow-hidden rounded-lg bg-black bg-cover bg-no-repeat transition-transform hover:scale-105 motion-reduce:transition-none motion-reduce:hover:scale-100"
3+
class="h-full rounded-lg bg-cover bg-no-repeat transition-transform hover:scale-105 motion-reduce:transition-none motion-reduce:hover:scale-100"
4+
[style.background-image]="
5+
'url(' +
6+
(article().featuredImageUrl || 'assets/article-placeholder.webp') +
7+
')'
8+
"
49
[attr.aria-labelledby]="article().slug"
510
>
6-
<img
7-
alt="Post featured image"
8-
class="absolute h-auto w-full bg-contain opacity-20"
9-
[ngSrc]="article().featuredImageUrl || 'assets/article-placeholder.webp'"
10-
[priority]="imagePriority()"
11-
width="1215"
12-
height="750"
13-
/>
14-
<div class="relative flex h-full flex-col justify-between text-[#fff]">
11+
<div
12+
class="bg-al-background relative flex h-full flex-col justify-between opacity-85"
13+
>
1514
<div
1615
class="hover:bg-al-bottom-radial-gradient absolute h-full w-full"
1716
></div>
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { NgOptimizedImage } from '@angular/common';
21
import { ChangeDetectionStrategy, Component, input } from '@angular/core';
32
import { RouterLink } from '@angular/router';
43
import { FastSvgComponent } from '@push-based/ngx-fast-svg';
@@ -10,17 +9,9 @@ import { AvatarComponent } from '@angular-love/blog/shared/ui-avatar';
109
@Component({
1110
selector: 'al-article-compact-card',
1211
changeDetection: ChangeDetectionStrategy.OnPush,
13-
standalone: true,
14-
imports: [
15-
AvatarComponent,
16-
RouterLink,
17-
AlLocalizePipe,
18-
FastSvgComponent,
19-
NgOptimizedImage,
20-
],
12+
imports: [AvatarComponent, RouterLink, AlLocalizePipe, FastSvgComponent],
2113
templateUrl: './article-compact-card.component.html',
2214
})
2315
export class ArticleCompactCardComponent {
2416
readonly article = input.required<ArticleCard>();
25-
readonly imagePriority = input<number | null>(null);
2617
}

libs/blog/articles/ui-article-card/src/lib/components/article-hero-card/article-hero-card-skeleton.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { CardComponent } from '@angular-love/blog/shared/ui-card';
77
selector: 'al-article-hero-card-skeleton',
88
imports: [NgxSkeletonLoaderModule, CardComponent],
99
template: `
10-
<al-card class="bg-transparent">
10+
<al-card>
1111
<div alCardContent class="p-2">
1212
<div class="flex flex-row items-center">
1313
<!-- avatar -->

libs/blog/articles/ui-article-card/src/lib/components/article-horizontal-card/article-horizontal-card.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<a [routerLink]="['/', article().slug] | alLocalize">
22
<article
3-
class="light:border group relative flex h-full w-full flex-row rounded-lg shadow-none"
3+
class="group relative flex h-full w-full flex-row rounded-lg shadow-none max-h-52"
44
[attr.aria-labelledby]="article().slug"
55
>
66
<img

libs/blog/articles/ui-article-card/src/lib/components/article-regular-card/article-regular-card.component.html

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<a [routerLink]="['/', article().slug] | alLocalize">
22
<article
3-
class="bg-al-card md:hover:shadow-al-primary group relative h-full w-full rounded-lg border shadow-none transition-transform motion-reduce:transition-none lg:hover:scale-105 lg:motion-reduce:hover:scale-100 dark:border-transparent"
3+
class="bg-al-card md:hover:shadow-al-primary group relative h-full w-full rounded-lg border border-transparent shadow-none transition-transform motion-reduce:transition-none lg:hover:scale-105 lg:motion-reduce:hover:scale-100"
44
[attr.aria-labelledby]="article().slug"
55
>
66
<div
@@ -18,12 +18,8 @@
1818
<div class="rounded-b-lg">
1919
<div class="flex items-center justify-between px-4 pt-4">
2020
<div class="flex items-center gap-2">
21-
<al-avatar
22-
[imageSrc]="article().author.avatarUrl"
23-
[priority]="imagePriority()"
24-
size="32"
25-
/>
26-
<span class="text-al-primary-foreground text-sm/[14px] font-medium">
21+
<al-avatar [imageSrc]="article().author.avatarUrl" size="32" />
22+
<span class="text-sm/[14px] font-medium">
2723
{{ article().author.name }}
2824
</span>
2925
</div>
@@ -38,14 +34,10 @@
3834
</div>
3935
</div>
4036
<div class="flex flex-col gap-3 px-4 pb-4 pt-3">
41-
<h3
42-
class="*:text-al-primary-foreground text-2xl font-bold *:not-italic"
43-
[id]="article().slug"
44-
style="word-break: break-word"
45-
>
37+
<h3 class="text-2xl font-bold" [id]="article().slug">
4638
{{ article().title }}
4739
</h3>
48-
<p class="*:text-al-pink line-clamp-2 *:font-medium *:not-italic">
40+
<p class="line-clamp-2">
4941
{{ article().excerpt }}
5042
</p>
5143
</div>

libs/blog/articles/ui-article-card/src/lib/ui-article-card/ui-article-card.component.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
/>
1313
}
1414
@case ('compact') {
15-
<al-article-compact-card
16-
[article]="article()"
17-
[imagePriority]="imagePriority()"
18-
/>
15+
<al-article-compact-card [article]="article()" />
1916
}
2017
}

libs/blog/articles/ui-article-list-title/src/lib/ui-article-list-title/ui-article-list-title.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="my-5 flex flex-row items-center justify-between gap-6">
22
<h2
33
data-testId="article-list-title"
4-
class="text-al-primary-foreground line-clamp-2 max-w-[160px] text-xl font-bold md:line-clamp-1 md:max-w-full lg:text-3xl"
4+
class="line-clamp-2 max-w-[160px] text-xl font-bold md:line-clamp-1 md:max-w-full lg:text-3xl"
55
>
66
{{ title() }}
77
</h2>

0 commit comments

Comments
 (0)