Skip to content

Commit

Permalink
Style: 상단 네비게이션 메뉴에 Divider 추가 및 프로젝트섹션 내 셀렉터 id 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
misung-dev committed Nov 19, 2023
1 parent 832e436 commit 5ace0e3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/components/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const Header = () => {
<S.Nav>
<S.NavItem onClick={() => scrollToSection('aboutApps')}>APPS 소개</S.NavItem>
<S.NavItem onClick={() => scrollToSection('projectsSection')}>프로젝트 소개</S.NavItem>
<S.NavDivider>|</S.NavDivider>
<S.NavItem onClick={handleGitHubClick}>깃허브</S.NavItem>
</S.Nav>
</S.Inner>
Expand Down
2 changes: 2 additions & 0 deletions src/components/Header/Header.style.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,5 @@ export const NavItem = styled.a`
color: white;
}
`;

export const NavDivider = styled.text``;
4 changes: 2 additions & 2 deletions src/components/ProjectsSection/ProjectsSection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ const PROJECT_CATEGORY_LIST = [
const ProjectsSection = () => {
return (
<S.Section>
<S.TopBackground />
<S.TopBackground id="projectsSection" />
<S.BottomBackground />
<S.SectionInner>
<S.SectionTitle id="projectsSection">프로젝트 소개</S.SectionTitle>
<S.SectionTitle>프로젝트 소개</S.SectionTitle>
<S.SectionNav>
{PROJECT_CATEGORY_LIST.map(({ id, title }) => (
<S.SectionNavItem key={id} href={`#${id}`}>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/HomePage/HomePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ const HomePage = () => {
</S.MessageSectionInner>
</S.MessageSection>

<S.AboutAppsSection>
<S.AboutAppsSection id="aboutApps">
<S.AboutAppsSectionInner>
<AnimationOnScroll animateIn="animate__fadeInUp" animateOnce={true}>
<S.SectionTitle id="aboutApps">{'APPS 소개'}</S.SectionTitle>
<S.SectionTitle>{'APPS 소개'}</S.SectionTitle>
<S.SectionDescription>
APPS는 모바일 앱& 프로그래밍 동아리로,
<br /> 기술과 아이디어를 통해 프로젝트를 진행하며
Expand Down

0 comments on commit 5ace0e3

Please sign in to comment.