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