welcome page

foundation/welcome
nicholas antonov 2018-05-02 07:55:23 -04:00
parent 9b82048ca6
commit 4046884ef4
2 changed files with 20 additions and 80 deletions

View File

@ -3,17 +3,24 @@
{% block title %}Welcome to Unglue.It{% endblock %} {% block title %}Welcome to Unglue.It{% endblock %}
{% block doccontent %} {% block doccontent %}
<div id="welcomesearch"> <div class="registration">
<p>Welcome, {{user.username}}!</p><p id="link-to-next"></p> <div class="registration-content">
<label>Search and add free-licenced books! </label>
<form action="{% url 'search' %}" method="get"> <h1>Welcome, {{user.username}}!</h1>
<input type="text" onfocus="imgfocus()" onblur="imgblur(0)" size="25" class="inputbox" name="q" value="{{ q }}"> <h2>
<input type="submit" class="greenbutton" value="Search"> <label>Search and add free-licenced books! </label>
</form> </h2>
</div> <div id="header-search-bar">
<br /> <form action="{% url 'search' %}" method="get">
<div class="welcomealternatives"> <input role="search" type="text" placeholder="Search" id="welcomesearch" size="25" onfocus="imgfocus()" onblur="imgblur(15)" class="inputbox" name="q" value="{{ q }}"></input>
Or you can <a href="{% url 'edit_user' %}">change your username</a> &#151; <a href="{% url 'work_list' 'popular' %}">see the site's favorite books</a> &#151; <a href="{% url 'feedback' %}">send us feedback</a> &#151; <a href="{% url 'notification_notice_settings' %}">manage your contact preferences</a> <i class="fa fa-search"></i>
</form>
</div>
<br />
<div class="welcomealternatives">
Or you can <a href="{% url 'edit_user' %}">change your username</a> &#151; <a href="{% url 'work_list' 'popular' %}">see the site's favorite books</a> &#151; <a href="{% url 'feedback' %}">send us feedback</a> &#151; <a href="{% url 'notification_notice_settings' %}">manage your contact preferences</a>
</div>
</div>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -7,14 +7,7 @@
justify-content: center; justify-content: center;
.helptext { padding: 10px;
font-style: italic;
&:before {
white-space: pre;
content: "\A";
}
}
} }
.google-signup { .google-signup {
@ -34,12 +27,12 @@
line-height:0.1em; line-height:0.1em;
margin:10px 0 20px; margin:10px 0 20px;
} }
.linetext-inner { .linetext-inner {
background:#fff; background:#fff;
padding:0 10px; padding:0 10px;
} }
.login_box { .login_box {
border: solid 3px $blue-grey; border: solid 3px $blue-grey;
@include one-border-radius(5px); @include one-border-radius(5px);
@ -64,73 +57,13 @@
} }
} }
.actionbutton { .actionbutton {
@include actionbuttons; @include actionbuttons;
float: left; float: left;
} }
#welcomesearch {
label {
display: block;
margin: 0 auto;
font-size: $font-size-header;
padding-bottom: 10px;
}
p {
margin-bottom: 5px;
}
form {
margin: 0 auto;
width:210px;
background:url("#{$image-base}landingpage/search-box-two.png") 0 0 no-repeat;
height:36px;
display:block;
overflow:hidden;
}
input {
&.inputbox {
border:none;
color:#66942e;
@include height(26px);
font-size: $font-size-default;
float:left;
padding:0;
margin:5px 0 5px 20px;
width: 149px;
outline: none;
&:focus {
border: none;
}
}
&.greenbutton[type="submit"] {
background:url("#{$image-base}landingpage/search-button-two.png") 0 0 no-repeat;
width:40px;
height:40px;
padding:0;
margin:0;
border:none;
display:block;
float: right;
text-indent:-10000px;
font-size:0;
@include one-border-radius(0);
}
}
}
.welcomealternatives { .welcomealternatives {
border-top: 1px solid $blue-grey; border-top: 1px solid $blue-grey;
margin-top: 10px; margin-top: 10px;
padding-top: 5px; padding-top: 5px;
} }
label:before {
content: "\A";
white-space: pre;
}