mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-12-06 17:27:57 +00:00
Refactor use-case end cards to use bg images
This commit is contained in:
@@ -185,7 +185,8 @@ const PaymentsPage: React.FC = () => {
|
|||||||
text: "Share Your Work",
|
text: "Share Your Work",
|
||||||
url: "https://discord.gg/sfX3ERAMjH"
|
url: "https://discord.gg/sfX3ERAMjH"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
backgroundClass: "developer-spotlight"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Learn & Stay Updated",
|
title: "Learn & Stay Updated",
|
||||||
@@ -199,7 +200,8 @@ const PaymentsPage: React.FC = () => {
|
|||||||
text: "Sign up for the Newsletter",
|
text: "Sign up for the Newsletter",
|
||||||
url: "https://xrplresources.org/subscribe"
|
url: "https://xrplresources.org/subscribe"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
backgroundClass: "learn-stay-updated"
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -467,6 +467,7 @@ export default function RwaTokenization() {
|
|||||||
url: "https://xrplresources.org/subscribe",
|
url: "https://xrplresources.org/subscribe",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
backgroundClass: "learn-stay-updated"
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -27,14 +27,10 @@ export const DeveloperResourcesSection: React.FC<DeveloperResourcesSectionProps>
|
|||||||
const isSingleCard = cards.length === 1;
|
const isSingleCard = cards.length === 1;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={` container developer-resources-section page-community ${className} ${isSingleCard ? 'single-card' : ''}`}>
|
<div className={`container developer-resources-section page-community ${className} ${isSingleCard ? 'single-card' : ''}`}>
|
||||||
<section className="bottom-cards-section bug-bounty section-padding">
|
<section className="bottom-cards-section bug-bounty section-padding">
|
||||||
{cards.map((card, index) => (
|
{cards.map((card, index) => (
|
||||||
<div key={index} className={`com-card ${isSingleCard ? 'single-card' : ''}`}>
|
<div key={index} className={`com-card ${card.backgroundClass || ''}`}>
|
||||||
<img
|
|
||||||
className={`${isSingleCard ? 'bottom-right-img' : (index === 0 ? 'top-right-img' : 'bottom-right-img')} ${isSingleCard ? 'bug-bounty-card-bg-2' : `bug-bounty-card-bg${index === 0 ? '' : '-2'}`} ${card.backgroundClass || ''}`}
|
|
||||||
alt={`${card.title} Background`}
|
|
||||||
/>
|
|
||||||
<div className="card-content custom-gap">
|
<div className="card-content custom-gap">
|
||||||
<h6 className="card-title">{translate(card.title)}</h6>
|
<h6 className="card-title">{translate(card.title)}</h6>
|
||||||
<p className="card-description">
|
<p className="card-description">
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Binary file not shown.
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 36 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 32 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 12 KiB |
@@ -2135,10 +2135,10 @@ html.light {
|
|||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
|
|
||||||
@media (min-width: 768px) {
|
@media (min-width: 768px) {
|
||||||
flex: 1 1 calc(50% - 20px) !important;
|
flex: 1 1 calc(50% - 20px);
|
||||||
max-width: calc(50% - 20px) !important;
|
max-width: calc(50% - 20px);
|
||||||
min-width: calc(50% - 20px) !important;
|
min-width: calc(50% - 20px);
|
||||||
width: auto !important;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
@@ -2149,18 +2149,21 @@ html.light {
|
|||||||
flex: none !important;
|
flex: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Single card layout styles
|
&.developer-spotlight {
|
||||||
&.single-card {
|
background-image: url(../img/community/bug-bounty-card-bg.png);
|
||||||
font-size: 24px;
|
background-position: top right;
|
||||||
max-height: 288px !important;
|
background-size: 169px 88px;
|
||||||
@media (max-width: 768px) {
|
background-repeat: no-repeat;
|
||||||
min-height: 493px !important;
|
|
||||||
}
|
}
|
||||||
@media (min-width: 768px) {
|
&.learn-stay-updated {
|
||||||
|
background-image: url(../img/community/bug-bounty-card-bg-2.png);
|
||||||
|
background-position: bottom right;
|
||||||
|
background-size: contain;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
|
||||||
flex: 1 1 100% !important;
|
@media (max-width: 767px) {
|
||||||
max-width: 100% !important;
|
background-image: url(../img/community/bug-bounty-card-bg-2-mobile.png);
|
||||||
min-width: 100% !important;
|
background-size: 136px 177px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2205,13 +2208,23 @@ html.light {
|
|||||||
&.single-card {
|
&.single-card {
|
||||||
.bug-bounty-card-bg-2 {
|
.bug-bounty-card-bg-2 {
|
||||||
@media (max-width: 767px) {
|
@media (max-width: 767px) {
|
||||||
content: url("../img/community/bug-bounty-card-bg-2-mobile.png") !important;
|
content: url("../img/community/bug-bounty-card-bg-2-mobile.png");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Single card layout - background image full height and spacing
|
.com-card {
|
||||||
.com-card.single-card {
|
font-size: 24px;
|
||||||
|
max-height: 288px !important;
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
min-height: 493px !important;
|
||||||
|
}
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
flex: 1 1 100% !important;
|
||||||
|
max-width: 100% !important;
|
||||||
|
min-width: 100% !important;
|
||||||
|
}
|
||||||
|
|
||||||
.bottom-right-img.bug-bounty-card-bg-2 {
|
.bottom-right-img.bug-bounty-card-bg-2 {
|
||||||
height: 714px ;
|
height: 714px ;
|
||||||
width: auto;
|
width: auto;
|
||||||
@@ -2240,6 +2253,7 @@ html.light {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.token-utility-section {
|
.token-utility-section {
|
||||||
|
|||||||
Reference in New Issue
Block a user