Skip to content

Commit

Permalink
Merge pull request #765 from woowacourse-teams/feature/#764
Browse files Browse the repository at this point in the history
로그인 플로우 접근성 개선
  • Loading branch information
jaeml06 authored Oct 24, 2024
2 parents d45db9c + 3d9bd3f commit 01ea2cd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
4 changes: 4 additions & 0 deletions frontend/src/pages/Login/HomePage/HomePage.style.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { css, Theme } from '@emotion/react';

export const kakaoButton = () => css`
display: 'flex';
align-items: 'center';
justify-content: 'center';
background: none;
border: none;
`;
Expand Down
25 changes: 20 additions & 5 deletions frontend/src/pages/Login/HomePage/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,24 +55,28 @@ export default function HomePage() {
css={css`
display: flex;
flex-direction: column;
margin-top: 30%;
gap: 2rem;
align-items: center;
justify-content: center;
margin-top: 30%;
`}
aria-label="어색한 공동체 속 우리만의 작은 공간. 모여봐요 우리의 다락방"
tabIndex={1}
>
<MainLogoIcon />
</div>
</LoginLayout.Main>
<LoginLayout.Footer>
<section
css={css`
margin-bottom: 10rem;
display: flex;
flex-direction: column;
gap: 3rem;
align-items: center;
justify-content: center;
margin-bottom: 10rem;
`}
>
<span css={theme.typography.b3}>3초만에 모우다를 시작해보세요!</span>
Expand All @@ -89,29 +93,40 @@ export default function HomePage() {
background: 'none',
border: 'none',
cursor: 'pointer',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
}}
onClick={appleAuthLogin}
aria-label="애플 계정으로 로그인"
>
<AppleOAuthIcon type={'circle'} />
</button>
<GoogleLoginButton type={'circle'} />
<div css={S.boundary({ theme })}></div>
<button
css={S.kakaoButton}
css={{
display: 'flex',
alignItems: 'center',
justifyCsontent: 'center',
background: 'none',
border: 'none',
}}
onClick={() => {
alert(
'카카오톡 로그인은 더 이상 지원하지 않아요! 다른 로그인을 이용하여 계정을 옮겨 보세요!',
);
}}
aria-label="카카오 로그인 기능은 더 이상 지원하지 않아요. 애플 로그인 또는 구글 로그인 기능을 이용해주세요."
>
<KakaoOAuthLoginIcon type="circle" />
</button>
</div>
<span css={S.explain({ theme })}>
<div css={S.explain({ theme })}>
카카오톡 로그인은 더 이상 지원하지 않아요!
<br />
다른 로그인을 이용해주세요
</span>
</div>
</section>
</LoginLayout.Footer>
</LoginLayout>
Expand Down

0 comments on commit 01ea2cd

Please sign in to comment.