Skip to content

Commit 737d51e

Browse files
committed
Catalogue: Refactor course card component and update styles
1 parent f49c5f5 commit 737d51e

5 files changed

Lines changed: 187 additions & 356 deletions

File tree

assets/css/scss/organisms/_cards.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
.p-card {
2-
@apply rounded-lg bg-white drop-shadow-lg;
2+
@apply rounded-lg bg-white border border-gray-30
3+
hover:drop-shadow-lg;
34

45
.p-card-body {
5-
@apply h-full flex flex-col space-y-4 p-4 border-b border-r border-l border-b-support-1 border-r-support-1 border-l-support-1 rounded-b-lg rounded-r-lg rounded-l-lg;
6+
@apply h-full flex flex-col space-y-4 p-4 rounded-b-lg;
67
}
78

89
.p-card-header {
@@ -20,12 +21,15 @@
2021
}
2122

2223
.p-card-content {
24+
@apply space-y-2;
25+
2326
&:empty {
2427
@apply hidden;
2528
}
2629
}
2730

2831
.p-card-footer {
32+
@apply rounded-b-lg;
2933
}
3034

3135
.p-menu {

assets/css/scss/organisms/_course_card.scss

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
@layer components {
22
.course-card {
3-
@apply bg-gray-15;
43

54
&__header {
6-
@apply relative aspect-video w-full overflow-hidden rounded-t-2xl bg-gray-25;
5+
@apply relative aspect-video w-full overflow-hidden rounded-t-lg bg-gray-25 ;
6+
}
7+
8+
.p-card-header {
9+
@apply relative;
710
}
811

912
&__category-list {
10-
@apply absolute top-2 left-2 flex flex-wrap gap-1 z-30;
13+
@apply absolute top-2 left-2 flex flex-wrap gap-1 z-10;
1114
}
1215

1316
&__title {
@@ -23,5 +26,9 @@
2326
}
2427
}
2528
}
29+
30+
&__language {
31+
@apply absolute bottom-2 right-2 z-10;
32+
}
2633
}
27-
}
34+
}

0 commit comments

Comments
 (0)