Skip to content

Commit 3db46d2

Browse files
committed
Add icons
1 parent 24a99c3 commit 3db46d2

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

public/static/[email protected]

1.72 KB
Loading

public/static/[email protected]

1.2 KB
Loading

public/static/[email protected]

1.6 KB
Loading

public/static/[email protected]

3.92 KB
Loading

src/components/Navigation.js

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Navigation.res

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ type collapsible = {
9898
}
9999

100100
module DocsSection = {
101-
type ecosystemItem = {
101+
type item = {
102102
imgSrc: string,
103103
title: string,
104104
description: string,
@@ -163,7 +163,7 @@ module DocsSection = {
163163
let languageManual = Constants.languageManual(version)
164164
let documentation = [
165165
{
166-
imgSrc: "/static/ic_package.svg",
166+
imgSrc: "/static/[email protected]",
167167
title: "Language Manual",
168168
description: "Reference for all language features",
169169
href: `/docs/manual/${version}/introduction`,
@@ -175,7 +175,7 @@ module DocsSection = {
175175
},
176176
},
177177
{
178-
imgSrc: "/static/ic_package.svg",
178+
imgSrc: "/static/[email protected]",
179179
title: "ReScript & React",
180180
description: "First class bindings for ReactJS",
181181
href: "/docs/react/latest/introduction",
@@ -187,7 +187,7 @@ module DocsSection = {
187187
},
188188
},
189189
{
190-
imgSrc: "/static/ic_package.svg",
190+
imgSrc: "/static/[email protected]",
191191
title: "GenType",
192192
description: "Seamless TypeScript & Flow interop",
193193
href: "/docs/gentype/latest/introduction",
@@ -199,7 +199,7 @@ module DocsSection = {
199199
},
200200
},
201201
{
202-
imgSrc: "/static/ic_package.svg",
202+
imgSrc: "/static/[email protected]",
203203
title: "Reanalyze",
204204
description: "Dead Code & Termination analysis",
205205
href: "https://github.com/reason-association/reanalyze",
@@ -251,7 +251,7 @@ module DocsSection = {
251251
{Js.Array2.map(documentation, item => {
252252
let {imgSrc, title, href, description, isActive} = item
253253

254-
let icon = <div className="w-6 h-6"> <img className="w-full" src={imgSrc} /> </div>
254+
let icon = <img style={ReactDOM.Style.make(~width="2.1875rem", ())} src={imgSrc} />
255255
<LinkCard key={title} icon title href description active={isActive(url)} />
256256
})->React.array}
257257
</div>

0 commit comments

Comments
 (0)