Permalink
Browse files

some improvements. Now logo is clikable and will load index page.

An expected behaviour for any website.
  • Loading branch information...
1 parent f287f85 commit 9e0cbd00220a6cfe0a21ad38cfff9e16c4ae20f1 @kra3 kra3 committed Mar 7, 2011
Showing with 13 additions and 6 deletions.
  1. +9 −2 py3k/static/css/style.css
  2. +4 −4 py3k/templates/layout.html
View
11 py3k/static/css/style.css
@@ -120,10 +120,17 @@ section#logo{
height: 150px;
margin-bottom:20px;
}
-section#logo > span:nth-child(odd){
+section#logo > a, section#logo > a:hover{
+ text-decoration:none;
+ display:block;
+ height:100%;
+ width:100%;
+ color:inherit;
+}
+section#logo span:nth-child(odd){
font-size:36px;
}
-section#logo > span:nth-child(even){
+section#logo span:nth-child(even){
font-size:26px;
}
section#sub{
View
8 py3k/templates/layout.html
@@ -26,18 +26,18 @@
<div id="container">
<header>
- <section id="logo">
+ <section id="logo"><a href="{{ url_for('index') }}">
<span class="big">get</span>
<span class="works">python</span>
<span>3</span>
<span class="big">.net</span>
- </section>
+ </a></section>
<section id="sub">
<h1>Want to use <span class="works">Python 3</span><br> for your next project ?</h1>
<p>Find out all the third party libraries supported by Python 3! You can also submit feedback about its compatibility with Python 3.</p>
</section> <br style="clear: both;">
- <form action="action="{{ url_for('packages') }}" method="post">
- <input id="search" type="search" name=pkgname placeholder="Search Distros" autofocus required>
+ <form action="{{ url_for('packages') }}" method="post">
+ <input id="search" type="search" name='pkgname' placeholder="Search Distros" autofocus required>
<input value="Search" type="submit">
<a href="{{ url_for('packages') }}">Browse All</a>
</form>

0 comments on commit 9e0cbd0

Please sign in to comment.