Refactor payments and index pages to integrate BenefitsSection component

- Replaced the manual benefits list in the index page with the BenefitsSection component for improved maintainability.
- Added BenefitsSection to the payments page, showcasing embedded payment use cases with new card data.
- Updated ProjectCards component to support optional button text for enhanced project presentation.
- Introduced new CSS styles for embedded payments icons and battle-tested project cards for better visual consistency.
This commit is contained in:
akcodez
2025-08-26 07:38:18 -07:00
parent e94a5a0269
commit 9e2b88fbb8
13 changed files with 245 additions and 22 deletions

View File

@@ -89,6 +89,33 @@
}
}
// Payments page specific embedded payments icons
#embedded-payments-list {
#digital-wallets {
content: url("../img/uses/payments/digital-wallet.png");
}
#cross-border-remittance {
content: url("../img/uses/payments/cross-border.png");
}
#regulated-foreign-exchange {
content: url("../img/uses/payments/regulated.png");
}
#merchant-settlement {
content: url("../img/uses/payments/merchant-settlement.png");
}
#b2b-payment-rails {
content: url("../img/uses/payments/b2b-payment.png");
}
#compliance-first-payment-acceptance {
content: url("../img/uses/payments/compliance.png");
}
}
.cta {
position: absolute;

View File

@@ -1083,6 +1083,9 @@ body,
background-color: transparent;
white-space: normal;
box-sizing: border-box;
.card-title{
margin-bottom: 16px;
}
}
.security-card::before {
@@ -1150,7 +1153,6 @@ body,
padding: 0;
margin: 0;
}
.advantage-item {
position: relative;
padding-left: 20px;
@@ -1161,7 +1163,6 @@ body,
position: absolute;
left: 0;
top: 0;
color: #7919FF;
font-weight: bold;
font-size: 16px;
}
@@ -1226,7 +1227,6 @@ body,
position: relative;
padding: 32px;
.project-description {
padding: 0 1rem;
text-align: left; /* Changed from center to left */
.first-word {
@@ -1307,4 +1307,75 @@ body,
&.even::before {
background: linear-gradient(90deg, #4BB7FF -0.32%, #32E685 30.61%);
}
}
/* Battle-tested section styles */
.use-case-payments .battle-tested-section {
h4.eyebrow {
font-size: 28px !important;
}
.payments-project-card {
/* Override styles for battle-tested cards */
min-height: 384px;
display: flex;
flex-direction: column;
.project-logo img {
/* Placeholder images - use standard sizing */
width: 120px;
height: 60px;
background-color: #333;
border-radius: 8px;
content: "";
}
.project-description {
flex-grow: 1;
}
.project-button {
margin-top: auto;
padding-top: 32px;
display: flex;
justify-content: center;
.battle-tested-arrow {
color: #9A52FF;
font-size: 16px;
font-style: normal;
font-weight: 700;
text-decoration: none;
cursor: pointer;
display: inline-flex;
align-items: center;
background: none !important;
&::after {
position: relative;
top: -1px;
display: inline-block;
content: url('../img/icons/arrow-right-purple.svg');
margin-left: 8px;
transition: transform 0.3s ease-out;
width: 16px;
height: 16px;
}
&:hover {
text-decoration: none;
background: none !important;
&::after {
transform: translateX(4px);
}
}
&:focus {
background: none !important;
outline: none;
}
}
}
}
}