Skip to content

Commit 92779bf

Browse files
committed
claude:feat: add delegation updates and rename reward updates to recent activity
1 parent 5b3e36f commit 92779bf

5 files changed

Lines changed: 203 additions & 197 deletions

File tree

src/assets/css/custom.css

Lines changed: 47 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -94,28 +94,28 @@
9494
font-weight: bold;
9595
}
9696

97-
/* REWARD CLAIMS CAROUSEL */
97+
/* RECENT ACTIVITY CAROUSEL */
9898

99-
.reward-claims-header {
99+
.activity-header {
100100
display: flex;
101101
justify-content: space-between;
102102
align-items: center;
103103
margin-bottom: 15px;
104104
}
105105

106-
.reward-claims-header h5 {
106+
.activity-header h5 {
107107
margin: 0;
108108
font-size: 16px;
109109
font-weight: 600;
110110
color: white;
111111
}
112112

113-
.reward-claims-nav {
113+
.activity-nav {
114114
display: flex;
115115
gap: 8px;
116116
}
117117

118-
.reward-claims-nav button {
118+
.activity-nav button {
119119
background: rgba(255, 255, 255, 0.08);
120120
border: 1px solid rgba(255, 255, 255, 0.1);
121121
border-radius: 8px;
@@ -130,11 +130,11 @@
130130
transition: background 0.2s;
131131
}
132132

133-
.reward-claims-nav button:hover {
133+
.activity-nav button:hover {
134134
background: rgba(255, 255, 255, 0.15);
135135
}
136136

137-
.reward-claims-carousel {
137+
.activity-carousel {
138138
display: flex;
139139
gap: 14px;
140140
overflow-x: auto;
@@ -144,11 +144,11 @@
144144
padding-bottom: 4px;
145145
}
146146

147-
.reward-claims-carousel::-webkit-scrollbar {
147+
.activity-carousel::-webkit-scrollbar {
148148
display: none;
149149
}
150150

151-
.reward-claim-card {
151+
.activity-card {
152152
flex: 0 0 230px;
153153
scroll-snap-align: start;
154154
background: rgba(255, 255, 255, 0.04);
@@ -158,87 +158,109 @@
158158
transition: border-color 0.2s;
159159
}
160160

161-
.reward-claim-card:hover {
161+
.activity-card:hover {
162162
border-color: rgba(255, 255, 255, 0.2);
163163
}
164164

165-
.reward-claim-card-top {
165+
.activity-card-top {
166166
display: flex;
167167
align-items: center;
168168
gap: 10px;
169169
margin-bottom: 12px;
170170
}
171171

172-
.reward-claim-protocol {
172+
.activity-protocol {
173173
font-size: 12px;
174174
font-weight: 600;
175175
color: rgba(255, 255, 255, 0.5);
176176
text-transform: uppercase;
177177
letter-spacing: 0.5px;
178178
}
179179

180-
.reward-claim-amount {
180+
.activity-type {
181+
margin-left: auto;
182+
font-size: 10px;
183+
font-weight: 600;
184+
text-transform: uppercase;
185+
letter-spacing: 0.5px;
186+
padding: 2px 7px;
187+
border-radius: 4px;
188+
}
189+
190+
.activity-type.claimed {
191+
color: #50e3c2;
192+
background: rgba(80, 227, 194, 0.12);
193+
}
194+
195+
.activity-type.delegated {
196+
color: #7b9cff;
197+
background: rgba(123, 156, 255, 0.12);
198+
}
199+
200+
.activity-amount {
181201
font-size: 20px;
182202
font-weight: 700;
183-
color: #50e3c2;
184203
margin-bottom: 14px;
185204
}
186205

187-
.reward-claim-symbol {
206+
.activity-amount.reward {
207+
color: #50e3c2;
208+
}
209+
210+
.activity-symbol {
188211
font-size: 13px;
189212
font-weight: 500;
190213
color: rgba(255, 255, 255, 0.5);
191214
}
192215

193-
.reward-claim-details {
216+
.activity-details {
194217
display: flex;
195218
flex-direction: column;
196219
gap: 6px;
197220
margin-bottom: 12px;
198221
}
199222

200-
.reward-claim-row {
223+
.activity-row {
201224
display: flex;
202225
align-items: center;
203226
gap: 8px;
204227
font-size: 13px;
205228
}
206229

207-
.reward-claim-label {
230+
.activity-label {
208231
color: rgba(255, 255, 255, 0.35);
209232
font-size: 12px;
210233
min-width: 20px;
211234
}
212235

213-
.reward-claim-time {
236+
.activity-time {
214237
font-size: 12px;
215238
color: rgba(255, 255, 255, 0.35);
216239
}
217240

218241
/* MOBILE OVERRIDES */
219242

220243
@media only screen and (max-width: 767px) {
221-
/* Tighter reward claim cards */
222-
.reward-claim-card {
244+
.activity-card {
223245
flex: 0 0 190px;
224246
padding: 14px;
225247
border-radius: 10px;
226248
}
227249

228-
.reward-claim-card-top {
250+
.activity-card-top {
229251
margin-bottom: 8px;
230252
}
231253

232-
.reward-claim-amount {
254+
.activity-amount {
233255
font-size: 17px;
234256
margin-bottom: 10px;
235257
}
236258

237-
.reward-claim-details {
259+
.activity-details {
238260
margin-bottom: 8px;
239261
}
240262

241-
.reward-claims-carousel {
263+
.activity-carousel {
242264
gap: 10px;
243265
scroll-padding-left: 0;
244266
}

src/components/sections/hero.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import profile from "../../assets/images/about/profile.svg"
66
import SlideUp from '../../utils/animations/slideUp'
77
import ServerError from '../ui/serverError'
88
import DelegationSummary from '../ui/delegationSummary'
9-
import RewardClaims from '../ui/rewardClaims'
9+
import RecentActivity from '../ui/recentActivity'
1010
import { REFRESH_QUERY_SLOW_MS } from '~/constants'
1111

1212

@@ -29,7 +29,7 @@ const Hero = () => {
2929
</SlideUp>
3030
<SlideUp>
3131
<div className="about-content-part-bottom">
32-
<RewardClaims data={data} isLoading={isLoading} error={error} />
32+
<RecentActivity data={data} isLoading={isLoading} error={error} />
3333
</div>
3434
</SlideUp>
3535
</>

src/components/ui/delegationUpdates.tsx

Lines changed: 0 additions & 70 deletions
This file was deleted.

0 commit comments

Comments
 (0)