blob: 543a846a5a3ce26786116235c988b307e7243ce2 [file] [log] [blame]
LaoeGaociee7c5772025-05-28 12:34:47 +08001@import '../../../globals.scss';
2
3.resource-community {
4 padding: 2rem;
5 position: relative;
6 max-width: 1200px;
7 margin: 0 auto;
8 padding: 0 2rem;
9
10 .community-header {
11 display: flex;
12 flex-direction: row;
13 justify-content: space-between;
14 margin-bottom: 2rem;
15
16 .title-section {
17 display: flex;
18 flex-direction: column;
19 gap: 24px;
20 align-items: flex-start;
21
22 h1 {
23 font-size: 3rem;
24 margin: 0;
25 margin-top: 32px;
26 }
27
28 .subtitle {
29 margin: 0;
30 color: #718096;
31 font-size: 1rem;
32 }
33
34 .stars {
35 font-size: 1.2rem;
36 }
37
38 .community-states {
39 display: flex;
40 gap: 2rem;
41 align-items: center;
42
43 .state-item {
44 display: flex;
45 align-items: center;
46 gap: 0.5rem;
47 color: #666;
48
49 span {
50 font-size: 0.9rem;
51 }
52 }
53 }
54 }
55
56 .input {
57 display: flex;
58 flex-direction: column;
59 justify-content: flex-end;
60 align-items: flex-end;
61
62 .p-button {
63 width: 100px;
64
65 padding: 0;
66 margin-top: 10px;
67 }
68 }
69 .p-dropdown-item p-focus{
70 background-color: rgba(182, 238, 235, 0.4) !important;
71 }
72 .p-dropdown-item p-highlight p-focus {
73 background-color: rgba(182, 238, 235, 0.4) !important;
74 }
75 .action-section {
76 display: flex;
77 align-items: center;
78
LaoeGaoci388f7762025-05-29 22:24:35 +080079 .searchBar {
LaoeGaociee7c5772025-05-28 12:34:47 +080080 max-width: 100%;
81 position: relative;
LaoeGaoci388f7762025-05-29 22:24:35 +080082 border-radius: 0px 10px 10px 0px;
LaoeGaociee7c5772025-05-28 12:34:47 +080083 .pi-search {
84 position: absolute;
85 left: 1rem;
86 top: 50%;
87 transform: translateY(-50%);
88 z-index: 1;
89 }
90
91 .search-helper {
92 width: 100%;
93 height: 3rem;
94 padding-left: 2.5rem;
95 border-radius: 10px 0px 0px 10px;
96 font-size: 1.1rem;
97 border: 1px solid #ddd;
98 }
99 }
100
101 .select-dropdown {
102 width: 100px;
103 height: 48px;
104 border-radius: 0px 10px 10px 0px;
105
106 .p-dropdown-items {
107 max-height: 20px;
108 }
109 }
110 }
111 }
112
113 .thread-list {
114 display: flex;
115 gap: 1rem;
116 flex-direction: column;
117
118 .resource-grid {
119 display: grid;
120 grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
121 gap: 1rem;
122
123 .resource-card {
124 transition: transform 0.2s ease;
125 cursor: pointer;
126 box-shadow: none !important;
127
128 .p-image {
129 img {
130 border-radius: 0.5rem 0.5rem 0 0;
131 object-fit: cover;
132 }
133 }
134
135 .p-card-body {
136 padding: 0;
137 }
138
139 .p-card-content {
140 padding: 0;
141 }
142
143 &:hover {
144 transform: translateY(-4px);
145 }
146
147 .card-content {
148 display: flex;
149 flex-direction: column;
150 position: relative;
151 margin-left: 16px;
152 margin-right: 16px;
153 margin-bottom: 16px;
154
155 h3 {
156 margin: 1rem 0;
157 font-size: 1rem;
158 line-height: 1.5;
159 color: #2d3748;
160 }
161
162 .view-count {
163 position: absolute;
164 bottom: 0rem;
165 right: 0rem;
166 display: flex;
167 align-items: center;
168 gap: 0.5rem;
169 color: #718096;
170 font-size: 0.9rem;
171 }
172 }
173 }
174 }
175 }
176
177 .add-resource-button {
178 position: fixed;
179 bottom: 2rem;
180 right: 2rem;
181 width: 56px;
182 height: 56px;
183
184 .pi-plus {
185 font-size: 1.5rem;
186 }
187 }
188}
189
190// ========== 弹窗发布样式 ==========
191
192.publish-dialog {
193 width: 600px !important;
194 max-width: 90vw;
195
196 .p-dialog-header {
197 font-size: 1.5rem;
198 font-weight: bold;
199 color: $heading-color;
200 padding-bottom: 0.5rem;
201 }
202
203 .p-dialog-content {
204 padding-top: 0;
205 padding-bottom: 0;
206
207 .publish-form {
208 display: flex;
209 flex-direction: column;
210 gap: 1.5rem;
211 margin-top: 1rem;
212
213 .form-field {
214 display: flex;
215 flex-direction: column;
216 gap: 0.5rem;
217
218 label {
219 font-weight: 600;
220 color: $heading-color;
221 }
222
223 input,
224 textarea {
225 padding: 0.75rem 1rem;
226 border-radius: 8px;
227 font-size: 1rem;
228 color: #2d3748;
229 }
230
231
232 .p-fileupload {
233 .p-button {
234 width: 100%;
235 justify-content: center;
236 border: none;
237 margin-bottom: 1rem;
238 }
239 }
240 }
241 }
242 }
243}