add reward manage
Change-Id: Ic0a25e1fb6442bbda2285b2cc9c736f8a9ed9713
diff --git a/src/app/user/user.scss b/src/app/user/user.scss
index a3726b6..d0b10c8 100644
--- a/src/app/user/user.scss
+++ b/src/app/user/user.scss
@@ -103,69 +103,156 @@
}
-//每一模块的首部样式
-.section-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top: 20px;
+.p-tabview-panels {
+ padding-top: 0;
}
-//每个模块中的资源样式
-.resource-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
- gap: 1rem;
+.homepage-item {
+ //每一模块的首部样式
+ .section-header {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-top: 20px;
+ }
- .resource-card {
- transition: transform 0.2s ease;
- cursor: pointer;
- box-shadow: none !important;
+ //每个模块中的资源样式
+ .resource-grid {
+ display: grid;
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
+ gap: 1rem;
- .p-image {
- img {
- border-radius: 0.5rem 0.5rem 0 0;
- object-fit: cover;
+ .resource-card {
+ transition: transform 0.2s ease;
+ cursor: pointer;
+ box-shadow: none !important;
+
+ .p-image {
+ img {
+ border-radius: 0.5rem 0.5rem 0 0;
+ object-fit: cover;
+ }
}
+
+ .p-card-body {
+ padding: 0;
+ }
+
+ .p-card-content {
+ padding: 0;
+ }
+
+ &:hover {
+ transform: translateY(-4px);
+ }
+
+ .card-content {
+ display: flex;
+ flex-direction: column;
+ position: relative;
+ margin-left: 16px;
+ margin-right: 16px;
+ margin-bottom: 16px;
+
+ h3 {
+ margin: 1rem 0;
+ font-size: 1rem;
+ line-height: 1.5;
+ color: #2d3748;
+ }
+
+ .view-count {
+ position: absolute;
+ bottom: 0rem;
+ right: 0rem;
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ color: #718096;
+ font-size: 0.9rem;
+ }
+ }
+ }
+ }
+}
+
+
+.resources-list {
+ width: 100%;
+ padding: 1rem;
+
+ &-card {
+ height: 140px;
+ padding: 1.5rem;
+ margin-bottom: 1rem;
+ border-radius: 0.5rem;
+ transition: transform 0.3s ease;
+ box-shadow: none !important; // 取消阴影
+
+ //填充卡片
+ &.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;
}
- &:hover {
- transform: translateY(-4px);
+ img {
+ border-radius: 0.5rem 0 0 0.5rem;
+ object-fit: cover;
}
- .card-content {
+
+ .resource-avatar {
+ width: 80px;
+ height: 80px;
+ border-radius: 8px;
+ 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;
- position: relative;
- margin-left: 16px;
- margin-right: 16px;
- margin-bottom: 16px;
h3 {
- margin: 1rem 0;
- font-size: 1rem;
- line-height: 1.5;
- color: #2d3748;
+ font-size: 1.5rem;
+ font-weight: bold;
+ color: #2c3e50;
}
- .view-count {
- position: absolute;
- bottom: 0rem;
- right: 0rem;
- display: flex;
- align-items: center;
- gap: 0.5rem;
- color: #718096;
- font-size: 0.9rem;
- }
+
+ }
+
+ .resource-operation {
+ min-width: 240px;
+ display: flex;
+ flex-direction: row;
+ justify-content: flex-end;
+ align-items: flex-end;
+ gap: 1rem;
}
}
}
@@ -245,5 +332,115 @@
}
}
+//删除资源弹窗样式
+.resource-delete-dialog {
+ width: 350px !important;
+ max-width: 90vw;
+
+ .dialog-footer {
+ margin-top: 10px;
+ display: flex;
+ justify-content: center;
+ }
+
+ .p-dialog-header {
+ font-size: 1.5rem;
+ font-weight: bold;
+ color: $heading-color;
+ padding-bottom: 0.5rem;
+ }
+
+ .p-dialog-content {
+ padding-top: 0;
+ padding-bottom: 0;
+
+ .dialog-form {
+ display: flex;
+ flex-direction: column;
+ gap: 1.5rem;
+ margin-top: 1rem;
+
+ .form-field {
+ display: flex;
+ flex-direction: column;
+ gap: 0.5rem;
+
+ label {
+ font-weight: 600;
+ color: $heading-color;
+ }
+
+ input,
+ textarea{
+ padding: 0.75rem 1rem;
+ border-radius: 8px;
+ font-size: 1rem;
+ color: #2d3748;
+ }
+
+ }
+ }
+ }
+}
+
+//资源编辑弹窗样式
+.resource-edit-dialog {
+ width: 600px !important;
+ max-width: 90vw;
+
+ .dialog-footer {
+ margin-top: 10px;
+ display: flex;
+ justify-content: center;
+ }
+
+ .p-dialog-header {
+ font-size: 1.5rem;
+ font-weight: bold;
+ color: $heading-color;
+ padding-bottom: 0.5rem;
+ }
+
+ .p-dialog-content {
+ padding-top: 0;
+ padding-bottom: 0;
+
+ .dialog-form {
+ display: flex;
+ flex-direction: column;
+ gap: 1.5rem;
+ margin-top: 1rem;
+
+ .form-field {
+ display: flex;
+ flex-direction: column;
+ gap: 0.5rem;
+
+ label {
+ font-weight: 600;
+ color: $heading-color;
+ }
+
+ input,
+ textarea{
+ padding: 0.75rem 1rem;
+ border-radius: 8px;
+ font-size: 1rem;
+ color: #2d3748;
+ }
+
+ .p-fileupload {
+ .p-button {
+ width: 100%;
+ justify-content: center;
+ border: none;
+ margin-bottom: 1rem;
+ }
+ }
+ }
+ }
+ }
+}
+