-
Notifications
You must be signed in to change notification settings - Fork 0
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 #4 from Doyu-Lee/contacts-articles
[Contacts articles] Contacts 페이지(1/2) - 연락처 컴포넌트 구현
- Loading branch information
Showing
34 changed files
with
619 additions
and
81 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
@import 'mixins'; | ||
|
||
.container { | ||
position: absolute; | ||
top: 0; | ||
@include center-center(column); | ||
width: 100%; | ||
height: calc(100vh - 80px); | ||
margin-top: 80px; | ||
|
||
.wrapper { | ||
@include center-center(column); | ||
width: 800px; | ||
|
||
.title-wrapper { | ||
@include center-center(column); | ||
width: 90%; | ||
|
||
.title-box { | ||
@include flex(flex-start, center); | ||
width: 95%; | ||
height: 80px; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.title { | ||
margin-right: 1rem; | ||
font-family: var(--font-balooBhaina); | ||
@include titleAgain(en); | ||
} | ||
|
||
.ko { | ||
@include titleAgain(ko); | ||
} | ||
.sub-title { | ||
margin-left: 2rem; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.contents-box { | ||
display: flex; | ||
width: 800px; | ||
height: 100%; | ||
|
||
.info-box { | ||
padding-top: 5px; | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
'use client'; | ||
|
||
import { usePathname } from 'next/navigation'; | ||
import { useTranslation } from '@/app/i18n/client'; | ||
import TypingAni from '@/components/common/effect/TypingAni'; | ||
import ContactArticle from '@/components/contacts/ContactArticle'; | ||
import LngSwitchButtonCSR from '@/components/language-button/LngSwitchButtonCSR'; | ||
import { contactInfos } from '@/constants/contactInfos'; | ||
import { LngParamsProps } from '@/types/lngSwitch'; | ||
import { getPathFromURL } from '@/utils/common/getPathFromURL'; | ||
import styles from './page.module.scss'; | ||
|
||
export default function Contacts({ params: { lng } }: LngParamsProps) { | ||
const { t } = useTranslation(lng, 'contacts'); | ||
const url = getPathFromURL(usePathname()); | ||
|
||
return ( | ||
<div className={styles.container}> | ||
<LngSwitchButtonCSR lng={lng} url={url} /> | ||
<div className={styles.wrapper}> | ||
<div className={styles['title-wrapper']}> | ||
<div className={styles['title-box']}> | ||
<h2 className={`${styles.title} ${lng === 'ko' && styles.ko}`}> | ||
{t('title')} | ||
</h2> | ||
<div className={styles['sub-title']}> | ||
<TypingAni lng={lng} /> | ||
</div> | ||
</div> | ||
</div> | ||
<div className={styles['contents-box']}> | ||
<div className={styles['info-box']}> | ||
{contactInfos.map((info) => ( | ||
<ContactArticle | ||
key={info.title} | ||
title={info.title} | ||
subTitle={info.subTitle} | ||
url={info.url} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"title": "Contacts", | ||
"subTitle1":"prioritizing user experience,", | ||
"subTitle2":"embracing diverse learning opportunities,", | ||
"subTitle3":"ready to collaborate and grow together.", | ||
"subTitle4":"A frontend developer, Seona Lee, who is..." | ||
} | ||
|
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,4 +1,4 @@ | ||
{ | ||
"roadmap": "roadmap", | ||
"dots": "dots" | ||
"dots": "dots", | ||
"contacts": "contacts" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"title": "연결", | ||
"subTitle1":"어제보다는 오늘이 더 나은,", | ||
"subTitle2":"오늘보다는 내일이 더 나은,", | ||
"subTitle3":"더 나은 사용자 경험을 위해 문제를 스스로 정의하고 해결하고자 하는", | ||
"subTitle4":"프론트엔드 개발자 이선아입니다." | ||
} | ||
|
This file was deleted.
Oops, something went wrong.
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,4 +1,4 @@ | ||
{ | ||
"roadmap": "이정표", | ||
"dots": "연결" | ||
"dots": "연결", | ||
"contacts": "연락" | ||
} |
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,27 +1,28 @@ | ||
@import 'mixins'; | ||
|
||
.button-box { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
@include center-center(); | ||
width: 130px; | ||
height: 100%; | ||
} | ||
|
||
.button { | ||
display: flex; | ||
justify-content: center; | ||
@include center-center(); | ||
width: 50px; | ||
height: 30px; | ||
padding-top: 2px; | ||
transition: all 0.3s ease-in-out; | ||
border: 1.5px solid var(--color-light-primary); | ||
border-radius: 17px; | ||
border-radius: var(--rounded-default); | ||
color: var(--color-gray4); | ||
font-size: 1.3rem; | ||
font-weight: 500; | ||
font-size: 1.4rem; | ||
font-weight: 600; | ||
text-align: center; | ||
|
||
&:hover { | ||
color: var(--color-primary); | ||
font-weight: 700; | ||
} | ||
} | ||
|
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.box { | ||
font-size: 1.3rem; | ||
line-height: 1.6rem; | ||
|
||
&.ko { | ||
font-family: var(--font-ko-wooju); | ||
} | ||
|
||
.point { | ||
height: 1.6rem; | ||
color: var(--color-primary); | ||
} | ||
} | ||
|
Oops, something went wrong.