From: Jef van Schendel Date: Sat, 20 Aug 2011 18:54:41 +0000 (+0200) Subject: New layout for root.html X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c9fe89a49920bae7307e8691c8ac1a578681b48f;p=mediagoblin.git New layout for root.html --- diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css index 124a5729..16d87139 100644 --- a/mediagoblin/static/css/base.css +++ b/mediagoblin/static/css/base.css @@ -93,7 +93,7 @@ a.mediagoblin_logo{ font-weight: bold; } -.header_submit{ +.header_submit, .header_submit_highlight{ color: #272727; background-color: #aaa; background-image: -webkit-gradient(linear, left top, left bottom, from(##D2D2D2), to(#aaa)); @@ -111,6 +111,10 @@ a.mediagoblin_logo{ font-style: normal; } +.header_submit_highlight{ +background-image: -moz-linear-gradient(center top , rgb(134, 212, 177), rgb(109, 173, 144)); +} + .mediagoblin_footer { height: 30px; border-top: 1px solid #333; diff --git a/mediagoblin/static/images/frontpage_image.png b/mediagoblin/static/images/frontpage_image.png new file mode 100644 index 00000000..689eb2c2 Binary files /dev/null and b/mediagoblin/static/images/frontpage_image.png differ diff --git a/mediagoblin/templates/mediagoblin/root.html b/mediagoblin/templates/mediagoblin/root.html index 06beb436..764609b6 100644 --- a/mediagoblin/templates/mediagoblin/root.html +++ b/mediagoblin/templates/mediagoblin/root.html @@ -20,28 +20,29 @@ {% from "mediagoblin/utils/object_gallery.html" import object_gallery %} {% block mediagoblin_content %} -

{% trans %}Welcome to GNU MediaGoblin!{% endtrans %}

- {% if request.user %} -

- - {%- trans %}Submit an item{% endtrans -%} - -

+

Explore

{% else %} -

- {% trans login_url=request.urlgen('mediagoblin.auth.login') -%} - If you have an account, you can Login. - {%- endtrans %} -

- {% if allow_registration %} -

- {% trans register_url=request.urlgen('mediagoblin.auth.register') -%} - If you don't have an account, please Register. - {%- endtrans %} -

- {% endif %} +
+

{% trans %}Hi there, media lover! MediaGoblin is...{% endtrans %}

+ + {% if allow_registration %} +

Excited to join us? To add your own media, make collections and save favorites...

+ Create a free account or + Set up MediaGoblin on your own server + {% endif %} +

+
+ +
+
{% endif %} - +

Most recent media

{{ object_gallery(request, media_entries, pagination) }} {% endblock %}