Skip to content

Commit 8944b25

Browse files
committed
Update navigation / logo / layout paddings
1 parent ce34743 commit 8944b25

File tree

10 files changed

+25
-19
lines changed

10 files changed

+25
-19
lines changed

public/static/[email protected]

16.2 KB
Loading

src/components/Navigation.js

Lines changed: 8 additions & 4 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 & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -418,13 +418,14 @@ let make = (~fixed=true, ~overlayState: (bool, (bool => bool) => unit)) => {
418418
ref={ReactDOM.Ref.domRef(outerRef)}
419419
id="header"
420420
style={ReactDOMStyle.make(~minWidth, ())}
421-
className={fixedNav ++ " flex xs:justify-center w-full h-18 bg-gray-95 shadow text-white-80 text-base"}>
421+
className={fixedNav ++ " flex xs:justify-center w-full h-16 bg-gray-95 shadow text-white-80 text-base"}>
422422
<div className="flex justify-between mx-4 md:mx-8 items-center h-full w-full max-w-1280">
423-
<div className="h-8 w-8">
423+
<div className="h-8 w-8 lg:h-10 lg:w-32">
424424
<a
425425
href="/"
426426
className="block hover:cursor-pointer w-full h-full flex justify-center items-center font-bold">
427-
<img src="/static/[email protected]" />
427+
<img src="/static/[email protected]" className="lg:hidden" />
428+
<img src="/static/[email protected]" className="hidden lg:block" />
428429
</a>
429430
</div>
430431
/* Desktop horizontal navigation */
@@ -468,7 +469,7 @@ let make = (~fixed=true, ~overlayState: (bool, (bool => bool) => unit)) => {
468469
</a>
469470
</Link>
470471
</div>
471-
<div className="hidden sm:flex items-center">
472+
<div className="hidden md:flex items-center">
472473
<a
473474
href=githubHref
474475
rel="noopener noreferrer"
@@ -509,7 +510,7 @@ let make = (~fixed=true, ~overlayState: (bool, (bool => bool) => unit)) => {
509510
</button>
510511
/* Mobile overlay */
511512
<div
512-
style={ReactDOMStyle.make(~minWidth, ~top="4.5rem", ())}
513+
style={ReactDOMStyle.make(~minWidth, ~top="4rem", ())}
513514
className={(
514515
isOverlayOpen ? "flex" : "hidden"
515516
) ++ " sm:hidden flex-col fixed top-0 left-0 h-full w-full z-30 sm:w-9/12 bg-gray-100 sm:h-auto sm:flex sm:relative sm:flex-row sm:justify-between"}>

src/layouts/LandingPageLayout.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/layouts/LandingPageLayout.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ let make = (~components=Markdown.default, ~children) => {
2727
<div className="mt-4 xs:mt-16">
2828
<div className="text-gray-80 text-lg">
2929
<Navigation overlayState />
30-
<div className="absolute top-18 w-full">
30+
<div className="absolute top-16 w-full">
3131
<div
3232
className="flex justify-center overflow-hidden"
3333
style={ReactDOM.Style.make(~backgroundColor="#0E1529", ())}>

src/layouts/MainLayout.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/layouts/MainLayout.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let make = (~components=Markdown.default, ~children) => {
77
<div className="text-gray-80">
88
<Navigation overlayState />
99
<div className="flex xs:justify-center overflow-hidden pb-48">
10-
<main className="mt-32 min-w-320 lg:align-center w-full px-4 md:px-8 max-w-1280 ">
10+
<main className="mt-16 min-w-320 lg:align-center w-full px-4 md:px-8 max-w-1280 ">
1111
<Mdx.Provider components> children </Mdx.Provider>
1212
</main>
1313
</div>

src/layouts/SidebarLayout.js

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

src/layouts/SidebarLayout.res

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ module Sidebar = {
142142
) ++ " md:block md:w-48 md:-ml-4 lg:w-1/5 md:h-auto md:relative overflow-y-visible bg-white md:relative"}>
143143
<aside
144144
id="sidebar-content"
145-
className="relative top-0 px-4 w-full block md:top-18 md:pt-24 md:sticky border-r border-gray-5 overflow-y-auto scrolling-touch pb-24"
145+
className="relative top-0 px-4 w-full block md:top-16 md:pt-16 md:sticky border-r border-gray-5 overflow-y-auto scrolling-touch pb-24"
146146
style={ReactDOMStyle.make(~height="calc(100vh - 4.5rem", ())}>
147147
<div className="flex justify-between">
148148
<div className="w-3/4 md:w-full"> toplevelNav </div>
@@ -270,10 +270,10 @@ let make = (
270270
<div className="flex w-full max-w-1280 md:mx-8">
271271
sidebar
272272
<main
273-
className="px-4 w-full pt-16 md:ml-12 lg:mr-8 md:mt-2 md:pt-24 mb-32 md:max-w-576 lg:max-w-740">
273+
className="px-4 w-full pt-16 md:ml-12 lg:mr-8 mb-32 md:max-w-576 lg:max-w-740">
274274
//width of the right content part
275275
<div
276-
className="z-10 fixed border-b shadow top-18 left-0 pl-4 bg-white w-full py-4 md:relative md:border-none md:shadow-none md:p-0 md:top-auto flex items-center">
276+
className="z-10 fixed border-b shadow top-16 left-0 pl-4 bg-white w-full py-4 md:relative md:border-none md:shadow-none md:p-0 md:top-auto flex items-center">
277277
<MobileDrawerButton
278278
hidden=isNavOpen
279279
onClick={evt => {

tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ module.exports = {
104104
"320": "20rem"
105105
},
106106
inset: {
107+
"16": "4rem",
107108
"18": "4.5rem"
108109
},
109110
spacing: {

0 commit comments

Comments
 (0)