New layout for root.html
This commit is contained in:
parent
f5782fac43
commit
c9fe89a499
@ -93,7 +93,7 @@ a.mediagoblin_logo{
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header_submit{
|
.header_submit, .header_submit_highlight{
|
||||||
color: #272727;
|
color: #272727;
|
||||||
background-color: #aaa;
|
background-color: #aaa;
|
||||||
background-image: -webkit-gradient(linear, left top, left bottom, from(##D2D2D2), to(#aaa));
|
background-image: -webkit-gradient(linear, left top, left bottom, from(##D2D2D2), to(#aaa));
|
||||||
@ -111,6 +111,10 @@ a.mediagoblin_logo{
|
|||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.header_submit_highlight{
|
||||||
|
background-image: -moz-linear-gradient(center top , rgb(134, 212, 177), rgb(109, 173, 144));
|
||||||
|
}
|
||||||
|
|
||||||
.mediagoblin_footer {
|
.mediagoblin_footer {
|
||||||
height: 30px;
|
height: 30px;
|
||||||
border-top: 1px solid #333;
|
border-top: 1px solid #333;
|
||||||
|
BIN
mediagoblin/static/images/frontpage_image.png
Normal file
BIN
mediagoblin/static/images/frontpage_image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 64 KiB |
@ -20,28 +20,29 @@
|
|||||||
{% from "mediagoblin/utils/object_gallery.html" import object_gallery %}
|
{% from "mediagoblin/utils/object_gallery.html" import object_gallery %}
|
||||||
|
|
||||||
{% block mediagoblin_content %}
|
{% block mediagoblin_content %}
|
||||||
<h1>{% trans %}Welcome to GNU MediaGoblin!{% endtrans %}</h1>
|
|
||||||
|
|
||||||
{% if request.user %}
|
{% if request.user %}
|
||||||
<p>
|
<h1>Explore</h1>
|
||||||
<a href="{{ request.urlgen('mediagoblin.submit.start') }}">
|
|
||||||
{%- trans %}Submit an item{% endtrans -%}
|
|
||||||
</a>
|
|
||||||
</p>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>
|
<div class="grid_11 alpha">
|
||||||
{% trans login_url=request.urlgen('mediagoblin.auth.login') -%}
|
<h1>{% trans %}Hi there, media lover! MediaGoblin is...{% endtrans %}</h1>
|
||||||
If you have an account, you can <a href="{{ login_url }}">Login</a>.
|
<ul>
|
||||||
{%- endtrans %}
|
<li>The perfect place for your media! No, seriously.</li>
|
||||||
</p>
|
<li>This is just placeholder text though. In the future this will all make sense, trust me.</li>
|
||||||
|
<li>It might talk about all the awesome features we've got. Or about how great federation is.</li>
|
||||||
|
<li>Or that it's free software and a GNU project, so anyone can help improve and share it.</li>
|
||||||
|
<li>No matter what, it's probably good to have <a href="example.com">a link</a> here. You never know.</li>
|
||||||
|
</ul>
|
||||||
{% if allow_registration %}
|
{% if allow_registration %}
|
||||||
<p>
|
<p>Excited to join us? To add your own media, make collections and save favorites...<p>
|
||||||
{% trans register_url=request.urlgen('mediagoblin.auth.register') -%}
|
<a class="header_submit_highlight" href="{{ request.urlgen('mediagoblin.auth.register') }}">Create a free account</a> or
|
||||||
If you don't have an account, please <a href="{{ register_url }}">Register</a>.
|
<a class="header_submit" href="http://wiki.mediagoblin.org/HackingHowto">Set up MediaGoblin on your own server</a>
|
||||||
{%- endtrans %}
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
<div class="grid_5 omega">
|
||||||
|
<img src="{{ request.staticdirect('/images/frontpage_image.png') }}" />
|
||||||
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<h2>Most recent media</h2>
|
||||||
{{ object_gallery(request, media_entries, pagination) }}
|
{{ object_gallery(request, media_entries, pagination) }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user