Skip to content

Commit

Permalink
✨Feat: Footer 생성 #30
Browse files Browse the repository at this point in the history
  • Loading branch information
puretension committed Apr 26, 2024
1 parent 1dabc04 commit b08af9e
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/svg/icons/common/right_arrow.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions src/components/layout/footer/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
'use client';
import React from 'react';
import RightArrowIcon from 'public/svg/icons/common/right_arrow.svg';

/**
* @description
* 레이아웃 Footer
* @component Footer
* @returns {JSX.Element} Footer
* @since 2024.04.26
*/

const Footer = () => {
const handlePress = () => {
console.log('Arrow clicked');
};

return (
<footer className="w-full py-10 bg-mono_900 flex pl-[400px]">
<div className="flex justify-start items-start w-full gap-10">
<div>
<h1 className="F1">About Us</h1>
<p className="F2">Final Update 2023.10.02</p>
<div className="flex items-center">
<p className="F2">제작자 소개</p>
<button onClick={handlePress} className="ml-2 mt-[-2px]">
<RightArrowIcon />
</button>
</div>
<div className="mt-4">
<p className="F3">Copyright © GDSC DGU</p>
</div>
</div>
<div>
<h1 className="F1">Contact</h1>
<div className="contact-item">
<p className="F2 label-width">이메일</p>
<p className="F2">[email protected]</p>
</div>
<div className="contact-item">
<p className="F2 label-width">주소</p>
<p className="F2">서울특별시 중구 필동로1길 30</p>
</div>
</div>
</div>
</footer>
);
};

export default Footer;
36 changes: 36 additions & 0 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,39 @@
line-height: calc(14 / 12);
}
}

/* Footer */
.F1 {
font-weight: 500;
letter-spacing: 0.25px;
font-family: Pretendard-Medium;
font-size: 1rem;
}
.F2 {
font-weight: 200;
font-family: Pretendard-Medium;
font-size: 0.75rem;
line-height: calc(28 / 14);
}
.F3 {
font-weight: 200;
font-family: Pretendard-Regular;
font-size: 0.7rem;
line-height: calc(28 / 14);
}
.contact-item {
display: flex;
gap: 0.5rem;
flex-direction: row;
}
.mt-4 {
margin-top: 1rem;
}
.mt-2 {
margin-top: 0.3rem;
}
.label-width {
width: 2rem;
}


0 comments on commit b08af9e

Please sign in to comment.