Skip to content

Commit 7416dbb

Browse files
committed
Last playground, sidebar, components adjustments
1 parent 30525ba commit 7416dbb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+300
-336
lines changed

src/Blog.js

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

src/Blog.res

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ module Badge = {
2828
let make = (~badge: BlogFrontmatter.Badge.t) => {
2929
let bgColor = switch badge {
3030
| Preview | Roadmap | Release => "bg-turtle"
31-
| Testing => "bg-code-1"
31+
| Testing => "bg-orange"
3232
}
3333

3434
let text = badge->BlogFrontmatter.Badge.toString
@@ -121,7 +121,7 @@ module BlogCard = {
121121
<Link href="/blog/[slug]" _as={"/blog/" ++ slug}>
122122
<a> <h2 className=Text.H3.default> {React.string(title)} </h2> </a>
123123
</Link>
124-
<div className="text-night-light text-sm">
124+
<div className="text-gray-60 text-14">
125125
{switch category {
126126
| Some(category) => <> {React.string(category)} {React.string(j` · `)} </>
127127
| None => React.null
@@ -264,7 +264,7 @@ let default = (props: props): React.element => {
264264
let errorBox = if ProcessEnv.env === ProcessEnv.development && Belt.Array.length(malformed) > 0 {
265265
<div className="mb-12">
266266
<Markdown.Warn>
267-
<h2 className="font-bold text-night-dark text-2xl mb-2">
267+
<h2 className="font-bold text-gray-95 text-2xl mb-2">
268268
{React.string("Some Blog Posts are Malformed!")}
269269
</h2>
270270
<p>
@@ -381,7 +381,7 @@ let default = (props: props): React.element => {
381381
description="News, Announcements, Release Notes and more"
382382
/>
383383
<div className="mt-16 pt-2">
384-
<div className="text-night text-lg">
384+
<div className="text-gray-80 text-lg">
385385
<Navigation overlayState />
386386
<div className="flex justify-center overflow-hidden">
387387
<main className="min-w-320 lg:align-center w-full lg:px-0 max-w-1280 pb-48">

src/BlogArticle.js

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

src/BlogArticle.res

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ module BlogComponent = {
4141

4242
module Line = {
4343
@react.component
44-
let make = () => <div className="block border-t border-snow-darker" />
44+
let make = () => <div className="block border-t border-gray-20" />
4545
}
4646

4747
module AuthorBox = {
@@ -56,19 +56,19 @@ module AuthorBox = {
5656

5757
<div className="flex items-center">
5858
<div className="w-12 h-12 bg-berry-40 block rounded-full mr-3"> authorImg </div>
59-
<div className="text-14 font-medium text-night-dark">
59+
<div className="text-14 font-medium text-gray-95">
6060
{switch author.twitter->Js.Null.toOption {
6161
| Some(handle) =>
6262
<a
6363
href={"https://twitter.com/" ++ handle}
64-
className="hover:text-night"
64+
className="hover:text-gray-80"
6565
rel="noopener noreferrer"
6666
target="_blank">
6767
{React.string(displayName)}
6868
</a>
6969
| None => React.string(displayName)
7070
}}
71-
<div className="text-night-light"> {React.string(author.role)} </div>
71+
<div className="text-gray-60"> {React.string(author.role)} </div>
7272
</div>
7373
</div>
7474
}
@@ -121,7 +121,7 @@ module BlogHeader = {
121121
</div>
122122
{switch articleImg {
123123
| Some(articleImg) =>
124-
<div className="-mx-8 sm:mx-0 sm:w-full bg-night-10 md:mt-24">
124+
<div className="-mx-8 sm:mx-0 sm:w-full bg-gray-5-tr md:mt-24">
125125
<img
126126
className="h-full w-full object-cover"
127127
src=articleImg
@@ -216,11 +216,11 @@ let default = (props: props) => {
216216
<div className="mt-12">
217217
<Line />
218218
<div className="pt-20 flex flex-col items-center">
219-
<div className="text-3xl sm:text-4xl text-center text-night-dark font-medium">
219+
<div className="text-3xl sm:text-4xl text-center text-gray-95 font-medium">
220220
{React.string("Want to read more?")}
221221
</div>
222222
<Next.Link href="/blog">
223-
<a className="text-fire hover:text-fire-80">
223+
<a className="text-fire hover:text-fire-70">
224224
{React.string("Back to Overview")}
225225
<Icon.ArrowRight className="ml-2 inline-block" />
226226
</a>
@@ -234,7 +234,7 @@ let default = (props: props) => {
234234
| Error(msg) =>
235235
<div>
236236
<Markdown.Warn>
237-
<h2 className="font-bold text-night-dark text-2xl mb-2">
237+
<h2 className="font-bold text-gray-95 text-28 mb-2">
238238
{React.string("Could not parse file '_blogposts/" ++ (fullslug ++ ".mdx'"))}
239239
</h2>
240240
<p>

src/DocsOverview.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/DocsOverview.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module Card = {
22
@react.component
33
let make = (~title: string, ~hrefs: array<(string, string)>) => {
44
let style = ReactDOM.Style.make(~maxWidth="21rem", ())
5-
<div style className="border border-snow-dark bg-snow-light px-5 py-8 rounded-lg">
5+
<div style className="border border-gray-10 bg-gray-5 px-5 py-8 rounded-lg">
66
<h2 className="font-bold text-21 mb-4"> {React.string(title)} </h2>
77
<ul>
88
{Belt.Array.map(hrefs, ((text, href)) =>

src/Packages.js

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

src/Packages.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ module Card = {
189189
})
190190
<button
191191
?onMouseDown
192-
className="hover:pointer px-2 rounded-lg text-white bg-fire-80 text-14"
192+
className="hover:pointer px-2 rounded-lg text-white bg-fire-70 text-14"
193193
key={keyword}>
194194
{React.string(keyword)}
195195
</button>
@@ -457,7 +457,7 @@ let default = (props: props) => {
457457
description="Official and unofficial resources, libraries and bindings for ReScript"
458458
/>
459459
<div className="mt-16 pt-2">
460-
<div className="text-night text-lg">
460+
<div className="text-gray-80 text-lg">
461461
<Navigation overlayState />
462462
<div className="flex overflow-hidden">
463463
<div

0 commit comments

Comments
 (0)