diff --git a/src/common/Constants.res b/src/common/Constants.res index 72b5b1371..445270367 100644 --- a/src/common/Constants.res +++ b/src/common/Constants.res @@ -25,3 +25,8 @@ let ecosystem = [ ] let tools = [("Syntax Lookup", "/syntax-lookup")] + +let githubHref = "https://github.com/rescript-lang/rescript-compiler" +let xHref = "https://x.com/rescriptlang" +let blueSkyHref = "https://bsky.app/profile/rescript-lang.org" +let discourseHref = "https://forum.rescript-lang.org" diff --git a/src/components/Footer.res b/src/components/Footer.res index b75cddfde..17dbe1ffa 100644 --- a/src/components/Footer.res +++ b/src/components/Footer.res @@ -59,13 +59,16 @@ let make = () => {
- + - - + + - + + + +
diff --git a/src/components/Icon.res b/src/components/Icon.res index 30f2176a4..be805c0a7 100644 --- a/src/components/Icon.res +++ b/src/components/Icon.res @@ -31,12 +31,23 @@ module Npm = { } } -module Twitter = { +module X = { @react.component let make = (~className: string) => - + + +} + +module BlueSky = { + @react.component + let make = (~className: string) => + + diff --git a/src/components/Icon.resi b/src/components/Icon.resi index 1c97af5ea..0930f6916 100644 --- a/src/components/Icon.resi +++ b/src/components/Icon.resi @@ -7,7 +7,11 @@ module Npm: { @react.component let make: (~className: string) => React.element } -module Twitter: { +module X: { + @react.component + let make: (~className: string) => React.element +} +module BlueSky: { @react.component let make: (~className: string) => React.element } diff --git a/src/components/Navigation.res b/src/components/Navigation.res index 6c8fc6189..6b817a53b 100644 --- a/src/components/Navigation.res +++ b/src/components/Navigation.res @@ -16,10 +16,6 @@ let linkOrActiveApiSubroute = (~route) => { } } -let githubHref = "https://github.com/rescript-lang/rescript-compiler" -//let twitterHref = "https://twitter.com/rescriptlang" -let discourseHref = "https://forum.rescript-lang.org" - module CollapsibleLink = { // KeepOpen = Menu has been opened and should stay open type state = @@ -392,17 +388,22 @@ module MobileNav = { */
  • - - {React.string("Twitter")} + + {React.string("X")}
  • - + + {React.string("BlueSky")} + +
  • +
  • + {React.string("GitHub")}
  • - + {React.string("Forum")}
  • @@ -554,16 +555,16 @@ let make = (~fixed=true, ~isOverlayOpen: bool, ~setOverlayOpen: (bool => bool) =
    - + - - + + + + + - +