-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from dbstjs95/dev
css/기능 수정
- Loading branch information
Showing
17 changed files
with
1,266 additions
and
460 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,147 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
import logo from '../images/logo.png'; | ||
|
||
const FooterContainer = styled.div` | ||
text-align: center; | ||
background: #343a40; | ||
const FooterContainer = styled.footer` | ||
background-color: gray; | ||
padding: 1rem; | ||
color: white; | ||
align-items: center; | ||
padding: 20px 30px; | ||
width: 100%; | ||
bottom: 0; | ||
left: 0; | ||
`; | ||
|
||
> ul { | ||
list-style: none; | ||
} | ||
const ContentContainer = styled.div` | ||
display: grid; | ||
grid-template-columns: 1fr 1fr 1fr; | ||
gap: 1rem; | ||
`; | ||
|
||
const Footer = () => { | ||
const thisYear = () => { | ||
const year = new Date().getFullYear(); | ||
return year; | ||
}; | ||
const LinksContainer = styled.div` | ||
padding-left: 1rem; | ||
border-left: 1px solid white; | ||
p { | ||
font-weight: bold; | ||
display: flex; | ||
} | ||
ul { | ||
display: flex; | ||
gap: 2rem; | ||
} | ||
a:hover { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
background-color: darkgray; | ||
} | ||
`; | ||
|
||
function Footer() { | ||
return ( | ||
<FooterContainer className="footer"> | ||
<p> | ||
Copyright © <span>{thisYear()}</span> | ||
</p> | ||
<ul className="footer-info"> | ||
<li>Back-End : 오상민</li> | ||
<li>Back-End : 유지훈</li> | ||
<li>Front-End : 최윤선</li> | ||
<li>Front-End : 박제곤</li> | ||
</ul> | ||
<FooterContainer> | ||
<ContentContainer> | ||
<LinksContainer> | ||
<img src={logo} height="50px" /> | ||
<p>Copyright © 2022 Info-Market</p> | ||
</LinksContainer> | ||
<LinksContainer> | ||
<p>About Info-Market</p> | ||
<ul> | ||
<li> | ||
<a | ||
href="https://github.com/codestates/info-market" | ||
style={{ color: 'inherit', textDecoration: 'inherit' }} | ||
> | ||
Repository | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="https://github.com/codestates/info-market/wiki" | ||
style={{ color: 'inherit', textDecoration: 'inherit' }} | ||
> | ||
Wiki | ||
</a> | ||
</li> | ||
</ul> | ||
</LinksContainer> | ||
<LinksContainer> | ||
<p>Contact</p> | ||
<ul> | ||
<li> | ||
<a | ||
href="https://github.com/tkdals0905" | ||
style={{ color: 'inherit', textDecoration: 'inherit' }} | ||
> | ||
오상민 | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="https://github.com/wlgns1501" | ||
style={{ color: 'inherit', textDecoration: 'inherit' }} | ||
> | ||
유지훈 | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="https://github.com/dbstjs95" | ||
style={{ color: 'inherit', textDecoration: 'inherit' }} | ||
> | ||
최윤선 | ||
</a> | ||
</li> | ||
<li> | ||
<a | ||
href="https://github.com/goni1621" | ||
style={{ color: 'inherit', textDecoration: 'inherit' }} | ||
> | ||
{' '} | ||
박제곤 | ||
</a> | ||
</li> | ||
</ul> | ||
</LinksContainer> | ||
</ContentContainer> | ||
</FooterContainer> | ||
); | ||
}; | ||
} | ||
|
||
export default Footer; | ||
// import React from 'react'; | ||
// import styled from 'styled-components'; | ||
|
||
// const FooterContainer = styled.div` | ||
// text-align: center; | ||
// background: #343a40; | ||
// color: white; | ||
// align-items: center; | ||
// padding: 20px 20px; | ||
// > ul { | ||
// list-style: none; | ||
// } | ||
// `; | ||
|
||
// const Footer = () => { | ||
// const thisYear = () => { | ||
// const year = new Date().getFullYear(); | ||
// return year; | ||
// }; | ||
|
||
// return ( | ||
// <FooterContainer className="footer"> | ||
// <p> | ||
// Copyright © <span>{thisYear()}</span> | ||
// </p> | ||
// <ul className="footer-info"> | ||
// <li>Back-End : 오상민</li> | ||
// <li>Back-End : 유지훈</li> | ||
// <li>Front-End : 최윤선</li> | ||
// <li>Front-End : 박제곤</li> | ||
// </ul> | ||
// </FooterContainer> | ||
// ); | ||
// }; | ||
|
||
// export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.