Skip to content

Commit 1d7caad

Browse files
authored
Merge pull request #2982 from XRPLF/use-cases-logo-sizing
Refactor use cases page styling and modal layout
2 parents 9c96d20 + bb72274 commit 1d7caad

File tree

3 files changed

+76
-33
lines changed

3 files changed

+76
-33
lines changed

about/uses.page.tsx

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import arrow from "../static/js/ecosystem/arrow-animation.json";
77
export const frontmatter = {
88
seo: {
99
title: 'Use Cases & Featured Projects',
10-
description: "Heres how the XRP Ledger is used to power innovative technology across the payments and public blockchain landscape.",
10+
description: "Here's how the XRP Ledger is used to power innovative technology across the payments and public blockchain landscape.",
1111
}
1212
};
1313

@@ -247,7 +247,7 @@ const cardsData = [
247247
id: "Edge",
248248
title: "Edge",
249249
description:
250-
"Edge is a secure, easy, and private way to use, store, trade, and exchange crypto assets. Edge ensures sure youre always in control of your money and information while also providing the tools necessary to protect yourself from others and your own mistakes. Edge has rich functionality, a battle-tested security architecture, and the industrys best customer support.",
250+
"Edge is a secure, easy, and private way to use, store, trade, and exchange crypto assets. Edge ensures sure you're always in control of your money and information while also providing the tools necessary to protect yourself from others and your own mistakes. Edge has rich functionality, a battle-tested security architecture, and the industry's best customer support.",
251251
category_id: "wallet",
252252
category_name: "Wallet",
253253
link: "https://edge.app/ripple-wallet/",
@@ -430,89 +430,89 @@ const uses = [
430430
title: "Infrastructure",
431431
number: 7,
432432
description:
433-
"Build and operate components or systems that help the functionality of the XRP Ledger, such as Nodes, dev tools, storage, security and more.",
433+
"Build and operate components or systems that help the functionality of the XRP Ledger, such as Nodes, dev tools, storage, security and more."
434434
},
435435

436436
{
437437
id: "developer_tooling",
438438
title: "Developer Tooling",
439439
number: 4,
440440
description:
441-
"Developers can leverage open-source libraries, SDKs and more to help build their project and access essential XRP Ledger functionality.",
441+
"Developers can leverage open-source libraries, SDKs and more to help build their project and access essential XRP Ledger functionality."
442442
},
443443
{
444444
id: "interoperability",
445445
title: "Interoperability",
446446
number: 1,
447447
description:
448-
"Developers and node operators can build and run custom sidechains while leveraging the XRPLs lean and efficient feature set.",
448+
"Developers and node operators can build and run custom sidechains while leveraging the XRPL's lean and efficient feature set."
449449
},
450450
{
451451
id: "wallet",
452452
title: "Wallet",
453453
number: 4,
454454
description:
455-
"Build digital wallets to store passwords and interact with various blockchains to send and receive digital assets, including XRP.",
455+
"Build digital wallets to store passwords and interact with various blockchains to send and receive digital assets, including XRP."
456456
},
457457
{
458458
id: "nfts",
459459
title: "NFTs",
460460
number: 7,
461461
description:
462-
"XRPL supports the issuance of IOUs that represent a currency of any value, as well as non-fungible tokens (NFTs).",
462+
"XRPL supports the issuance of IOUs that represent a currency of any value, as well as non-fungible tokens (NFTs)."
463463
},
464464
{
465465
id: "exchanges",
466466
title: "Exchanges",
467467
number: 5,
468468
description:
469-
"Build sophisticated exchanges where users can invest and trade crypto and assets such as stocks, ETFs, and commodities.",
469+
"Build sophisticated exchanges where users can invest and trade crypto and assets such as stocks, ETFs, and commodities."
470470
},
471471
{
472472
id: "gaming",
473473
title: "Gaming",
474474
number: 4,
475475
description:
476-
"The XRPL supports gaming at high speed given its reliable throughput, low fees, and sidechain interoperability.",
476+
"The XRPL supports gaming at high speed given its reliable throughput, low fees, and sidechain interoperability."
477477
},
478478
{
479479
id: "security",
480480
title: "Security",
481481
number: 1,
482482
description:
483-
"Build services and tools that help prevent and combat fraudulent activity with the XRPL.",
483+
"Build services and tools that help prevent and combat fraudulent activity with the XRPL."
484484
},
485485

486486
{
487487
id: "payments",
488488
title: "Payments",
489489
number: 2,
490490
description:
491-
"Leverage the efficiency and speed of the XRP Ledger to move value all over the globe.",
491+
"Leverage the efficiency and speed of the XRP Ledger to move value all over the globe."
492492
},
493493

494494
{
495495
id: "cbdc",
496496
title: "CBDC",
497497
number: 1,
498498
description:
499-
"A private version of the XRP Ledger provides Central Banks a secure, controlled, and flexible solution to issue and manage Central Bank Issued Digital Currencies (CBDCs).",
499+
"A private version of the XRP Ledger provides Central Banks a secure, controlled, and flexible solution to issue and manage Central Bank Issued Digital Currencies (CBDCs)."
500500
},
501501

502502
{
503503
id: "sustainability",
504504
title: "Sustainability",
505505
number: 1,
506506
description:
507-
"Use the XRP Ledger to tokenize carbon offsets as non-fungible tokens (NFTs).",
507+
"Use the XRP Ledger to tokenize carbon offsets as non-fungible tokens (NFTs)."
508508
},
509509

510510
{
511511
id: "custody",
512512
title: "Custody",
513513
number: 2,
514514
description:
515-
"Use the XRP Ledger to build crypto custody and securely hold, store and use your assets.",
515+
"Use the XRP Ledger to build crypto custody and securely hold, store and use your assets."
516516
},
517517
];
518518

@@ -601,10 +601,9 @@ export default function Uses() {
601601
}, [theme]);
602602
const [modalData, setModalData] = React.useState({
603603
id: "",
604-
src: "",
605604
title: "",
606605
description: "",
607-
number: "",
606+
number: ""
608607
});
609608
const { View } = useLottie(options);
610609

@@ -791,7 +790,7 @@ export default function Uses() {
791790
</ul>
792791
</section>
793792
<div
794-
className={`modal modal-uses ${displayModal ? "d-block" : ""}`}
793+
className={`modal modal-uses ${modalData?.id} ${displayModal ? "d-block" : ""}`}
795794
id="myModal"
796795
>
797796
<div

static/css/devportal2024-v1.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

styles/_use-cases.scss

Lines changed: 59 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,31 @@ $custody-logos: "gatehub", "bitgo";
2828
}
2929
}
3030
}
31-
31+
.modal-uses.exchanges{
32+
.logo-item{
33+
max-height: 58px;
34+
margin: 5px;
35+
width: 145px;
36+
height: 28px;
37+
max-width: none;
38+
}
39+
}
3240
.modal-content-uses {
41+
.carbonland-trust{
42+
max-width: 218px;
43+
}
3344
.first-ledger-bot{
34-
min-height: 80px !important;
45+
min-height: 100px !important;
3546
position: relative;
3647
bottom: 20px;
3748
content: url("../img/uses/first-ledger-bot.svg");
3849
}
3950
.orchestra-finance{
51+
min-height: 56px !important;
4052
content: url("../img/uses/orchestra-finance.svg");
4153
}
4254
.moai-finance{
43-
min-height: 80px !important;
55+
min-height: 100px !important;
4456
position: relative;
4557
bottom: 20px;
4658
content: url("../img/uses/moai-finance.svg");
@@ -186,20 +198,24 @@ html.light {
186198
}
187199

188200
.modal-content-uses {
201+
padding-top: 40px;
189202
position: relative;
190-
/* Add position: relative to modal-content-uses */
191203
background-color: #232325;
192204
position: absolute;
193205
left: 50%;
194206
top: 50%;
195207
transform: translate(-50%, -50%);
196-
padding: 20px;
208+
padding: 40px 20px 20px 20px;
197209
width: 60% !important;
198-
height: 60%;
210+
height: 520px;
199211
display: flex;
200212
flex-direction: column;
201213
align-items: center;
202-
overflow: scroll;
214+
overflow-y: hidden;
215+
216+
@media only screen and (max-width: 1024px) {
217+
overflow-y: auto;
218+
}
203219
}
204220

205221
.modal-content-uses::before {
@@ -293,10 +309,13 @@ html.light {
293309
border: 0;
294310
border-top: 1px solid #ccc;
295311
}
296-
312+
.logo-item.anchain {
313+
height: 34px !important;
314+
max-width: 146px !important;
315+
}
297316
.threezy-logo {
298317
margin: 4px;
299-
max-height: 38px;
318+
max-height: 55px !important;
300319
}
301320

302321
.blockforce-logo {
@@ -325,16 +344,29 @@ html.light {
325344
.bottom-row {
326345
display: flex;
327346
justify-content: center;
347+
align-items: center;
348+
gap: 20px;
349+
flex-wrap: wrap;
328350

329351
@media only screen and (max-width: 768px) {
330-
flex-wrap: wrap;
352+
justify-content: space-around;
353+
gap: 10px;
354+
margin-bottom: 0;
331355
}
332356
}
333357

358+
.top-row {
359+
margin-bottom: 10px;
360+
}
361+
362+
.bottom-row {
363+
margin-top: 10px;
364+
}
365+
334366
.logo-item {
335-
max-height: 30px;
336-
max-width: 130px;
337-
margin: 10px 11px;
367+
max-height: 45px;
368+
max-width: 108px;
369+
margin: 5px;
338370
}
339371

340372
.close {
@@ -362,9 +394,11 @@ html.light {
362394
@include media-breakpoint-up(lg) {
363395
grid-template-columns: repeat(4, 1fr);
364396
}
365-
}
366-
367397

398+
@media (max-width: 1220px) and (min-width: 1024px) {
399+
grid-template-columns: repeat(3, 1fr); // Adjust to 3 columns for screens between 1024px and 1220px
400+
}
401+
}
368402

369403
.use-case-circle {
370404
display: flex;
@@ -947,3 +981,13 @@ html.light {
947981
display: block;
948982
}
949983
}
984+
985+
body, .landing.page-uses {
986+
overflow-x: hidden; // Prevent horizontal scrolling
987+
}
988+
989+
.container-new {
990+
max-width: 100%; // Ensure container does not exceed viewport width
991+
padding: 0 15px; // Add padding to ensure content is not flush with the edges
992+
box-sizing: border-box; // Include padding in the element's total width
993+
}

0 commit comments

Comments
 (0)