diff --git a/content/@theme/components/Navbar/Navbar.tsx b/content/@theme/components/Navbar/Navbar.tsx index 6fa7debeedd..e8057087aa0 100644 --- a/content/@theme/components/Navbar/Navbar.tsx +++ b/content/@theme/components/Navbar/Navbar.tsx @@ -24,7 +24,6 @@ export function Navbar(props) { // const [isOpen, setIsOpen] = useMobileMenu(false); const themeConfig = useThemeConfig(); const { changeLanguage } = useI18n(); - const menu = themeConfig.navbar?.items; const logo = themeConfig.logo; diff --git a/content/@theme/helpers.ts b/content/@theme/helpers.ts index 7bf7f4ab06c..8ceb3ae9196 100644 --- a/content/@theme/helpers.ts +++ b/content/@theme/helpers.ts @@ -1,14 +1,53 @@ /** * Slugify function, has to match the formula used in interactive-tutorial.js */ +import { useEffect, useState } from 'react'; + +export const useThemeFromClassList = (classNames) => { + const [currentTheme, setCurrentTheme] = useState(null); + + useEffect(() => { + // Function to update the theme based on the class list + const updateTheme = () => { + for (const className of classNames) { + if (document.documentElement.classList.contains(className)) { + setCurrentTheme(className); + return; + } + } + }; + + // Initial update + updateTheme(); + + // Create an observer instance linked to the callback function + const observer = new MutationObserver(() => { + updateTheme(); + }); + + // Start observing the target node for configured mutations + observer.observe(document.documentElement, { + attributes: true, // Listen for attribute changes + attributeFilter: ['class'], // Specifically, listen only to "class" attribute changes + }); + + // Cleanup: Disconnect the observer + return () => { + observer.disconnect(); + }; + }, [classNames]); + + return currentTheme; +}; + export function slugify(s) { const unacceptable_chars = /[^A-Za-z0-9._ ]+/g; const whitespace_regex = /\s+/g; - s = s.replace(unacceptable_chars, ''); - s = s.replace(whitespace_regex, '_'); + s = s.replace(unacceptable_chars, ""); + s = s.replace(whitespace_regex, "_"); s = s.toLowerCase(); if (!s) { - s = '_'; + s = "_"; } return s; } diff --git a/content/ambassadors.page.tsx b/content/ambassadors.page.tsx new file mode 100644 index 00000000000..b4a926997f6 --- /dev/null +++ b/content/ambassadors.page.tsx @@ -0,0 +1,414 @@ +import * as React from 'react'; +import { useTranslate } from '@portal/hooks'; + +false + +const target= {prefix: ''}; // TODO: fixme + +export default function Ambassadors() { + const { translate } = useTranslate(); + + return ( +
{translate("The XRPL Campus Ambassador program engages, supports, connects, and recognizes a group of student champions of the XRPL and empowers them to further advance engagement on the ledger.")}
+ +{translate("The XRPL Campus Ambassador program aims to elevate the impact of college students who are passionate about blockchain technology. In their role, Campus Ambassadors help educate other students about crypto and how to start building on the XRPL.")}
+{translate("Join a global cohort of students empowering others to build on the XRPL.")}
+{translate(" Get access and invitations to Ambassador-only events, conferences, and opportunities")}
+{translate("Tutorials and workshops from leading XRPL and blockchain developers")}
+{translate("New XRPL swag for Ambassadors and swag to share with other students")}
+{translate("Serve as an advocate and receive support from notable members of the community")}
+{translate("Gain hands-on experience building communities and grow your professional network in the blockchain industry")}
+{translate("Receive a stipend to fund your ideas and initiatives that fuel XRPL growth on your campus")}
+{translate("Tutorials and workshops from leading XRPL and blockchain developers")}
+{translate("Serve as an advocate and receive support from notable members of the community")}
+{translate("Receive a stipend to fund your ideas and initiatives that fuel XRPL growth on your campus")}
+{translate("Students currently enrolled in an undergraduate or postgraduate program at an accredited college or university are eligible to apply.")}
+{translate("Interested in leading meetups and workshops for your local campus community")}
+{translate("An active participant in the XRPL community or interested in blockchain and crypto technologies")}
+{translate("Eager to learn more about technical blockchain topics and the XRPL")}
+{translate("Passionate about increasing XRPL education and awareness through events, content, and classroom engagement")}
+{translate("Ability to think outside the box to grow the XRPL student community")}
+{translate("An active participant in the XRPL community or interested in blockchain and crypto technologies")}
+{translate("Passionate about increasing XRPL education and awareness through events, content, and classroom engagement")}
+Derrick N.
+ Toronto Metropolitan University
+ Spring 2023 XRPL Campus Ambassador
Sally Z.
+ Toronto Metropolitan University
+ Spring 2023 XRPL Campus Ambassador
Nick D.
+ Miami University
+ Spring 2023 XRPL Campus Ambassador
{translate("Apply now to become an XRPL Campus Ambassador.")}
+{translate("Submit an application to be considered for the Campus Ambassador program.")}
+{translate("Tell the XRPL community-led panel more about yourself and your interest in the program during an interview.")}
+{translate("Congrats on your new role! Join the global cohort of Ambassadors and meet with community participants during onboarding.")}
+{translate("Participate in personalized learning and training sessions for Ambassadors on the XRPL and blockchain technology.")}
+{translate("Tell the XRPL community-led panel more about yourself and your interest in the program during an interview.")}
+{translate("Participate in personalized learning and training sessions for Ambassadors on the XRPL and blockchain technology.")}
+{translate("To stay up-to-date on the latest activity, meetups, and events of the XRPL Campus Ambassadors be sure to follow these channels:")}
+{translate("Attend an XRPL Meetup in your local area")}
+{translate("Read more about the activity of the XRPL Ambassadors")}
+{translate("Join the conversation on the XRPL Developer Discord")}
+{cc.desc}
++ {translate( + "The XRPL Grants program funds select open-source projects that solve problems and grow the XRP Ledger community." + )} +
++ {translate( + 'Get featured on the Developer Reflections blog or Blockchain Use Cases page, and explore XRPL community highlights.' + )} +
++ {translate("Welcome to Apex 2021")} +
++ {translate("XRPL Community Meetup")} +
++ {translate("XRPL Hackathon 2022")} +
++ {translate( + "Meet the XRPL community at meetups, hackathons, conferences, and more across global regions." + )} +
+ {/* Mobile. 3 inline images. */} ++ {translate( + "Teams across the XRPL community are looking for talented individuals to help build their next innovation." + )} +
++ {translate( + "Just like the technology itself, XRPL assets are open source and available for anyone to use. Check out this helpful framework for using XRPL visuals. " + )} +
++ {translate( + "Thank you for your interest in contributing to XRPL.org. This website was created as an XRPL community resource and is meant to be a living, breathing source of truth for XRP Ledger resources. This portal is open-source and anyone can suggest changes." + )} +
+ + {translate("Read Contributor Guidelines")} + ++ {translate( + "Use the developer tools to test, explore, and validate XRP Ledger\n API requests and behavior." + )} +
+{card.description}
+{card.description}
+{card.description}
++ {translate( + "Contribute to the XRP Ledger community by submitting your idea for a tool or open a pull request if you've developed a tool." + )} +
+ + {translate("Open a pull Request")} + ++ {translate( + "If you’re a software developer or team looking to build your next project or venture on the XRP Ledger (XRPL), there are a number of opportunities to fund your next innovation." + )} +
++ {translate( + "Hackathons are open to all developers to explore and invent a project on the XRP Ledger. Visit the events page for updates on upcoming hackathons." + )} +
+ ++ {translate( + "Software developers and teams building directly on the XRP Ledger" + )} +
+{translate("Some coding experience")}
+{translate("XRPL beginner to advanced developers")}
+{translate("Prize money and awards")}
+{translate("Some coding experience")}
+{translate("Prize money and awards")}
++ {translate( + "Developer grants for projects that contribute to the growing XRP Ledger community." + )} +
++ {translate( + "Software developers, teams, and start-ups building directly on the XRP Ledger" + )} +
++ {translate("Coding experience")} + • + {translate(" Github repository ")} + • + {translate(" Project narrative/description ")} + • + {translate(" At least one developer on the core team ")} + • + {translate(" Budget and milestones")} +
++ {translate("XRPL intermediate to advanced developers")} +
+{translate("$10,000 - $200,000")}
++ {translate("Coding experience")}{" "} + • + {translate("Github repository")}{" "} + • + {translate("Project narrative/description")}{" "} + • + {translate( + "At least one developer on the core team" + )}{" "} + • + {translate("Budget and milestones")} +
+{translate("$10,000 - $200,000")}
++ {translate( + "12-week program for entrepreneurs building on the XRP Ledger to scale their projects into thriving businesses." + )} +
+ ++ {translate( + "Start-ups building scalable products on XRPL that can capture a large market opportunity" + )} +
+
+ •{" "}
+ {translate("Strong founding team")}
+
+ •{" "}
+ {translate("Bold, ambitious vision")}
+
+ •{" "}
+ {translate("Ideally an MVP and monetization strategy")}
+
+ •{" "}
+ {translate("XRPL advanced developers")}
+
+ •{" "}
+ {translate("Business acumen")}
+
+ {translate( + "$50,000 (grant) + pitch for venture funding" + )} +
+
+ •{" "}
+ {translate("Strong founding team")}
+
+ •{" "}
+ {translate("Bold, ambitious vision")}
+
+ •{" "}
+ {translate(
+ "Ideally an MVP and monetization strategy"
+ )}
+
+ {translate( + "$50,000 (grant) + pitch for venture funding" + )} +
++ {translate( + "Apex is back and headed to Amsterdam. Apex XRPL Developer Summit is the annual event where developers, contributors, and thought leaders come together to learn, build, share, network, and celebrate all things XRP Ledger." + )} +
+{event.description}
+{event.description}
++ {translate( + "The XRP Ledger first launched in June 2012. Shortly thereafter, they were joined by Chris Larsen, and the group started the Company NewCoin in September 2012 (quickly renamed OpenCoin and now named Ripple)." + )} +
++ {translate( + "The XRPL founders gifted 80 billion XRP, the platform’s native currency, to the company. Ripple has since put the majority in escrow." + )} +
++ {translate( + "In early 2011, three developers—David Schwartz, Jed McCaleb, and Arthur Britto—were fascinated with Bitcoin but observed the waste inherent in mining. They sought to create a more sustainable system for sending value (an idea outlined in a " + )} + + {translate( + "May 2011 forum post: “Bitcoin without mining”" + )} + + {")."} +
+ toggleSection("section-1")} + > + Read More + ++ {translate( + "Their initial observations about the high energy consumption and scalability issues that would plague Bitcoin proved prescient. In 2019, estimates suggest Bitcoin mining used more energy than the entire country of Portugal. Moreover, their initial read indicated that significant problems could arise if any miner obtained (or miners colluded to obtain) greater than 50% of the mining power. That risk persists with Bitcoin (and Ethereum) today as mining power has consolidated in China." + )} +
++ {translate( + "The trio of developers continued the work to build a distributed ledger that improved upon these fundamental limitations of Bitcoin, originally naming the code Ripple. The ledger included a digital asset that would originally be called “ripples” (XRP as the currency code) to follow the same naming convention as Bitcoin (BTC). At the time, the name Ripple stood for the open-source project, the unique consensus ledger (Ripple Consensus Ledger), transaction protocol (Ripple Transaction Protocol or RTXP), the network (Ripple network), and the digital asset (known as “ripples”)." + )} +
+ toggleSection("section-2")} + > + Read More + ++ {translate( + "In practice, this approach led to many broad uses of “Ripple.” For clarity, the community simply started calling the digital asset by its currency code, “XRP.”" + )} +
++ {translate( + "By June 2012, Schwartz, McCaleb, and Britto finished code development, and the Ledger was complete." + )} +
++ {translate( + "Once the XRP Ledger was live, 80% of the XRP was gifted to a new company that set out to build use cases for the digital asset—initially called NewCoin and renamed quickly to OpenCoin." + )} +
++ {translate( + "Chris Larsen was the CEO of OpenCoin, and at the company's founding, Jed was co-founder and CTO, David Schwartz was the Chief Cryptography Officer, and Arthur Britto an advisor." + )} +
++ {translate( + "Since the early days, OpenCoin set out to revolutionize the global financial system. Despite the revolutionary ideals of many of Bitcoin’s early believers, Larsen never thought blockchain technology should be used to overthrow the existing financial system. He believed that history’s most transformative innovations have always relied on the great ideas that came before them—not displacing them." + )} +
+ toggleSection("section-3")} + > + Read More + ++ {translate( + "In early conversations with potential customers, the team was asked about the differences between the Ripple project and OpenCoin company. With the community starting to refer to the digital asset as XRP, company leaders decided to rebrand the company to Ripple Labs, which has been shortened over time to “Ripple.”" + )} +
++ {translate( + "Today, Ripple has created a use case leveraging the XRP Ledger and XRP for liquidity management in its cross-border payments business. Ripple also remains a stakeholder and contributor to the broader XRPL community." + )} +
++ + {translate("Founded")} + + {translate( + " September 24, 2020, the XRPL Foundation is an independent and nonprofit entity with a mission to accelerate the development and adoption of the decentralized XRP Ledger. The Foundation received an initial donation of over $6.5M from Coil, Ripple, and Gatehub to fund the Foundation’s work in service of the growing number of developers and other " + )} + + {translate("global blockchain community")} + + {translate(" members building on the XRP Ledger.")} +
++ {`${translate( + "Open and decentralized, blockchain and crypto are seeing an increase in adoption across the financial services industry, from retail and institutional investment to " + )} `} + {translate("commercial use cases")} + {` ${translate("like CBDCs, NFTs, and cross-border payments.")}`} +
++ {translate( + "The trivial amount of energy it does consume is then neutralized with carbon credits through EW Zero, an open-source blockchain decarbonization tool." + )} +
++ {translate( + "Learn more about companies and developers who are using the XRP Ledger to solve interesting problems efficiently and sustainably." + )} +
+ + {translate("See More")} + ++ {translate( + "If you want to advance business with sustainable solutions to real-world problems, you’re invited to join the global, growing XRPL community. Here are some ways to get involved:" + )} +
+ ++ {`${translate("Check out the ")} `} + + {translate("XRPL dev blog")} + + {` ${translate( + "to stay up-to-date on the latest innovations and developments in the XRPL community." + )}`} +
++ {`${translate("Attend ")} `} + + {translate("meetups, hackathons, and conferences")} + + {` ${translate( + "to meet other members of the community." + )}`} +
++ {`${translate("View the")} `} + + {translate("Github repositories")} + + {` ${translate( + "to find blockchain projects to see how you can contribute." + )}`} +
++ {translate( + "Join the conversation on social media using #XRPLCommunity." + )} +
++ {`${translate("Attend ")} `} + + {translate("meetups, hackathons, and conferences")} + + {` ${translate( + "to meet other members of the community." + )}`} +
++ {translate( + "Join the conversation on social media using #XRPLCommunity." + )} +
+