blob: a3726b67dcf40790c63c03c00d796eb68ac82b2a [file] [log] [blame]
lfmylbhf1783a092025-06-07 20:05:22 +08001@import '../globals.scss';
2
lfmylbhf789e7172025-06-06 18:37:21 +08003//全局容器样式
4.user-container {
5 max-width: 1200px;
6 margin: 0 auto;
7 padding: 0 2rem;
8
9 .p-tabview-title {
10 font-size: 20px;
11 }
12}
13
14//个人信息样式
15.user-profile-card {
16 display: flex;
17
18 .user-avatar {
19 height: 200px;
20 width: 200px;
21 margin: 30px;
22 }
23 .user-info {
24 width: 796px;
25 position: relative;
26 margin-top: 22px;
27
28 .user-detail-info {
29 display: flex;
30 justify-content: space-between;
31
32 .name-container {
33 width: 750px;
34 margin-left: 1rem;
35 .name {
36 font-size: 43px;
37 margin-bottom: 3px;
38 }
39
40 .signature {
41 margin-top: 0;
42 font-size: 20px;
43 }
44 }
45
46 .stats-container {
47 display: flex;
48 flex-wrap: wrap; // 允许换行
49 margin-top: 60px;
50
51 .stats {
52 width: 50%;
53 display: flex;
54 flex-direction: row;
55 align-items: center;
56 margin-bottom: 16px;
57
58 // 左上角:粉丝
59 &:nth-child(1) {
60 justify-content: flex-start; // 左对齐
61 }
62
63 // 右上角:累计上传量
64 &:nth-child(2) {
65 justify-content: flex-end; // 右对齐
66 }
67
68 // 左下角:关注
69 &:nth-child(3) {
70 justify-content: flex-start; // 左对齐
71 }
72
73 // 右下角:累计被下载量
74 &:nth-child(4) {
75 justify-content: flex-end; // 右对齐
76 }
77
78 .stats-label {
79 font-size: 18px;
80 color: #666;
81 margin-right: 4px;
82 white-space: nowrap;
83 }
84
85 .stats-value {
86 font-size: 20px;
87 font-weight: bold;
88 color: #333;
89 }
90 }
91 }
92 }
93
94 .action-button {
95 align-self: flex-end; // 底部对齐
96 margin-top: auto; // 自动上边距将其推到底部
97 // 固定位置:
98 position: absolute;
99 right: 0;
100 bottom: 10px;
101 }
102 }
103}
104
105
106//每一模块的首部样式
107.section-header {
108 display: flex;
109 justify-content: space-between;
110 align-items: center;
111 margin-top: 20px;
112}
113
114//每个模块中的资源样式
115.resource-grid {
116 display: grid;
117 grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
118 gap: 1rem;
119
120 .resource-card {
121 transition: transform 0.2s ease;
122 cursor: pointer;
123 box-shadow: none !important;
124
125 .p-image {
126 img {
127 border-radius: 0.5rem 0.5rem 0 0;
128 object-fit: cover;
129 }
130 }
131
132 .p-card-body {
133 padding: 0;
134 }
135
136 .p-card-content {
137 padding: 0;
138 }
139
140 &:hover {
141 transform: translateY(-4px);
142 }
143
144 .card-content {
145 display: flex;
146 flex-direction: column;
147 position: relative;
148 margin-left: 16px;
149 margin-right: 16px;
150 margin-bottom: 16px;
151
152 h3 {
153 margin: 1rem 0;
154 font-size: 1rem;
155 line-height: 1.5;
156 color: #2d3748;
157 }
158
159 .view-count {
160 position: absolute;
161 bottom: 0rem;
162 right: 0rem;
163 display: flex;
164 align-items: center;
165 gap: 0.5rem;
166 color: #718096;
167 font-size: 0.9rem;
168 }
169 }
170 }
171}
172
173
174
lfmylbhf1783a092025-06-07 20:05:22 +0800175//发布资源弹窗样式
176.publish-dialog {
177 width: 600px !important;
178 max-width: 90vw;
179
180 .p-dialog-header {
181 font-size: 1.5rem;
182 font-weight: bold;
183 color: $heading-color;
184 padding-bottom: 0.5rem;
185 }
186
187 .p-dialog-content {
188 padding-top: 0;
189 padding-bottom: 0;
190
191 .publish-form {
192 display: flex;
193 flex-direction: column;
194 gap: 1.5rem;
195 margin-top: 1rem;
196
197 .form-field {
198 display: flex;
199 flex-direction: column;
200 gap: 0.5rem;
201
202 .form-field-header {
203
204 //*号的样式
205 .form-field-sign {
206 color: red;
207 margin-right: 5px;
208 }
209 }
210
211 label {
212 font-weight: 600;
213 color: $heading-color;
214 }
215
216 input,
217 textarea {
218 padding: 0.75rem 1rem;
219 border-radius: 8px;
220 font-size: 1rem;
221 color: #2d3748;
222 }
223
224
225 .p-fileupload {
226 .p-button {
227 width: 100%;
228 justify-content: center;
229 border: none;
230 margin-bottom: 1rem;
231 }
232 }
233
234 //资源分类样式
235 .form-field-classify {
236 display: flex;
237 justify-content: space-between;
238
239 .ml-2 {
240 margin-left: 10px;
241 }
242 }
243 }
244 }
245 }
246}
247
248
249