Skip to content

Commit 06eb360

Browse files
committed
docs: update homepage headings
1 parent e27f46a commit 06eb360

2 files changed

Lines changed: 21 additions & 5 deletions

File tree

src/components/LandingPage.res

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,25 @@ module Intro = {
22
@react.component
33
let make = () => {
44
<section className="flex justify-center">
5+
// We only need this font on the homepage, so we load it here instead of globally to save some bandwidth for users who navigate to other pages directly
6+
<link
7+
href="https://fonts.googleapis.com/css2?family=Ubuntu+Mono:wght@700&display=swap"
8+
rel="stylesheet"
9+
/>
510
<div className="max-w-1060 flex flex-col items-center px-5 sm:px-8 lg:box-content">
611
<h1 className="hl-title text-center max-w-212">
7-
{React.string("Fast, Simple, Fully Typed JavaScript from the Future")}
12+
{React.string("Typed JavaScript Made Simple for Humans and AI")}
813
</h1>
9-
<h2 className="body-lg text-center text-gray-60 my-4 max-w-md">
10-
{React.string(`ReScript is a robustly typed language that compiles to efficient
11-
and human-readable JavaScript. It comes with a lightning fast
12-
compiler toolchain that scales to any codebase size.`)}
14+
<h2 className="ubuntu-mono-bold hl-1 text-center text-gray-60 my-4 max-w-md">
15+
{React.string(`types > vibes`)}
1316
</h2>
17+
<p className="body-lg text-center text-gray-60 my-4 max-w-md">
18+
{React.string(`ReScript is a strongly typed language that compiles to clean,
19+
efficient JavaScript that humans and AI tools can read and understand.
20+
Its fast compiler and static type system keep feedback loops tight,
21+
so you can move quickly with AI assistance while maintaining
22+
confidence as your codebase grows.`)}
23+
</p>
1424
<div className="mt-4 mb-2">
1525
<ReactRouter.Link to=#"/docs/manual/installation" prefetch=#viewport>
1626
<Button> {React.string("Get started")} </Button>

styles/_fonts.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,9 @@ $ pyftsubset <path_to_font> --unicodes="U+0000-00FF, U+0131, U+0152-0153, U+02BB
137137
U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
138138
U+FFFD;
139139
}
140+
141+
.ubuntu-mono-bold {
142+
font-family: "Ubuntu Mono", monospace;
143+
font-weight: 700;
144+
font-style: normal;
145+
}

0 commit comments

Comments
 (0)