fixed issue where the text is incorrectly aligned
added max width to footer content removed bold p
This commit is contained in:
parent
a2d2b5af04
commit
39079e4cad
1 changed files with 33 additions and 30 deletions
|
@ -6,33 +6,43 @@ import theming from "../theming"
|
||||||
|
|
||||||
const StyledFooter = styled.footer`
|
const StyledFooter = styled.footer`
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: center;
|
||||||
margin-bottom: 1px; /* footer goes outside the page by 1 px for some reason */
|
|
||||||
padding: 50px 10px;
|
|
||||||
background-color: white;
|
|
||||||
background-color: ${(props) =>
|
|
||||||
theming.theme(props.theme.currentTheme, {
|
|
||||||
light: "white",
|
|
||||||
dark: "black",
|
|
||||||
})};
|
|
||||||
color: ${(props) =>
|
color: ${(props) =>
|
||||||
theming.theme(props.theme.currentTheme, {
|
theming.theme(props.theme.currentTheme, {
|
||||||
light: "black",
|
light: "black",
|
||||||
dark: "white",
|
dark: "white",
|
||||||
})};
|
})};
|
||||||
* {
|
|
||||||
margin: 0;
|
background-color: ${(props) =>
|
||||||
padding: 0;
|
theming.theme(props.theme.currentTheme, {
|
||||||
box-sizing: border-box;
|
light: "white",
|
||||||
}
|
dark: "black",
|
||||||
|
})};
|
||||||
|
`
|
||||||
|
|
||||||
|
const StyledFooterContainer = styled.div`
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
margin-bottom: 1px; /* a hacky solution for footer going outside the page by 1px */
|
||||||
|
padding: 0 1rem 0 1rem;
|
||||||
|
|
||||||
|
height: 100px;
|
||||||
|
width: 100%;
|
||||||
|
line-height: 100px;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
max-width: ${theming.size.screen_size2};
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
color: gray;
|
color: gray;
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
const StyledLink = styled.a`
|
const StyledALink = styled.a`
|
||||||
width: 30px;
|
|
||||||
font-size: 2rem;
|
font-size: 2rem;
|
||||||
|
|
||||||
color: ${(props) =>
|
color: ${(props) =>
|
||||||
theming.theme(props.theme.currentTheme, {
|
theming.theme(props.theme.currentTheme, {
|
||||||
light: "lightgrey",
|
light: "lightgrey",
|
||||||
|
@ -42,33 +52,26 @@ const StyledLink = styled.a`
|
||||||
&:hover {
|
&:hover {
|
||||||
color: ${(props) =>
|
color: ${(props) =>
|
||||||
theming.theme(props.theme.currentTheme, {
|
theming.theme(props.theme.currentTheme, {
|
||||||
light: "black",
|
light: theming.light.color0,
|
||||||
dark: "white",
|
dark: theming.dark.color0,
|
||||||
})};
|
})};
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
const StyledStrong = styled.strong`
|
|
||||||
font-size: 1.1rem;
|
|
||||||
`
|
|
||||||
|
|
||||||
export default class Footer extends React.Component {
|
export default class Footer extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<StyledFooter>
|
<StyledFooter>
|
||||||
<div className="logo">
|
<StyledFooterContainer>
|
||||||
Copyright © develo
|
<div className="logo">Copyright © developomp</div>
|
||||||
<StyledStrong>p</StyledStrong>omp
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="icons">
|
<StyledALink
|
||||||
<StyledLink
|
|
||||||
href="https://github.com/developomp/developomp-site"
|
href="https://github.com/developomp/developomp-site"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
<FontAwesomeIcon icon={faGithub} />
|
<FontAwesomeIcon icon={faGithub} />
|
||||||
</StyledLink>
|
</StyledALink>
|
||||||
</div>
|
</StyledFooterContainer>
|
||||||
</StyledFooter>
|
</StyledFooter>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue