diff --git a/media/css/core.css b/media/css/core.css index da9652048..063edf5e5 100644 --- a/media/css/core.css +++ b/media/css/core.css @@ -297,6 +297,45 @@ div.menu-user div.menu-dropdown.menu-dropped { .home-header-links .login { font-weight: bold; color: #e3e3e3; text-shadow: 0px 1px 0 rgba(0, 0, 0, 0.5); } .home-header-links .login:hover { text-align: center; color: #fff; } +section { + margin-bottom: 60px; +} +.home .lead { + font-size: 20px; + line-height: 30px; +} +.home .feature { + float: left; + width: 48%; + margin-left: 1%; + margin-right: 1%; +} + +a.cta-btn { + /* Make this link look like a button */ + width: 300px; + font-weight: bold; + text-align: center; + display: inline-block; + margin: .3em 0em; + font-size: 1.1em; + color: #fff; + text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5); + background: #e6e6e6 url(../images/gradient.png) repeat-x bottom left; + background-color: #8ECC4C; + border: 1px solid #bfbfbf; + border-color: #6B9939; + border-bottom-color: #50732B; + padding: 8px 15px; + border-radius: 3px; + text-decoration: none; + box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.5) inset; + -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.5) inset; + -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.5) inset; +} +a.cta-btn:hover, a.cta-btn:active { + color: #fff; +} /* wide search bar */ diff --git a/readthedocs/core/views/__init__.py b/readthedocs/core/views/__init__.py index 50c82533c..dfed851b0 100644 --- a/readthedocs/core/views/__init__.py +++ b/readthedocs/core/views/__init__.py @@ -39,19 +39,6 @@ class HomepageView(TemplateView): def get_context_data(self, **kwargs): """Add latest builds and featured projects.""" context = super(HomepageView, self).get_context_data(**kwargs) - latest = [] - latest_builds = ( - Build.objects - .filter( - project__privacy_level=constants.PUBLIC, - success=True, - ) - .order_by('-date') - )[:100] # yapf: disable - for build in latest_builds: - if (build.project not in latest and len(latest) < 10): - latest.append(build.project) - context['project_list'] = latest context['featured_list'] = Project.objects.filter(featured=True) return context diff --git a/readthedocs/templates/base.html b/readthedocs/templates/base.html index 4234a80bb..fc6358e08 100644 --- a/readthedocs/templates/base.html +++ b/readthedocs/templates/base.html @@ -8,13 +8,15 @@ + {% block extra_metas %}{% endblock extra_metas %} +