Skip to content

Commit

Permalink
feat: Login Button 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
dydals3440 committed Feb 17, 2024
1 parent 142b7fe commit cc9d3cc
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/login/GoogleLoginButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const GoogleLoginButton = () => {
});

return (
<S.LoginButton onClick={login} style={{ backgroundColor: 'white' }}>
<S.LoginButton onClick={login}>
<S.Icon src={GoogleIcon} />
<h3>구글 로그인 </h3>
</S.LoginButton>
Expand Down
6 changes: 2 additions & 4 deletions src/components/login/KakaoLoginButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ const KakaoLoginButton = () => {
};
return (
<>
<S.LoginButton
style={{ backgroundColor: '#FEE500' }}
onClick={handleLogin}>
<S.KLoginButton onClick={handleLogin}>
<S.Icon src={KakaoIcon} />
<h3>카카오 로그인 </h3>
</S.LoginButton>
</S.KLoginButton>
</>
);
};
Expand Down
35 changes: 33 additions & 2 deletions src/components/login/SnsLoginButton.style.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import styled from 'styled-components';

import { FONT_SIZE } from '@/constants/size';
import theme from '@/theme';

const LoginButton = styled.button`
display: flex;
Expand All @@ -13,12 +14,42 @@ const LoginButton = styled.button`
padding: 10px 11px;
margin-bottom: 26px;
border-radius: 100px;
background-color: ${theme.COLOR.MAIN.WHITE};
box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.25);
font-size: ${FONT_SIZE.BASE};
cursor: pointer;
&:hover {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
transform: scale(1.05);
transform: scale(0.99);
}
h3 {
font-family: 'Pretendard-semibold';
font-size: 16px;
width: 90%;
}
`;

const KLoginButton = styled.button`
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 35%;
color: black;
border: none;
padding: 10px 11px;
margin-bottom: 26px;
border-radius: 100px;
background-color: #fae100;
box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.25);
font-size: ${FONT_SIZE.BASE};
cursor: pointer;
&:hover {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
transform: scale(0.99);
}
h3 {
Expand All @@ -33,4 +64,4 @@ const Icon = styled.img`
margin-left: 10px;
width: 25px;
`;
export { LoginButton, Icon };
export { LoginButton, KLoginButton, Icon };

0 comments on commit cc9d3cc

Please sign in to comment.