fixed issue where the text is incorrectly aligned

added max width to footer content
removed bold p
This commit is contained in:
Kim, Jimin 2021-07-31 08:49:47 +09:00
parent a2d2b5af04
commit 39079e4cad

View file

@ -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 &copy; develo
<StyledStrong>p</StyledStrong>omp
</div>
<StyledFooterContainer>
<div className="logo">Copyright &copy; developomp</div>
<div className="icons">
<StyledLink
<StyledALink
href="https://github.com/developomp/developomp-site"
target="_blank"
>
<FontAwesomeIcon icon={faGithub} />
</StyledLink>
</div>
</StyledALink>
</StyledFooterContainer>
</StyledFooter>
)
}