Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions apps/docs/__tests__/Footer_.test.res
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ test("desktop footer shows all sections and links", async () => {
let community = await screen->getByText("Community")
await element(community)->toBeVisible

let brandAssets = await screen->getByText("Brand Assets")
await element(brandAssets)->toBeVisible

let association = await screen->getByText("ReScript Association")
await element(association)->toBeVisible

Expand Down Expand Up @@ -42,6 +45,9 @@ test("mobile footer stacks sections vertically", async () => {
let community = await screen->getByText("Community")
await element(community)->toBeVisible

let brandAssets = await screen->getByText("Brand Assets")
await element(brandAssets)->toBeVisible

let association = await screen->getByText("ReScript Association")
await element(association)->toBeVisible

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/docs/app/routes.res
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ let default = [
index("./routes/LandingPageRoute.jsx"),
route("packages", "./routes/PackagesRoute.jsx"),
route("try", "./routes/TryRoute.jsx"),
route("brand", "./routes/BrandRoute.jsx"),
route("blog", "./routes/BlogRoute.jsx", ~options={id: "blog-index"}),
route("blog/archived", "./routes/BlogRoute.jsx", ~options={id: "blog-archived"}),
...blogArticleRoutes,
Expand Down
71 changes: 71 additions & 0 deletions apps/docs/app/routes/BrandRoute.res
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
let downloadLink = ((label, href)) => {
<a key=href className="text-fire hover:underline inline-flex items-center gap-1" href>
{React.string(label)}
<Icon.ExternalLink className="w-4 h-4" />
</a>
}

let assetCard = (~title, ~description, ~image, ~imageClassName="", ~dark=false, ~downloads) => {
let previewClassName = dark
? "bg-gray-90 border border-gray-20 rounded-lg p-8 flex min-h-48 items-center justify-center"
: "bg-gray-5 border border-gray-10 rounded-lg p-8 flex min-h-48 items-center justify-center"

<section className="border border-gray-10 rounded-lg bg-white p-6">
<h2 className="font-bold text-24 mb-2"> {React.string(title)} </h2>
<p className="body-md text-gray-70 mb-6"> {React.string(description)} </p>
<div className=previewClassName>
<img src=image className=imageClassName alt={title ++ " preview"} />
</div>
<div className="flex flex-wrap gap-x-4 gap-y-2 mt-5 text-16">
{downloads->Array.map(download => downloadLink(download))->React.array}
</div>
</section>
}

let default = () => {
<MainLayout>
<Meta
title="Brand Assets | ReScript"
description="Download the official ReScript logo and brandmark assets."
canonical="/brand"
/>
<div className="max-w-740 w-full m-auto">
<Markdown.H1> {React.string("Brand Assets")} </Markdown.H1>
<p className="body-lg text-gray-70 mb-10">
{React.string(
"Official ReScript logo and brandmark assets for use in articles, talks, websites, and community projects.",
)}
</p>
<div className="grid grid-cols-1 gap-8">
{assetCard(
~title="Brandmark",
~description="The standalone ReScript symbol.",
~image="/brand/rescript-brandmark.svg",
~imageClassName="h-24 w-24",
~downloads=[
("SVG", "/brand/rescript-brandmark.svg"),
("AVIF", "/brand/rescript-brandmark.avif"),
],
)}
{assetCard(
~title="Logo",
~description="The primary ReScript logo with wordmark.",
~image="/brand/rescript-logo.svg",
~imageClassName="h-24",
~downloads=[("SVG", "/brand/rescript-logo.svg"), ("AVIF", "/brand/rescript-logo.avif")],
)}
{assetCard(
~title="Logo on Dark",
~description="The white ReScript logo for dark backgrounds.",
~image="/brand/rescript-logo-white.svg",
~imageClassName="h-24",
~dark=true,
~downloads=[
("SVG", "/brand/rescript-logo-white.svg"),
("AVIF", "/brand/rescript-logo-white.avif"),
],
)}
</div>
</div>
</MainLayout>
}
1 change: 1 addition & 0 deletions apps/docs/app/routes/BrandRoute.resi
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let default: unit => React.element
1 change: 1 addition & 0 deletions apps/docs/src/common/Path.res
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ type t = [
| #"/undefined"
| #"/packages"
| #"/try"
| #"/brand"
| #"/syntax-lookup"
| #"/blog"
| #"/blog/archived"
Expand Down
23 changes: 0 additions & 23 deletions apps/docs/src/components/BreadCrumbs.res

This file was deleted.

3 changes: 3 additions & 0 deletions apps/docs/src/components/Footer.res
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ let make = () => {
{React.string("Community")}
</Link>
</li>
<li>
<Link to=#"/brand" className={linkClass}> {React.string("Brand Assets")} </Link>
</li>

<li>
<a href="https://rescript-association.org" className=linkClass>
Expand Down
Loading