Skip to content
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
feat: 로그인/회원가입 맨밑 안내 문구
  • Loading branch information
ethan0587 committed Aug 19, 2026
commit 6ea816abb6e0065f9499002d5b3eeb776e738647
18 changes: 18 additions & 0 deletions static/css/auth.css
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,24 @@
background: var(--cd-auth-kakao);
}

/* 카카오 로그인 아래의 계정 전환 링크 */
.cd-auth__alternate {
margin-top: 20x;
text-align: center;
}

.cd-auth__alternate-link {
color: #8A7B6E;
font-family: var(--cd-font-body);
font-size: 10px;
text-decoration: underline;
text-underline-offset: 2px;
}

.cd-auth__alternate-link:hover {
color: var(--cd-brown-ink);
}

@media (prefers-reduced-motion: reduce) {

.cd-auth__submit,
Expand Down
5 changes: 4 additions & 1 deletion templates/accounts/auth_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ <h1 class="cd-auth__title">{% block auth_title %}{% endblock %}</h1>
<!-- 카카오만 settings.py에 실제로 설치·설정돼 있어 지금 바로 동작한다. -->
<a href="/auth/social/kakao/login/" class="cd-auth__social-btn cd-auth__social-btn--kakao">카카오로 로그인하기</a>
</div>
<div class="cd-auth__alternate">
{% block auth_alternate %}{% endblock %}
</div>
</div>
</div>

Expand All @@ -52,4 +55,4 @@ <h1 class="cd-auth__title">{% block auth_title %}{% endblock %}</h1>
{% block extra_js %}{% endblock %}
</body>

</html>
</html>
6 changes: 5 additions & 1 deletion templates/accounts/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@

{% block auth_submit_label %}로그인하기{% endblock %}

{% block auth_alternate %}
<a href="{% url 'signup-page' %}" class="cd-auth__alternate-link">아직 계정이 없으신가요?</a>
{% endblock %}

{% block extra_js %}
<script>
document.getElementById('cd-auth-form')?.setAttribute('data-auth-mode', 'login');
</script>
{% endblock %}
{% endblock %}
6 changes: 5 additions & 1 deletion templates/accounts/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@

{% block auth_submit_label %}회원가입하기{% endblock %}

{% block auth_alternate %}
<a href="{% url 'login-page' %}" class="cd-auth__alternate-link">이미 계정이 있으신가요?</a>
{% endblock %}

{% block extra_js %}
<script>
document.getElementById('cd-auth-form')?.setAttribute('data-auth-mode', 'signup');
</script>
{% endblock %}
{% endblock %}