Compare commits

...

7 Commits

Author SHA1 Message Date
Rome Reginelli
8d2d3850ec Merge pull request #3368 from XRPLF/rwa-updates
Refactor RWA tokenization buttons
2025-10-29 12:20:26 -07:00
akcodez
c7961f692e use Link component for link 2025-10-29 12:17:21 -07:00
akcodez
dbcdb508aa add arrow to get started now 2025-10-29 12:15:59 -07:00
akcodez
982386d0f6 Update CompanyLogo component to use anchor tag for external links, enhancing accessibility and security with target and rel attributes. 2025-10-29 07:36:34 -07:00
akcodez
9dde1114ca remove arrow from internal link 2025-10-29 07:32:47 -07:00
akcodez
4ee47a63dc fix css build issues 2025-10-29 07:29:41 -07:00
akcodez
5f3dc85e5b Refactor tokenization page layout and styles; update button structure and link behavior for improved responsiveness and user experience. 2025-10-27 12:11:40 -07:00
3 changed files with 65 additions and 23 deletions

View File

@@ -162,9 +162,7 @@ function RwaTokenizationFeatures() {
<div className="container max-w-1150"> <div className="container max-w-1150">
<header className="rwa-header"> <header className="rwa-header">
<h2 className="rwa-title"> <h2 className="rwa-title">
{translate( {translate("Defining Features on XRPL")}
"Defining Features on XRPL"
)}
</h2> </h2>
</header> </header>
<div className="feature-grid"> <div className="feature-grid">
@@ -239,8 +237,10 @@ function DeveloperTools() {
function CompanyLogo({ className, alt, aspectRatio, link }) { function CompanyLogo({ className, alt, aspectRatio, link }) {
return ( return (
<div <Link
onClick={() => window.open(link, "_blank")} to={link}
target="_blank"
rel="noopener noreferrer"
className={`company-logo ${className}`} className={`company-logo ${className}`}
role="img" role="img"
aria-label={alt} aria-label={alt}
@@ -255,9 +255,7 @@ function UpcomingEvents() {
<section className="token-events-wrapper"> <section className="token-events-wrapper">
<div className="upcoming-events"> <div className="upcoming-events">
<h2 className="upcoming-events__title"> <h2 className="upcoming-events__title">
{translate( {translate("Trusted by Leaders in Real-World Asset Tokenization")}
"Trusted by Leaders in Real-World Asset Tokenization"
)}
</h2> </h2>
<div className="upcoming-events__logo-container"> <div className="upcoming-events__logo-container">
{companies.map((company, index) => ( {companies.map((company, index) => (
@@ -412,14 +410,20 @@ function TokenHeroSection() {
<h1 className="token-title"> <h1 className="token-title">
{translate("Real-World Asset (RWA) Tokenization")} {translate("Real-World Asset (RWA) Tokenization")}
</h1> </h1>
<div className="d-lg-block small-100 "> <div className="button-container">
<Link <Link
className="btn btn-primary btn-arrow-out" className="btn btn-primary p-12 btn-arrow-out"
target="_blank" target="_blank"
to="/docs/use-cases/tokenization/creating-an-asset-backed-multi-purpose-token" to="/static/pdf/Whitepaper_the_future_of_asset_tokenization.pdf"
> >
{translate("Get Started Now")} {translate("Get Started Now")}
</Link> </Link>
<Link
className="internal-link"
to="/docs/use-cases/tokenization/creating-an-asset-backed-multi-purpose-token"
>
{translate("Explore Institutional Solutions")}
</Link>
</div> </div>
</div> </div>
</section> </section>
@@ -467,7 +471,7 @@ export default function RwaTokenization() {
url: "https://xrplresources.org/subscribe", url: "https://xrplresources.org/subscribe",
}, },
], ],
backgroundClass: "learn-stay-updated" backgroundClass: "learn-stay-updated",
}, },
]; ];

File diff suppressed because one or more lines are too long

View File

@@ -1514,17 +1514,55 @@ html.light {
} }
.token-title-container { .token-title-container {
gap: 32px; gap: 32px;
padding: 104px 40px; padding: 104px 40px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@media (max-width: 767px) {
padding-bottom: 0px; .button-container {
display: flex;
flex-wrap: wrap;
gap: 32px;
justify-content: center;
align-items: center;
.internal-link {
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;
}
@media (max-width: 767px) {
padding-bottom: 0px;
gap: 16px;
flex-direction: column;
width: 100%;
.btn-primary.p-12 {
width: 100%;
}
.internal-link {
width: 100%;
text-align: center;
white-space: normal;
}
}
.btn-primary.p-12 {
padding: 12px;
}
}
} }
}
.token-video-container { .token-video-container {
padding: 104px 64px; padding: 104px 64px;