Update SNS quick login design
Match the requested SNS quick login layout with a title and circular provider icons for Naver/Kakao/Google. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
20
index.html
20
index.html
@@ -73,15 +73,17 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="sns-login" id="snsLogin" hidden>
|
<div class="sns-login" id="snsLogin" hidden>
|
||||||
<span class="sns-label">SNS 간편로그인</span>
|
<span class="sns-label">SNS 간편로그인</span>
|
||||||
<button class="sns-btn sns-naver" id="btnNaver" type="button" hidden aria-label="네이버로 로그인">
|
<div class="sns-row">
|
||||||
<span class="sns-letter">N</span>
|
<button class="sns-btn sns-naver" id="btnNaver" type="button" hidden aria-label="네이버로 로그인">
|
||||||
</button>
|
<span class="sns-letter">N</span>
|
||||||
<button class="sns-btn sns-kakao" id="btnKakao" type="button" hidden aria-label="카카오로 로그인">
|
</button>
|
||||||
<span class="sns-kakao-bubble" aria-hidden="true"></span>
|
<button class="sns-btn sns-kakao" id="btnKakao" type="button" hidden aria-label="카카오로 로그인">
|
||||||
</button>
|
<span class="sns-kakao-bubble" aria-hidden="true"></span>
|
||||||
<button class="sns-btn sns-google" id="btnGoogle" type="button" hidden aria-label="구글로 로그인">
|
</button>
|
||||||
<span class="sns-google-g">G</span>
|
<button class="sns-btn sns-google" id="btnGoogle" type="button" hidden aria-label="구글로 로그인">
|
||||||
</button>
|
<span class="sns-google-g">G</span>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button class="btn" id="btnLogin" type="button">로그인</button>
|
<button class="btn" id="btnLogin" type="button">로그인</button>
|
||||||
<button class="btn" id="btnLogout" type="button" hidden>로그아웃</button>
|
<button class="btn" id="btnLogout" type="button" hidden>로그아웃</button>
|
||||||
|
|||||||
42
styles.css
42
styles.css
@@ -182,26 +182,34 @@ html[data-theme="light"] .topbar {
|
|||||||
|
|
||||||
.sns-login {
|
.sns-login {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
padding: 8px 10px;
|
padding: 10px 12px;
|
||||||
border-radius: 14px;
|
border-radius: 18px;
|
||||||
border: 1px solid var(--border);
|
border: 1px solid var(--border);
|
||||||
background: rgba(255, 255, 255, 0.03);
|
background: rgba(255, 255, 255, 0.03);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.sns-row {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
.sns-label {
|
.sns-label {
|
||||||
font-size: 12px;
|
font-size: 15px;
|
||||||
color: var(--muted2);
|
font-weight: 800;
|
||||||
margin-right: 4px;
|
letter-spacing: -0.02em;
|
||||||
|
color: var(--text);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sns-btn {
|
.sns-btn {
|
||||||
width: 42px;
|
width: 56px;
|
||||||
height: 42px;
|
height: 56px;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
border: 1px solid rgba(0, 0, 0, 0.08);
|
border: 2px solid rgba(0, 0, 0, 0.08);
|
||||||
display: grid;
|
display: grid;
|
||||||
place-items: center;
|
place-items: center;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
@@ -231,7 +239,7 @@ html[data-theme="light"] .topbar {
|
|||||||
|
|
||||||
.sns-letter {
|
.sns-letter {
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
font-size: 18px;
|
font-size: 24px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
letter-spacing: -0.02em;
|
letter-spacing: -0.02em;
|
||||||
}
|
}
|
||||||
@@ -242,32 +250,32 @@ html[data-theme="light"] .topbar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.sns-kakao-bubble {
|
.sns-kakao-bubble {
|
||||||
width: 16px;
|
width: 20px;
|
||||||
height: 13px;
|
height: 16px;
|
||||||
background: rgba(0, 0, 0, 0.82);
|
background: rgba(0, 0, 0, 0.82);
|
||||||
border-radius: 6px;
|
border-radius: 8px;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sns-kakao-bubble::after {
|
.sns-kakao-bubble::after {
|
||||||
content: "";
|
content: "";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: -4px;
|
bottom: -5px;
|
||||||
left: 4px;
|
left: 6px;
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
border: 4px solid transparent;
|
border: 5px solid transparent;
|
||||||
border-top-color: rgba(0, 0, 0, 0.82);
|
border-top-color: rgba(0, 0, 0, 0.82);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sns-google {
|
.sns-google {
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border-color: rgba(66, 133, 244, 0.35);
|
border-color: rgba(66, 133, 244, 0.4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.sns-google-g {
|
.sns-google-g {
|
||||||
font-weight: 900;
|
font-weight: 900;
|
||||||
font-size: 18px;
|
font-size: 24px;
|
||||||
background: conic-gradient(from 210deg, #ea4335 0 25%, #fbbc05 25% 50%, #34a853 50% 75%, #4285f4 75% 100%);
|
background: conic-gradient(from 210deg, #ea4335 0 25%, #fbbc05 25% 50%, #34a853 50% 75%, #4285f4 75% 100%);
|
||||||
-webkit-background-clip: text;
|
-webkit-background-clip: text;
|
||||||
background-clip: text;
|
background-clip: text;
|
||||||
|
|||||||
Reference in New Issue
Block a user