Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

nav 태그를 body 태그 안으로 옮겨주세요. #7

Open
shinkeonkim opened this issue Jun 19, 2021 · 0 comments
Open

nav 태그를 body 태그 안으로 옮겨주세요. #7

shinkeonkim opened this issue Jun 19, 2021 · 0 comments

Comments

@shinkeonkim
Copy link
Member

<nav class="navbar navbar-expand-lg navbar-light bg-light">
<div class="container-fluid">
<a class="navbar-brand" href="{% url 'main' %}">Mentorink</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav">
<!-- 로그인이 된 상태 -->
{% if user.is_authenticated %}
<a class="nav-link" href="{% url 'mypage' %}">Mypage</a>
{% endif %}
<!-- 로그인이 되지 않은 상태 -->
{% if not user.is_authenticated %}
<a class="nav-link" href="{% url 'login' %}">Login</a>
<a class="nav-link" href="{% url '#' %}">Join</a>
{% endif %}
</div>
</div>
</div>
</nav>

nav 태그는 head 태그가 아닌 body 태그안에 들어가 있어야 합니다.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant