Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak static pages layout #8

Merged
merged 2 commits into from
Aug 8, 2019
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
32 changes: 32 additions & 0 deletions website/pages/en/404.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/**
* Copyright (c) 2017-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

const React = require("react");

const Index = () => (
<div className="docMainWrapper wrapper">
<div className="container docsNavContainer" id="docsNav" />
<div className="container mainContainer">
<div className="wrapper">
<div className="post">
<header className="postHeader">
<h1 className="postHeaderTitle">
Requested page could not be found.
</h1>
</header>
<article>
<a href="/docs/">Return to documentation.</a>
</article>
</div>
</div>
</div>
</div>
);

Index.title = "Page not found";

module.exports = Index;
18 changes: 16 additions & 2 deletions website/pages/en/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,22 @@
const React = require("react");

const Index = () => (
<div>
<a href="/docs/">Go to docs...</a>
<div className="docMainWrapper wrapper">
<div className="container docsNavContainer" id="docsNav" />
<div className="container mainContainer">
<div className="wrapper">
<div className="post">
<header className="postHeader">
<h1 className="postHeaderTitle">
Welcome to the Saleor documentation!
</h1>
</header>
<article>
<a href="/docs/">Go to documentation contents.</a>
</article>
</div>
</div>
</div>
</div>
);

Expand Down
4 changes: 4 additions & 0 deletions website/static/css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@
background: #f6fafa;
}

.docsNavContainer:empty {
background: none;
}

.toc {
padding-top: 10px;
}
Expand Down