Skip to content

Commit 2935fab

Browse files
Update social links and logos (#938)
1 parent 35024aa commit 2935fab

File tree

5 files changed

+47
-23
lines changed

5 files changed

+47
-23
lines changed

src/common/Constants.res

+5
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,8 @@ let ecosystem = [
2525
]
2626

2727
let tools = [("Syntax Lookup", "/syntax-lookup")]
28+
29+
let githubHref = "https://github.com/rescript-lang/rescript-compiler"
30+
let xHref = "https://x.com/rescriptlang"
31+
let blueSkyHref = "https://bsky.app/profile/rescript-lang.org"
32+
let discourseHref = "https://forum.rescript-lang.org"

src/components/Footer.res

+7-4
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,16 @@ let make = () => {
5959
</Section>
6060
<Section title="Find us on">
6161
<div className="flex space-x-3 text-gray-100">
62-
<a className=iconLink rel="noopener noreferrer" href="https://github.com/rescript-lang">
62+
<a className=iconLink rel="noopener noreferrer" href=Constants.githubHref>
6363
<Icon.GitHub className="w-6 h-6" />
6464
</a>
65-
<a className=iconLink rel="noopener noreferrer" href="https://twitter.com/rescriptlang">
66-
<Icon.Twitter className="w-6 h-6" />
65+
<a className=iconLink rel="noopener noreferrer" href=Constants.xHref>
66+
<Icon.X className="w-6 h-6" />
6767
</a>
68-
<a className=iconLink rel="noopener noreferrer" href="https://forum.rescript-lang.org">
68+
<a className=iconLink rel="noopener noreferrer" href=Constants.blueSkyHref>
69+
<Icon.BlueSky className="w-6 h-6" />
70+
</a>
71+
<a className=iconLink rel="noopener noreferrer" href=Constants.discourseHref>
6972
<Icon.Discourse className="w-6 h-6" />
7073
</a>
7174
</div>

src/components/Icon.res

+14-3
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,23 @@ module Npm = {
3131
}
3232
}
3333

34-
module Twitter = {
34+
module X = {
3535
@react.component
3636
let make = (~className: string) =>
37-
<svg className={"fill-current " ++ className} viewBox="0 0 15.53 12.71">
37+
<svg className={"fill-current " ++ className} viewBox="0 0 1200 1227">
3838
<path
39-
d="M5.794,12.711a13.325,13.325,0,0,1-2.058-.163A9.659,9.659,0,0,1,.92,11.523L0,11.02l1-.328c1.089-.358,1.751-.58,2.571-.928A3.421,3.421,0,0,1,1.809,7.726l-.232-.7.19.029a3.456,3.456,0,0,1-.433-.534A3.276,3.276,0,0,1,.779,4.57l.044-.614L1.19,4.1a3.437,3.437,0,0,1-.333-.934A3.552,3.552,0,0,1,1.235.774l.32-.588L1.984.7A7.883,7.883,0,0,0,7.091,3.575a3.054,3.054,0,0,1,.185-1.623A3.038,3.038,0,0,1,8.511.536,3.71,3.71,0,0,1,10.664.008a3.439,3.439,0,0,1,2.114.872,7.1,7.1,0,0,0,.774-.258c.17-.064.362-.136.6-.219L15.042.1l-.579,1.652.119-.008L15.53,1.7l-.56.765c-.032.044-.04.056-.052.073-.045.068-.1.153-.87,1.179a1.448,1.448,0,0,0-.271.943,8.916,8.916,0,0,1-.487,3.586,6.346,6.346,0,0,1-1.7,2.524,7.524,7.524,0,0,1-3.566,1.724A10.979,10.979,0,0,1,5.794,12.711Zm0,0"
39+
d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"
40+
transform="translate(0 -0.001)"
41+
/>
42+
</svg>
43+
}
44+
45+
module BlueSky = {
46+
@react.component
47+
let make = (~className: string) =>
48+
<svg className={"fill-current " ++ className} viewBox="0 0 568 501">
49+
<path
50+
d="M123.121 33.6637C188.241 82.5526 258.281 181.681 284 234.873C309.719 181.681 379.759 82.5526 444.879 33.6637C491.866 -1.61183 568 -28.9064 568 57.9464C568 75.2916 558.055 203.659 552.222 224.501C531.947 296.954 458.067 315.434 392.347 304.249C507.222 323.8 536.444 388.56 473.333 453.32C353.473 576.312 301.061 422.461 287.631 383.039C285.169 375.812 284.017 372.431 284 375.306C283.983 372.431 282.831 375.812 280.369 383.039C266.939 422.461 214.527 576.312 94.6667 453.32C31.5556 388.56 60.7778 323.8 175.653 304.249C109.933 315.434 36.0535 296.954 15.7778 224.501C9.94525 203.659 0 75.2916 0 57.9464C0 -28.9064 76.1345 -1.61183 123.121 33.6637Z"
4051
transform="translate(0 -0.001)"
4152
/>
4253
</svg>

src/components/Icon.resi

+5-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ module Npm: {
77
@react.component
88
let make: (~className: string) => React.element
99
}
10-
module Twitter: {
10+
module X: {
11+
@react.component
12+
let make: (~className: string) => React.element
13+
}
14+
module BlueSky: {
1115
@react.component
1216
let make: (~className: string) => React.element
1317
}

src/components/Navigation.res

+16-15
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ let linkOrActiveApiSubroute = (~route) => {
1616
}
1717
}
1818

19-
let githubHref = "https://github.com/rescript-lang/rescript-compiler"
20-
//let twitterHref = "https://twitter.com/rescriptlang"
21-
let discourseHref = "https://forum.rescript-lang.org"
22-
2319
module CollapsibleLink = {
2420
// KeepOpen = Menu has been opened and should stay open
2521
type state =
@@ -392,17 +388,22 @@ module MobileNav = {
392388
</li>
393389
*/
394390
<li className=base>
395-
<a href="https://twitter.com/rescriptlang" rel="noopener noreferrer" className=extLink>
396-
{React.string("Twitter")}
391+
<a href=Constants.xHref rel="noopener noreferrer" className=extLink>
392+
{React.string("X")}
397393
</a>
398394
</li>
399395
<li className=base>
400-
<a href=githubHref rel="noopener noreferrer" className=extLink>
396+
<a href=Constants.blueSkyHref rel="noopener noreferrer" className=extLink>
397+
{React.string("BlueSky")}
398+
</a>
399+
</li>
400+
<li className=base>
401+
<a href=Constants.githubHref rel="noopener noreferrer" className=extLink>
401402
{React.string("GitHub")}
402403
</a>
403404
</li>
404405
<li className=base>
405-
<a href=discourseHref rel="noopener noreferrer" className=extLink>
406+
<a href=Constants.discourseHref rel="noopener noreferrer" className=extLink>
406407
{React.string("Forum")}
407408
</a>
408409
</li>
@@ -554,16 +555,16 @@ let make = (~fixed=true, ~isOverlayOpen: bool, ~setOverlayOpen: (bool => bool) =
554555
<div className="md:flex flex items-center">
555556
<Search />
556557
<div className="hidden md:flex items-center ml-5">
557-
<a href=githubHref rel="noopener noreferrer" className={"mr-5 " ++ link}>
558+
<a href=Constants.githubHref rel="noopener noreferrer" className={"mr-5 " ++ link}>
558559
<Icon.GitHub className="w-6 h-6 opacity-50 hover:opacity-100" />
559560
</a>
560-
<a
561-
href="https://twitter.com/rescriptlang"
562-
rel="noopener noreferrer"
563-
className={"mr-5 " ++ link}>
564-
<Icon.Twitter className="w-6 h-6 opacity-50 hover:opacity-100" />
561+
<a href=Constants.xHref rel="noopener noreferrer" className={"mr-5 " ++ link}>
562+
<Icon.X className="w-6 h-6 opacity-50 hover:opacity-100" />
563+
</a>
564+
<a href=Constants.blueSkyHref rel="noopener noreferrer" className={"mr-5 " ++ link}>
565+
<Icon.BlueSky className="w-6 h-6 opacity-50 hover:opacity-100" />
565566
</a>
566-
<a href=discourseHref rel="noopener noreferrer" className=link>
567+
<a href=Constants.discourseHref rel="noopener noreferrer" className=link>
567568
<Icon.Discourse className="w-6 h-6 opacity-50 hover:opacity-100" />
568569
</a>
569570
</div>

0 commit comments

Comments
 (0)