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`
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
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",
|
||||
})};
|
||||
justify-content: center;
|
||||
|
||||
color: ${(props) =>
|
||||
theming.theme(props.theme.currentTheme, {
|
||||
light: "black",
|
||||
dark: "white",
|
||||
})};
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
background-color: ${(props) =>
|
||||
theming.theme(props.theme.currentTheme, {
|
||||
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 {
|
||||
color: gray;
|
||||
}
|
||||
`
|
||||
|
||||
const StyledLink = styled.a`
|
||||
width: 30px;
|
||||
const StyledALink = styled.a`
|
||||
font-size: 2rem;
|
||||
|
||||
color: ${(props) =>
|
||||
theming.theme(props.theme.currentTheme, {
|
||||
light: "lightgrey",
|
||||
|
@ -42,33 +52,26 @@ const StyledLink = styled.a`
|
|||
&:hover {
|
||||
color: ${(props) =>
|
||||
theming.theme(props.theme.currentTheme, {
|
||||
light: "black",
|
||||
dark: "white",
|
||||
light: theming.light.color0,
|
||||
dark: theming.dark.color0,
|
||||
})};
|
||||
}
|
||||
`
|
||||
|
||||
const StyledStrong = styled.strong`
|
||||
font-size: 1.1rem;
|
||||
`
|
||||
|
||||
export default class Footer extends React.Component {
|
||||
render() {
|
||||
return (
|
||||
<StyledFooter>
|
||||
<div className="logo">
|
||||
Copyright © develo
|
||||
<StyledStrong>p</StyledStrong>omp
|
||||
</div>
|
||||
<StyledFooterContainer>
|
||||
<div className="logo">Copyright © developomp</div>
|
||||
|
||||
<div className="icons">
|
||||
<StyledLink
|
||||
<StyledALink
|
||||
href="https://github.com/developomp/developomp-site"
|
||||
target="_blank"
|
||||
>
|
||||
<FontAwesomeIcon icon={faGithub} />
|
||||
</StyledLink>
|
||||
</div>
|
||||
</StyledALink>
|
||||
</StyledFooterContainer>
|
||||
</StyledFooter>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue