mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 11:45:50 +00:00
Merge branch 'master' into redocly-rc-migration
This commit is contained in:
@@ -10,7 +10,7 @@ import { Search } from "@redocly/theme/components/Search/Search";
|
||||
// @ts-ignore
|
||||
|
||||
const alertBanner = {
|
||||
show: true,
|
||||
show: false,
|
||||
message: "XRP Ledger Apex is back in Amsterdam",
|
||||
button: "Register Now",
|
||||
link: "https://www.xrpledgerapex.com/?utm_source=email&utm_medium=email_marketing&utm_campaign=EVENTS_XRPL_Apex_2024_Q2&utm_term=events_page_cta_button",
|
||||
@@ -92,7 +92,7 @@ export function Navbar(props) {
|
||||
button={alertBanner.button}
|
||||
link={alertBanner.link}
|
||||
/>
|
||||
<NavWrapper belowAlertBanner={true}>
|
||||
<NavWrapper belowAlertBanner={alertBanner.show}>
|
||||
<LogoBlock to={href} img={logo} alt={altText} />
|
||||
<NavControls>
|
||||
<MobileMenuIcon />
|
||||
@@ -116,31 +116,37 @@ export function Navbar(props) {
|
||||
);
|
||||
}
|
||||
|
||||
export function AlertBanner(props) {
|
||||
const { message, button, link } = props;
|
||||
return (
|
||||
<div className="top-banner fixed-top">
|
||||
<div className="inner-apex">
|
||||
<span>
|
||||
<p className="mb-0 apex-banner-text">{message}</p>
|
||||
</span>
|
||||
<span>
|
||||
<Link to={link} target="_blank" className="apex-btn">
|
||||
{button}
|
||||
</Link>
|
||||
</span>
|
||||
const StyledColorModeSwitcher = styled(ColorModeSwitcher)`
|
||||
padding: 10px;
|
||||
`;
|
||||
|
||||
export function AlertBanner({ message, button, link, show }) {
|
||||
if (show) {
|
||||
return (
|
||||
<div className="top-banner fixed-top">
|
||||
<div className="inner-apex">
|
||||
<span>
|
||||
<p className="mb-0 apex-banner-text">{message}</p>
|
||||
</span>
|
||||
<span>
|
||||
<Link to={link} target="_blank" className="apex-btn">
|
||||
{button}
|
||||
</Link>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
export function TopNavCollapsible(props) {
|
||||
export function TopNavCollapsible({children}) {
|
||||
return (
|
||||
<div
|
||||
className="collapse navbar-collapse justify-content-between"
|
||||
id="top-main-nav"
|
||||
>
|
||||
{props.children}
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -171,7 +177,9 @@ export function NavDropdown(props) {
|
||||
|
||||
return (
|
||||
<div key={index} className={clnm}>
|
||||
<h5 className="dropdown-item">{translate(item.labelTranslationKey, item.label)}</h5>
|
||||
<h5 className="dropdown-item">
|
||||
{translate(item.labelTranslationKey, item.label)}
|
||||
</h5>
|
||||
{groupLinks}
|
||||
</div>
|
||||
);
|
||||
@@ -184,7 +192,7 @@ export function NavDropdown(props) {
|
||||
hero_href = pathPrefix + hero_href;
|
||||
}
|
||||
const splitlabel = item.label.split(" || ");
|
||||
let splittranslationkey = ["",""]
|
||||
let splittranslationkey = ["", ""];
|
||||
if (item.labelTranslationKey) {
|
||||
splittranslationkey = item.labelTranslationKey.split(" || ");
|
||||
}
|
||||
@@ -228,7 +236,7 @@ export function NavDropdown(props) {
|
||||
<li className="nav-item dropdown">
|
||||
<a
|
||||
className="nav-link dropdown-toggle"
|
||||
to="#"
|
||||
href="#"
|
||||
id={toggler_id}
|
||||
role="button"
|
||||
data-toggle="dropdown"
|
||||
|
||||
Reference in New Issue
Block a user