Skip to content

Commit af0e3e9

Browse files
committed
website: small updates (search & update/fixups in docs)
1 parent d1584f5 commit af0e3e9

File tree

5 files changed

+33
-16
lines changed

5 files changed

+33
-16
lines changed

website/docs/example.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ export { app as default } from "./src/App.bs.js";
3333

3434
## `./src/App.re`
3535

36+
👀 In place of the rudimentary example below, you can directly grab the
37+
[App.re](https://raw.githubusercontent.com/reasonml-community/reason-react-native/master/reason-react-native-template/template/src/App.re)
38+
of our template, which will match React Native default _Hello World_!
39+
3640
```reason
3741
open ReactNative;
3842

website/docs/usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ have to do anything. The plugin will detect `bs-platform` & will handle the
6666
compilation/watching process for you.
6767

6868
In case you are facing something weird, you can always trigger a cleanup by
69-
doing `Cmd + Shift + P` and look for `Restart Reason Language Server`.
69+
doing `Cmd/Ctrl + Shift + P` and look for `Restart Reason Language Server`.
7070

7171
_Even if you decide to use Vscode or a smiliar IDE to ease your day to day
72-
development workflow, you should have a look to CLI workflow so you how it
72+
development workflow, you should have a look to CLI workflow so you know how it
7373
works._
7474

7575
### Compile ReasonML files via CLI

website/src/Consts.re

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ let sections = [
8989
("Introduction", "docs/"),
9090
("Installation", "docs/install/"),
9191
("Usage", "docs/usage/"),
92+
// ("Style", api ++ "docs/style/"),
9293
("Example", "docs/example/"),
9394
("Cheatsheet", "docs/cheatsheet/"),
9495
("Migration from bs-react-native", "docs/migration/jsx3/"),

website/src/SVGs/Search.svg

Lines changed: 1 addition & 0 deletions
Loading

website/src/components/HeaderLarge.re

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,15 @@ let styles =
4545
~color=Consts.Colors.light,
4646
(),
4747
),
48-
"search": viewStyle(),
48+
"search": viewStyle(~justifyContent=`center, ()),
49+
"searchInputWrapper":
50+
viewStyle(
51+
~flexDirection=`row,
52+
~backgroundColor="#fff",
53+
~borderRadius=6.,
54+
~alignItems=`center,
55+
(),
56+
),
4957
"links":
5058
viewStyle(
5159
~flexGrow=1.,
@@ -140,19 +148,22 @@ let make = (~currentLocation) => {
140148
})
141149
->React.array}
142150
</SpacedView>
143-
<SpacedView style=styles##search vertical=XS horizontal=XS>
144-
<input
145-
id="SearchInput"
146-
placeholder="Search"
147-
style={ReactDOMRe.Style.make(
148-
~fontSize="15px",
149-
~width="120px",
150-
~borderRadius="20px",
151-
~border="0",
152-
~padding="10px 20px",
153-
(),
154-
)}
155-
/>
151+
<SpacedView vertical=XS horizontal=XS style=styles##search>
152+
<SpacedView
153+
vertical=XXS horizontal=XS style=styles##searchInputWrapper>
154+
<input
155+
id="SearchInput"
156+
placeholder="Search..."
157+
style={ReactDOMRe.Style.make(
158+
~fontSize="16px",
159+
~width="120px",
160+
~border="0",
161+
(),
162+
)}
163+
/>
164+
<Spacer size=XS />
165+
<SVGSearch fill=Predefined.Colors.dark width="18" height="18" />
166+
</SpacedView>
156167
</SpacedView>
157168
<SpacedView style=styles##icons vertical=XS horizontal=XS>
158169
{Consts.socialLinks

0 commit comments

Comments
 (0)