mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2024-09-21 16:33:22 +00:00
首页增加登录选项,之后实现页面之间的跳转问题
This commit is contained in:
parent
2dbd9c24a5
commit
530b45b39c
@ -29,6 +29,36 @@
|
|||||||
padding: 20px 20px 0 20px;
|
padding: 20px 20px 0 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#login {
|
||||||
|
float: right;
|
||||||
|
position: relative;
|
||||||
|
height: 30px;
|
||||||
|
line-height: 64px;
|
||||||
|
margin-right: 30px;
|
||||||
|
z-index: 10;
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login-zone .button:first-child {
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 0 2em;
|
||||||
|
text-transform: none;
|
||||||
|
line-height: 2em;
|
||||||
|
height: 2em;
|
||||||
|
border-radius: 2em;
|
||||||
|
border: 1px solid #FFF;
|
||||||
|
outline: 0;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.button:first-child {
|
||||||
|
margin-right: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
#name {
|
#name {
|
||||||
font-size: 45px;
|
font-size: 45px;
|
||||||
margin-right: 20px;
|
margin-right: 20px;
|
||||||
@ -100,6 +130,12 @@
|
|||||||
<a href="/groups/">小组</a>
|
<a href="/groups/">小组</a>
|
||||||
<a href="/about/">关于</a>
|
<a href="/about/">关于</a>
|
||||||
|
|
||||||
|
{% if not request.user.is_authenticated %}
|
||||||
|
<div id="login">
|
||||||
|
<a href="/login/" class="login button">登录</a>
|
||||||
|
<a href="/register/" class="register button">注册</a>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user