Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
code
Public Stack Site
Commits
654469db
Commit
654469db
authored
Aug 05, 2020
by
alain
🐙
Browse files
setup basic layout
parent
3605c781
Changes
5
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/footer.js
0 → 100644
View file @
654469db
import
React
from
"
react
"
const
Footer
=
()
=>
(
<
footer
>
{
`©
${
new
Date
().
getFullYear
()}
, Built by `
}
<
a
href
=
"
https://waag.org
"
>
Waag
<
/a
>
<
/footer
>
)
export
default
Footer
frontend/src/components/layout.js
View file @
654469db
...
...
@@ -5,6 +5,7 @@ import { useStaticQuery, graphql } from "gatsby"
import
"
../styles/styles.scss
"
import
Header
from
"
./header
"
import
Footer
from
"
./footer
"
const
Layout
=
({
children
})
=>
{
...
...
@@ -19,23 +20,11 @@ const Layout = ({ children }) => {
`
)
return
(
<>
<
div
id
=
"
page
"
>
<
Header
siteTitle
=
{
data
.
site
.
siteMetadata
.
title
}
/
>
<
div
style
=
{{
margin
:
`0 auto`
,
maxWidth
:
960
,
padding
:
`0 1.0875rem 1.45rem`
,
}}
>
<
main
>
{
children
}
<
/main
>
<
footer
>
©
{
new
Date
().
getFullYear
()},
Built
by
{
` `
}
<
a
href
=
"
https://waag.org
"
>
Waag
<
/a
>
<
/footer
>
<
/div
>
<
/
>
<
main
>
{
children
}
<
/main
>
<
Footer
/>
<
/div
>
)
}
...
...
frontend/src/styles/_footer.scss
0 → 100644
View file @
654469db
footer
{
text-align
:
center
;
font-size
:
0
.8rem
;
}
\ No newline at end of file
frontend/src/styles/_layout.scss
0 → 100644
View file @
654469db
#page
{
display
:
flex
;
flex-direction
:
column
;
min-height
:
100vh
;
}
main
{
flex
:
1
0
auto
;
width
:
100%
;
max-width
:
960px
;
margin
:
3rem
auto
;
padding
:
0
1rem
;
}
footer
{
flex-shrink
:
0
;
}
\ No newline at end of file
frontend/src/styles/styles.scss
View file @
654469db
@import
"reset"
;
@import
"layout"
;
@import
"typography"
;
@import
"header"
;
@import
"footer"
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment