Skip to content
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

로그인 플로우 접근성 개선 #765

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading