-
Notifications
You must be signed in to change notification settings - Fork 1
Feat(client, landing): footer 구현 #220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,65 @@ | ||||||
| import { Icon } from '@pinback/design-system/icons'; | ||||||
|
|
||||||
| const Footer = () => { | ||||||
| const currentYear = new Date().getFullYear(); | ||||||
|
|
||||||
| return ( | ||||||
| <footer className="absolute bottom-0 mt-auto w-full px-[8rem] py-[3.2rem]"> | ||||||
| <div className="mt-[2.4rem] flex gap-[0.8rem]"> | ||||||
| <a | ||||||
| href="https://right-turquoise-268.notion.site/pinback-2c527450eb1c80eca220c1de3293e43a?source=copy_link" | ||||||
| target="_blank" | ||||||
| rel="noopener noreferrer" | ||||||
| className="caption1-sb text-font-gray-2 cursor-pointer hover:underline" | ||||||
| > | ||||||
| 이용약관 | ||||||
| </a> | ||||||
| <p className="caption1-sb text-font-gray-2">|</p> | ||||||
| <a | ||||||
| href=" https://right-turquoise-268.notion.site/pinback-2c527450eb1c804390effb2ee32072b2?source=copy_link" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 개인정보처리방침 URL에 불필요한 공백이 있습니다. URL 앞에 공백이 포함되어 있어 링크가 올바르게 작동하지 않을 수 있습니다. 🔎 수정 제안- href=" https://right-turquoise-268.notion.site/pinback-2c527450eb1c804390effb2ee32072b2?source=copy_link"
+ href="https://right-turquoise-268.notion.site/pinback-2c527450eb1c804390effb2ee32072b2?source=copy_link"📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| target="_blank" | ||||||
| rel="noopener noreferrer" | ||||||
| className="caption1-sb text-font-gray-2 cursor-pointer hover:underline" | ||||||
| > | ||||||
| 개인정보처리방침 | ||||||
| </a> | ||||||
| </div> | ||||||
|
|
||||||
| <div className="flex items-center justify-between"> | ||||||
| <address className="flex gap-[0.8rem] not-italic"> | ||||||
| <p className="caption2-sb text-font-ltgray-4">운영팀 문의</p> | ||||||
| <p className="caption2-m text-font-ltgray-4"> | ||||||
| 이한비 · pinback0615@gmail.com | ||||||
| </p> | ||||||
| </address> | ||||||
| <p className="caption2-m text-font-ltgray-4"> | ||||||
| ©{currentYear} pinback All rights reserved. | ||||||
| </p> | ||||||
|
|
||||||
| <div className="flex items-end gap-[1.2rem]"> | ||||||
| <p className="caption2-m text-gray400">TEAM. 도묵이</p> | ||||||
| <a | ||||||
| href="https://instagram.com/pinback.today/" | ||||||
| target="_blank" | ||||||
| rel="noopener noreferrer" | ||||||
| aria-label="Pinback 인스타그램" | ||||||
| className="transition-opacity hover:opacity-80" | ||||||
| > | ||||||
| <Icon name="instagram" width={28} height={28} /> | ||||||
| </a> | ||||||
| <a | ||||||
| href="https://pinback.palms.blog/" | ||||||
| target="_blank" | ||||||
| rel="noopener noreferrer" | ||||||
|
Comment on lines
+52
to
+53
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이거 보안문제(?) 떄문에 추가해주신걸까요?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 네 맞아요! 저도 정확한 공격 방식에 대해서는 깊게 모르지만, 보안 취약점을 막기 위해서 사용한다고 하네요! |
||||||
| aria-label="Pinback 블로그" | ||||||
| className="transition-opacity hover:opacity-80" | ||||||
| > | ||||||
| <Icon name="palms" width={28} height={28} /> | ||||||
| </a> | ||||||
| </div> | ||||||
| </div> | ||||||
| </footer> | ||||||
| ); | ||||||
| }; | ||||||
|
|
||||||
| export default Footer; | ||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,73 @@ | ||||||
| import { Icon } from '@pinback/design-system/icons'; | ||||||
|
|
||||||
| const Footer = () => { | ||||||
| const currentYear = new Date().getFullYear(); | ||||||
|
|
||||||
| return ( | ||||||
| <footer className="border-gray100 absolute bottom-0 w-full border-t-2 px-[8rem] py-[3.2rem]"> | ||||||
| <Icon | ||||||
| name="logo" | ||||||
| aria-label="Pinback 로고" | ||||||
| className="h-[2.8rem] w-[10.1rem]" | ||||||
| /> | ||||||
|
|
||||||
| <div className="relative mt-[1.2rem] flex items-center justify-between"> | ||||||
| <div className="flex gap-[2.4rem]"> | ||||||
| <div className="flex gap-[0.8rem]"> | ||||||
| <a | ||||||
| href="https://right-turquoise-268.notion.site/pinback-2c527450eb1c80eca220c1de3293e43a?source=copy_link" | ||||||
| target="_blank" | ||||||
| rel="noopener noreferrer" | ||||||
| className="caption1-sb text-font-gray-2 cursor-pointer hover:underline" | ||||||
| > | ||||||
| 이용약관 | ||||||
| </a> | ||||||
| <p className="caption1-sb text-font-gray-2">|</p> | ||||||
| <a | ||||||
| href=" https://right-turquoise-268.notion.site/pinback-2c527450eb1c804390effb2ee32072b2?source=copy_link" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 개인정보처리방침 URL에 불필요한 공백이 있습니다. URL 앞에 공백이 포함되어 있어 링크가 올바르게 작동하지 않을 수 있습니다. 온보딩 Footer에도 동일한 문제가 있습니다. 🔎 수정 제안- href=" https://right-turquoise-268.notion.site/pinback-2c527450eb1c804390effb2ee32072b2?source=copy_link"
+ href="https://right-turquoise-268.notion.site/pinback-2c527450eb1c804390effb2ee32072b2?source=copy_link"📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
| target="_blank" | ||||||
| rel="noopener noreferrer" | ||||||
| className="caption1-sb text-font-gray-2 cursor-pointer hover:underline" | ||||||
| > | ||||||
| 개인정보처리방침 | ||||||
| </a> | ||||||
| </div> | ||||||
| <address className="flex gap-[0.8rem] not-italic"> | ||||||
| <p className="caption2-sb text-font-ltgray-4">운영팀 문의</p> | ||||||
| <p className="caption2-m text-font-ltgray-4"> | ||||||
| 이한비 · pinback0615@gmail.com | ||||||
| </p> | ||||||
| </address> | ||||||
| </div> | ||||||
|
|
||||||
| <p className="caption2-m text-font-ltgray-4 absolute left-1/2 -translate-x-1/2 transform"> | ||||||
| ©{currentYear} pinback All rights reserved. | ||||||
| </p> | ||||||
|
|
||||||
| <div className="flex items-end gap-[1.2rem]"> | ||||||
| <p className="caption2-m text-gray400">TEAM. 도묵이</p> | ||||||
| <a | ||||||
| href="https://instagram.com/pinback.today/" | ||||||
| target="_blank" | ||||||
| rel="noopener noreferrer" | ||||||
| aria-label="Pinback 인스타그램" | ||||||
| className="transition-opacity hover:opacity-80" | ||||||
| > | ||||||
| <Icon name="instagram" width={28} height={28} /> | ||||||
| </a> | ||||||
| <a | ||||||
| href="https://pinback.palms.blog/" | ||||||
| target="_blank" | ||||||
| rel="noopener noreferrer" | ||||||
| aria-label="Pinback 블로그" | ||||||
| className="transition-opacity hover:opacity-80" | ||||||
| > | ||||||
| <Icon name="palms" width={28} height={28} /> | ||||||
| </a> | ||||||
| </div> | ||||||
| </div> | ||||||
| </footer> | ||||||
| ); | ||||||
| }; | ||||||
|
|
||||||
| export default Footer; | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
요거 간단한 함수긴 하지만,,
온보딩 푸터랑 랜딩 푸터 모두 공통적으로 쓰는 연도 불러오는 거 나중에 따로 빼도 좋을 것 같아요!
근데 이렇게 정말 "개애애 간결한 로직들"은 굳이 리팩토링 안하는 게 코드 흐름 읽기 더 편한 것 같기도 하나 싶네용.. 리팩토링의 기준 어렵도다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 부분은 말씀해주신 것처럼 고민이 되긴하네요. 물론 2개의 footer에서 같이 사용되고 있으니까 유틸로 분리해서 재사용을 없애는 관점도 타당해보이지만, 일단 두개의 footer 사용처가 각각 다른 apps라 분리하게 되면 packages로 빼야한다는점. 또한 packages로 빼야될만큼 해당 로직이 컴포넌트의 역할과 완전히 다른지를 또 생각해보면 애매하다는 생각이 드네요.
재림님은 어떻게 생각하시나요?? @jllee000
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
근데, 응집도(?)를 생각해보면,, 또 이런 간단한 로직까지 너무 짜잘하게 분리하는게 오히려 좀 불필요하나 싶기도 하네용!