Skip to content

Commit 460facb

Browse files
committed
ui-improvements
1 parent eb088c0 commit 460facb

File tree

4 files changed

+124
-14
lines changed

4 files changed

+124
-14
lines changed

packages/grant-explorer/src/features/attestations/MintYourImpactComponents.tsx

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,22 +160,28 @@ export const ImpactMintingSuccess = ({
160160
} = useGetImages(impactImageCid ? [impactImageCid] : [], !!impactImageCid);
161161

162162
return isShareButtonsAbove ? (
163-
<>
164-
<ShareButtons attestationLink={attestationLink} />
163+
<div className="flex flex-col items-center gap-6">
164+
<ShareButtons
165+
attestationLink={attestationLink}
166+
isTop={isShareButtonsAbove}
167+
/>
165168
<ImageWithLoading
166169
src={image?.[0]}
167170
isLoading={isLoading || !image || !impactImageCid || isFetching}
168171
sizeClass={imageSize}
169172
/>
170-
</>
173+
</div>
171174
) : (
172-
<>
175+
<div className="flex flex-col items-center gap-6">
173176
<ImageWithLoading
174177
src={image?.[0]}
175178
isLoading={isLoading || !image || !impactImageCid || isFetching}
176179
sizeClass={imageSize}
177180
/>
178-
<ShareButtons attestationLink={attestationLink} />
179-
</>
181+
<ShareButtons
182+
attestationLink={attestationLink}
183+
isTop={isShareButtonsAbove}
184+
/>
185+
</div>
180186
);
181187
};

packages/grant-explorer/src/features/common/components/ImageWithLoading.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export const ImageWithLoading = ({
1717
return (
1818
<div
1919
{...props}
20-
className={`bg-cover bg-center bg-gray-200 dark:bg-gray-800 ${sizeClass} ${blurClass} ${loadingClass}`}
20+
className={`bg-cover bg-center bg-transparent ${sizeClass} ${blurClass} ${loadingClass}`}
2121
style={{ backgroundImage: `url("${src || ""}")` }} // Use src if available, otherwise keep it empty
2222
/>
2323
);

packages/grant-explorer/src/features/round/ThankYou.tsx

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ export default function ThankYou() {
220220
</div>
221221
</div>
222222
</div>
223+
<div className="fixed -bottom-6 right-11 w-full z-20">
224+
<Footer />
225+
</div>
223226
</div>
224227
)}
225228
</div>
@@ -240,13 +243,21 @@ export default function ThankYou() {
240243
imageSize="size-[520px]"
241244
attestationLink={attestationLink ?? ""}
242245
/>
243-
<div className="my-2 z-50">
246+
<div className="flex flex-wrap gap-6 my-2 z-50">
244247
<RainbowBorderButton
245248
dataTestId="view-transaction-button"
246249
onClick={onViewTransaction}
247250
>
248251
View attestation
249252
</RainbowBorderButton>
253+
<button
254+
className="blue-background-button font-medium font-mono"
255+
onClick={() => {
256+
window.open("https://explorer.gitcoin.co/", "_blank");
257+
}}
258+
>
259+
Return to Explorer
260+
</button>
250261
</div>
251262
</div>
252263
) : (
@@ -255,12 +266,12 @@ export default function ThankYou() {
255266
roundName={round?.roundMetadata?.name ?? ""}
256267
isMrc={isMrc}
257268
/>
269+
<div className="fixed -bottom-6 right-11 w-full z-20">
270+
<Footer />
271+
</div>
258272
</div>
259273
)}
260274
</main>
261-
<div className="fixed -bottom-6 right-11 w-full z-20">
262-
<Footer />
263-
</div>
264275

265276
{/* Progress Modal */}
266277
{transactions.length > 0 && (

packages/grant-explorer/src/index.css

Lines changed: 96 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,100 @@
130130
animation: reverse-spin 1s linear infinite;
131131
}
132132

133-
.threeProjectsPadding {
134-
padding-top: 1.33rem;
135-
padding-bottom: 1.33rem;
133+
.icon-button {
134+
position: relative;
135+
align-items: center;
136+
background-color: #ffffff;
137+
border: 1px solid transparent;
138+
margin: 1px;
139+
border-radius: 24px;
140+
cursor: pointer;
141+
width: 48px;
142+
height: 48px;
143+
display: flex;
144+
justify-content: center;
136145
}
146+
147+
.icon-button:hover {
148+
background: linear-gradient(
149+
170deg,
150+
#ffd6c9 10%,
151+
#b8d9e7 40%,
152+
#abe3eb 60%,
153+
#f2dd9e 90%
154+
);
155+
box-shadow: none;
156+
}
157+
158+
.icon {
159+
width: 20px;
160+
height: 20px;
161+
}
162+
163+
.rainbow-border-icon {
164+
display: flex;
165+
align-items: center;
166+
justify-content: center;
167+
border-radius: 24px;
168+
background-image: linear-gradient(
169+
170deg,
170+
#ffd6c9 10%,
171+
#b8d9e7 40%,
172+
#abe3eb 60%,
173+
#f2dd9e 90%
174+
);
175+
}
176+
177+
.blue-background-button {
178+
display: flex;
179+
align-items: center;
180+
justify-content: center;
181+
border-radius: 8px;
182+
background-color: #3c6c90;
183+
border: none;
184+
border-radius: 8px;
185+
font-weight: 500;
186+
font-size: 14px;
187+
line-height: 20px;
188+
color: white;
189+
height: 32px;
190+
width: 187px;
191+
white-space: nowrap;
192+
cursor: pointer;
193+
}
194+
195+
.blue-background-button:hover {
196+
box-shadow:
197+
0 4px 6px -1px rgba(0, 0, 0, 0.1),
198+
0 2px 4px -1px rgba(0, 0, 0, 0.06);
199+
}
200+
201+
202+
.copytooltip-top {
203+
position: absolute;
204+
bottom: 74%;
205+
left: 54.5%;
206+
background-color: black;
207+
color: white;
208+
font-size: 0.75rem;
209+
border-radius: 0.25rem;
210+
padding: 0.25rem 0.5rem;
211+
z-index: 10;
212+
white-space: nowrap;
213+
margin-bottom: 25px;
214+
}
215+
216+
217+
.copytooltip-bottom {
218+
position: absolute;
219+
bottom: 11%;
220+
left: 54%;
221+
background-color: black;
222+
color: white;
223+
font-size: 0.75rem;
224+
border-radius: 0.25rem;
225+
padding: 0.25rem 0.5rem;
226+
z-index: 10;
227+
white-space: nowrap;
228+
margin-bottom: 25px;
229+
}

0 commit comments

Comments
 (0)