local stuff

This commit is contained in:
flash 2017-09-06 21:32:04 +02:00
parent 3275a6138b
commit fa06e87e0b
13 changed files with 31 additions and 12 deletions

View file

@ -8,8 +8,13 @@
text-shadow: 0 @text-shadow-distance @text-shadow-size fade(@grey-0, @text-shadow-opacity);
padding: 2px;
display: flex;
justify-content: space-between;
&__inner {
max-width: @container-max-width;
margin: 0 auto;
display: flex;
justify-content: space-between;
}
&__entry {
padding-left: 12px;

View file

@ -0,0 +1,3 @@
{% extends '@nova/errors/master.twig' %}
{% set banner = '/images/access-denied.png' %}

View file

@ -0,0 +1,3 @@
{% extends '@nova/errors/master.twig' %}
{% set banner = '/images/not-found.png' %}

View file

@ -0,0 +1 @@
{% extends '@nova/errors/master.twig' %}

View file

@ -0,0 +1 @@
{% extends '@nova/errors/master.twig' %}

View file

@ -0,0 +1 @@
{% extends '@nova/master.twig' %}

View file

@ -1,7 +1,7 @@
{% extends '@nova/master.twig' %}
{% extends '@nova/home/master.twig' %}
{% set banner_classes = user.isActive ? "banner--large" : "banner--insane landing__banner" %}
{% set banner = user.isActive ? route('user.header', user.id) : "https://i.flash.moe/7131467636550.jpg" %}
{% set banner = user.isActive ? route('user.header', user.id) : "https://flash.s-ul.eu/OH5MekNx" %}
{% block banner_content %}
{% if user.isActive %}

View file

@ -0,0 +1 @@
{% extends '@nova/master.twig' %}

View file

@ -16,8 +16,8 @@
</head>
<body>
<div class="container">
<div class="container__wrapper {{ wrapper_classes|default('') }}">
<nav class="header">
<nav class="header">
<div class="header__inner">
<div class="header__navigation">
<a class="header__entry fa-home" href="{{ route('main.index') }}">home</a>
<a class="header__entry fa-comments" href="{{ route('forums.index') }}">forum</a>
@ -32,20 +32,22 @@
{% else %}
<a class="header__user" href="#">
<div class="header__username">login</div>
<div class="header__avatar" style="background-image: url('/images/no-avatar.png')"></div>
<div class="header__avatar" style="background-image: url('{{ route('user.avatar', 0) }}')"></div>
</a>
{% endif %}
</nav>
</div>
</nav>
<div class="container__wrapper {{ wrapper_classes|default('') }}">
<noscript>
<div class="banner" style="background-image: url('/images/enable-javascript.png')"></div>
</noscript>
<div class="banner {{ banner_large is defined and banner_large ? 'banner--large' : '' }} {{ banner_classes|default('') }}" style="background-image: url('{{ banner|default('/images/default-banner.png') }}')">
{{ block('banner_content') }}
{{ block('banner_content') is defined ? block('banner_content') : '' }}
</div>
{{ block('content') }}
{{ block('content') is defined ? block('content') : '' }}
</div>
<div class="container__footer">
<div class="container__footer-copyright">flash.moe 2013-{{ ''|date('Y') }}</div>

View file

@ -1,4 +1,4 @@
{% extends '@nova/master.twig' %}
{% extends '@nova/status/master.twig' %}
{% set title = 'Status' %}
{% set banner = '/images/status-banner.png' %}

View file

@ -0,0 +1 @@
{% extends '@nova/master.twig' %}

View file

@ -0,0 +1 @@
{% extends '@nova/master.twig' %}

View file

@ -1,4 +1,4 @@
{% extends '@nova/master.twig' %}
{% extends '@nova/user/master.twig' %}
{% set title = 'profile / ' ~ profile.username %}
{% set banner_large = true %}