Skip to content

Commit

Permalink
docs page: footer added and moved to the bottom of page (appsody#24)
Browse files Browse the repository at this point in the history
Signed-off-by: Bazif Khan <[email protected]>
  • Loading branch information
Bazif-Khan authored and tomleah committed Jun 26, 2019
1 parent 3e383ab commit cb31633
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 22 deletions.
2 changes: 2 additions & 0 deletions src/components/docLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ import React from "react";

import Head from "./head"
import DocNavbar from "./docNavbar"
import Footer from "../components/footer"

export default ({ children }) => (
<React.Fragment>
<Head/>
<DocNavbar/>
{ children }
<Footer/>
</React.Fragment>
)
2 changes: 1 addition & 1 deletion src/components/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ const Footer = () => {
)
}

export default Footer;
export default Footer;
4 changes: 2 additions & 2 deletions src/components/layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export default ({ children }) => (
<Head/>
<Navbar/>
{ children }
<Footer></Footer>
<Footer/>
</React.Fragment>
)
)
4 changes: 2 additions & 2 deletions src/layouts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ import DocSidebar from "../components/docSidebar.js";
export default ({ children, pageContext }) => {
if (pageContext.layout === "docs") {
return (
<div id="docs">
<DocLayout>
<div id="docs">
<DocSidebar/>
<main>
{children}
</main>
</div>
</DocLayout>
</div>
)
}
return (
Expand Down
24 changes: 7 additions & 17 deletions src/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -122,25 +122,9 @@ section.landing-section h2 {
justify-content: center;
}

/* .btn.btn-clear.w-50 {
background-color: var(--white-buttons) !important;
border: 4px solid var(--white-buttons) !important;
border-radius: 10px;
padding: 0px;
} */

/* .btn.btn-primary.w-70.flipped{
margin-top: 1em;
border-radius: 10px;
padding: 0px;
height: 50em;
} */

#input-cli{
text-align: center;
width: 65%;
/* margin: 0 .5em; */
/* margin-right: 0.3em; */
}

#command-input{
Expand Down Expand Up @@ -201,7 +185,6 @@ section.landing-section h2 {
#docs {
display: grid;
grid-template-columns: 15em auto;
grid-template-rows: 100vh;
}

#docs main, #docs-sidebar {
Expand Down Expand Up @@ -270,13 +253,20 @@ section.landing-section h2 {
background-color: white;
}
}

footer {
background-color: var(--colour-scheme-1);
box-shadow: 0 6px 29px #9B9B9B;
padding: 1em;
text-align: center;
}

#docs footer {
grid-column-start: 1;
grid-column-end: 3;
z-index: 1;
}

footer ul {
margin: 0;
padding: 0;
Expand Down

0 comments on commit cb31633

Please sign in to comment.