diff --git a/src/pages/LandingPage/AptosLearnBanner.tsx b/src/pages/LandingPage/GithubDiscussionsBanner.tsx similarity index 72% rename from src/pages/LandingPage/AptosLearnBanner.tsx rename to src/pages/LandingPage/GithubDiscussionsBanner.tsx index f5357d4c..f07c87ad 100644 --- a/src/pages/LandingPage/AptosLearnBanner.tsx +++ b/src/pages/LandingPage/GithubDiscussionsBanner.tsx @@ -7,15 +7,16 @@ import { useTheme, } from "@mui/material"; import {grey} from "@mui/material/colors"; -import React, {useState} from "react"; +import {useState} from "react"; import {Banner} from "../../components/Banner"; import ArrowForwardIosIcon from "@mui/icons-material/ArrowForwardIos"; import {useWallet} from "@aptos-labs/wallet-adapter-react"; import {useLogEventWithBasic} from "../Account/hooks/useLogEventWithBasic"; -const APTOS_LEARN_URL = "https://learn.aptoslabs.com"; +const GITHUB_DISCUSSION_URL = + "https://github.com/aptos-labs/aptos-developer-discussions/discussions"; -export function AptosLearnBanner() { +export function GithubDiscussionsBanner() { const [open, setOpen] = useState(false); const {account, wallet} = useWallet(); const logEvent = useLogEventWithBasic(); @@ -24,11 +25,11 @@ export function AptosLearnBanner() { const handleClick = () => { setOpen(!open); - logEvent("aptos_learn_banner_clicked", null, { + logEvent("github_discussions_banner_clicked", null, { wallet_address: account?.address ?? "", wallet_name: wallet?.name ?? "", }); - window.open(APTOS_LEARN_URL, "_blank"); + window.open(GITHUB_DISCUSSION_URL, "_blank"); }; const learnMoreButton = ( @@ -37,7 +38,7 @@ export function AptosLearnBanner() { onClick={handleClick} sx={{alignSelf: "flex-start", transform: `translateX(-0.5rem)`}} > - GO TO APTOS LEARN + GO TO DISCUSSIONS ); @@ -59,7 +60,7 @@ export function AptosLearnBanner() { ); const text = - "Create your own decentralized app with the recently launched Aptos Learn website!"; + "Ask your tech questions and hang out with the Aptos developer community in the new developer discussions!"; const children = isOnMobile ? ( @@ -71,10 +72,8 @@ export function AptosLearnBanner() { ); return ( - <> - - {children} - - + + {children} + ); } diff --git a/src/pages/LandingPage/Index.tsx b/src/pages/LandingPage/Index.tsx index 58e1323b..3d18fbb0 100644 --- a/src/pages/LandingPage/Index.tsx +++ b/src/pages/LandingPage/Index.tsx @@ -3,12 +3,12 @@ import HeaderSearch from "../layout/Search/Index"; import Box from "@mui/material/Box"; import NetworkInfo from "../Analytics/NetworkInfo/NetworkInfo"; import UserTransactionsPreview from "./UserTransactionsPreview"; -import {AptosLearnBanner} from "./AptosLearnBanner"; +import {GithubDiscussionsBanner} from "./GithubDiscussionsBanner"; export default function LandingPage() { return ( - + Aptos Explorer