add classification page
Change-Id: I5f661291cd32416b23e9b3f4483f200e885141c5
diff --git a/src/app/globals.scss b/src/app/globals.scss
index a2f8cf4..d549826 100644
--- a/src/app/globals.scss
+++ b/src/app/globals.scss
@@ -117,19 +117,19 @@
//TabView组件样式
.p-tabview {
- background-color: #F0F4F7;
+ background-color: $background-color;
}
.p-tabview-panels {
- background-color: #F0F4F7;
+ background-color: $background-color;
}
.p-tabview-nav {
- background-color: #F0F4F7;
+ background-color: $background-color;
}
.p-tabview-nav-link {
- background-color: #F0F4F7;
+ background-color: $background-color;
}
//分页样式
@@ -137,7 +137,7 @@
display: flex;
justify-content: center;
align-items: center;
- background-color: #F0F4F7;
+ background-color: $background-color;
// 高亮状态的分页按钮
.p-highlight {
@@ -301,4 +301,101 @@
gap: 3rem;
padding: 1rem;
}
+}
+
+// 资源卡片列表
+.all-resources {
+ width: 100%;
+ padding: 1rem;
+
+ &-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ }
+
+ &-card {
+ height: 140px;
+ padding: 1.5rem;
+ margin-bottom: 1rem;
+ border-radius: 0.5rem;
+ transition: transform 0.3s ease;
+ box-shadow: none !important; // 取消阴影
+ cursor: pointer;
+
+ //填充卡片
+ &.p-card.p-component {
+ padding: 0;
+ }
+
+ .p-card-body {
+ padding: 0;
+ }
+
+ &:hover {
+ transform: translateY(-3px);
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
+ }
+
+ .p-card-content {
+ height: 140px;
+ display: flex;
+ justify-content: space-between;
+ padding: 0;
+ }
+
+ img {
+ border-radius: 0.5rem 0 0 0.5rem;
+ object-fit: cover;
+ }
+
+ .resource-header {
+ display: flex;
+ flex: 1;
+ max-width: 850px;
+ padding-left: 20px;
+ padding-right: 20px;
+ margin-bottom: 20px;
+ }
+
+ .resource-content {
+ flex: 1;
+ display: flex;
+ flex-direction: column;
+
+ h3 {
+ font-size: 1.5rem;
+ font-weight: bold;
+ color: #2c3e50;
+ }
+
+ .tags {
+ display: flex;
+ gap: 0.5rem;
+ }
+
+ .resource-introduction {
+ color: #666;
+ font-size: 1rem;
+ margin-bottom: 0;
+ }
+ }
+
+ .resources-states {
+ min-width: 120px;
+ display: flex;
+ flex-direction: column;
+ justify-content: flex-end;
+ align-items: flex-end;
+ gap: 0.5rem;
+
+ .state-item {
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ color: #666;
+ font-size: 1rem;
+ }
+ }
+ }
}
\ No newline at end of file