Commit 8702dada authored by Karl Hasselbring's avatar Karl Hasselbring
Browse files

Fixed: Footer wird jetzt einheitlich erzeugt und jeweils angepasst angezeigt

parent 81f49831
footer {
margin: 30px 0px;
bottom: 0;
margin: 10px 0px 30px 0px;
width: 100%;
display: flex;
justify-content: space-around;
......@@ -16,4 +15,14 @@ footer {
img {
max-width: 100%;
}
&.startPageFooter {
position: absolute;
bottom: 0;
}
&.footer-resultpage {
justify-content: center;
a {
color: @result-page-color-black;
}
}
}
\ No newline at end of file
@body-background-color: @result-page-body-background-color;
@footer-a-color: @result-page-color-black!important;
@hostlabel-a-link-or-visited-color: @result-page-color-white;
@hostlabel-background-color: @result-page-color-strong-grey;
@navbar-resultpage-background-color: @result-page-color-white;
......@@ -38,13 +37,6 @@ body {
background-color: white;
}
.footer-resultpage {
justify-content: center;
a {
color: @footer-a-color;
}
}
.sideBar {
border-left: none;
input#nav0:checked~& {
......
......@@ -38,12 +38,7 @@
font-family: Liberation Sans, sans-serif;
}
html {
height: 100%;
}
body {
height: 100%;
margin: 0;
&>div {
padding-top: 70px;
......
@if ($type === 'startpage' || $type === 'subpage')
<footer class="{{ $id }} noprint">
<div>
<a href="https://www.suma-ev.de/" >
<img src="/img/suma_ev_logo-m1-greyscale.png" alt="SUMA-EV Logo"></a>
</div>
<div id="info">
<a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "kontakt") }}">{{ trans('staticPages.nav5') }}</a> - <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "impressum") }}">{{ trans('staticPages.nav8') }}</a>
{{ trans('staticPages.sumaev.1') }}<a href="https://www.suma-ev.de/">{{ trans('staticPages.sumaev.2') }}</a>
</div>
<div>
<a href="https://www.uni-hannover.de/" >
<img src="/img/luh_metager.png" alt="LUH Logo"></a>
</div>
</footer>
@elseif ($type === 'resultpage')
<footer class="footer-resultpage">
<div>
<a class="btn btn-default" href="/">{!! trans('resultPage.startseite') !!}</a>
</div>
<div>
<a class="btn btn-default" href="/impressum/">{!! trans('resultPage.impressum') !!}</a>
</div>
</footer>
@endif
\ No newline at end of file
@extends('layouts.staticPages')
@extends('layouts.staticPages', ['page' => 'startpage'])
@section('homeIcon')
<a class="navbar-brand visible-xs" href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "/") }}">
......
......@@ -33,14 +33,7 @@
{!! trans('kontakt.form.1') !!}</a>
</strong>
</div>
<footer class="footer-resultpage">
<div>
<a class="btn btn-default" href="/">{!! trans('resultPage.startseite') !!}</a>
</div>
<div>
<a class="btn btn-default" href="/impressum/">{!! trans('resultPage.impressum') !!}</a>
</div>
</footer>
@include('layouts.footer', ['type' => 'resultpage', 'id' => 'resultPageFooter'])
<img src="{{ action('ImageController@generateImage')}}?site={{ urlencode(url()->current()) }}" class="hidden" />
<script type="text/javascript" src="{{ elixir('js/lib.js') }}"></script>
<script type="text/javascript" src="{{ elixir('js/scriptResultPage.js') }}"></script>
......
......@@ -51,20 +51,9 @@
@yield('content')
</main>
@yield('optionalContent')
<footer class="footer-static-pages noprint">
<div>
<a href="https://www.suma-ev.de/" >
<img src="/img/suma_ev_logo-m1-greyscale.png" alt="SUMA-EV Logo"></a>
</div>
<div id="info">
<a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "kontakt") }}">{{ trans('staticPages.nav5') }}</a> - <a href="{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "impressum") }}">{{ trans('staticPages.nav8') }}</a>
{{ trans('staticPages.sumaev.1') }}<a href="https://www.suma-ev.de/">{{ trans('staticPages.sumaev.2') }}</a>
</div>
<div>
<a href="https://www.uni-hannover.de/" >
<img src="/img/luh_metager.png" alt="LUH Logo"></a>
</div>
</footer>
@if (isset($page) && $page === 'startpage') @include('layouts.footer', ['type' => 'startpage', 'id' => 'startPageFooter'])
@else @include('layouts.footer', ['type' => 'subpage', 'id' => 'subPageFooter'])
@endif
<img src="{{ action('ImageController@generateImage')}}?site={{ urlencode(url()->current()) }}" class="hidden" />
</div>
</body>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment