FEATURE #2351 @45m: minor UI tweaks, add error templates
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
@if (isset($page->traineeTeamCategory))
|
||||
<div class="text-center trainee-team">
|
||||
<h2>{{$page->traineeTeamCategory->name}}</h2>
|
||||
|
||||
@foreach($page->traineeTeamCategory->content as $i => $subpage)
|
||||
<div class="column text-center small-12 medium-{{ceil(12/count($page->traineeTeamCategory->content))}}"
|
||||
data-equalizer-watch>
|
||||
<a href="{{route('page.content', ['url' => $subpage->url])}}">
|
||||
@if(empty($subpage->titlePhoto))
|
||||
<img class="thumbnail" src="@asset('visitor/images/avatar.png')" alt="{{$subpage->title}}">
|
||||
@else
|
||||
<img class="thumbnail" src="@upload($subpage->titlePhoto)" alt="{{$subpage->title}}">
|
||||
@endif
|
||||
<h4>{{$subpage->title}}</h4>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
+2
@@ -1,5 +1,7 @@
|
||||
@extendVisitor('defaultLayout')
|
||||
|
||||
@section('bodyClass', 'photo-bg')
|
||||
|
||||
@section('topMenu')
|
||||
@include(\App\CMS\Helpers\Template::name('commonHeader'))
|
||||
@endsection
|
||||
|
||||
+3
-17
@@ -1,5 +1,7 @@
|
||||
@extendVisitor('defaultLayout')
|
||||
|
||||
@section('bodyClass', 'photo-bg')
|
||||
|
||||
@section('topMenu')
|
||||
<h1 class="text-center">
|
||||
<a href="{{route('page.index')}}">
|
||||
@@ -48,22 +50,6 @@
|
||||
<div class="row content-container">
|
||||
{!! $page->pageContent !!}
|
||||
|
||||
<div class="text-center trainee-team">
|
||||
<h2>{{$page->traineeTeamCategory->name}}</h2>
|
||||
|
||||
@foreach($page->traineeTeamCategory->content as $i => $subpage)
|
||||
<div class="column text-center small-12 medium-{{ceil(12/count($page->traineeTeamCategory->content))}}"
|
||||
data-equalizer-watch>
|
||||
<a href="{{route('page.content', ['url' => $subpage->url])}}">
|
||||
@if(empty($subpage->titlePhoto))
|
||||
<img class="thumbnail" src="@asset('visitor/images/avatar.png')" alt="{{$subpage->title}}">
|
||||
@else
|
||||
<img class="thumbnail" src="@upload($subpage->titlePhoto)" alt="{{$subpage->title}}">
|
||||
@endif
|
||||
<h4>{{$subpage->title}}</h4>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@include('modules.staticpages.visitor._partials.traineeTeamList')
|
||||
</div>
|
||||
@endsection
|
||||
-71
@@ -1,71 +0,0 @@
|
||||
@extendVisitor('defaultLayout')
|
||||
|
||||
@section('bodyClass', 'photo-bg')
|
||||
|
||||
@section('topMenu')
|
||||
<h1 class="text-center">
|
||||
<a href="{{route('page.index')}}">
|
||||
<img class="logo" src="@asset('visitor/images/logo.png')" alt="">
|
||||
{{setting('pageName')}}
|
||||
</a>
|
||||
</h1>
|
||||
|
||||
<div class="title-bar text-right" data-responsive-toggle="main-menu" data-hide-for="medium">
|
||||
<button class="menu-icon" type="button" data-toggle></button>
|
||||
</div>
|
||||
|
||||
<header class="hide-for-small hide-for-medium hide-for-large top-bar centered text-center">
|
||||
<div id="main-menu">
|
||||
@widgetArea('mainMenu')
|
||||
</div>
|
||||
</header>
|
||||
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
@php $images = $page->files()->where('mime_type', 'like', 'image%')->get(); @endphp
|
||||
@if(count($images) > 0)
|
||||
<div class="orbit" role="region" data-orbit
|
||||
data-options="animationDuration:3000; animInFromLeft:fade-in; animInFromRight:fade-in; animOutToLeft:fade-out; animOutToRight:fade-out;">
|
||||
<ul class="orbit-container">
|
||||
@foreach($images as $i => $image)
|
||||
<li class="orbit-slide slow @if($i == 0) is-active @endif">
|
||||
<img class="orbit-image" src="@upload($image->filename)" alt="" />
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
<nav class="orbit-bullets">
|
||||
@foreach($images as $i => $image)
|
||||
<button @if($i == 0) class="is-active" @endif data-slide="{{$i}}"></button>
|
||||
@endforeach
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
<header class="hide-for-small-only top-bar centered text-center">
|
||||
@widgetArea('mainMenu')
|
||||
</header>
|
||||
@endif
|
||||
|
||||
<div class="row content-container">
|
||||
{!! $page->pageContent !!}
|
||||
|
||||
<div class="text-center trainee-team">
|
||||
<h2>{{$page->traineeTeamCategory->name}}</h2>
|
||||
|
||||
@foreach($page->traineeTeamCategory->content as $i => $subpage)
|
||||
<div class="column text-center small-12 medium-{{ceil(12/count($page->traineeTeamCategory->content))}}"
|
||||
data-equalizer-watch>
|
||||
<a href="{{route('page.content', ['url' => $subpage->url])}}">
|
||||
@if(empty($subpage->titlePhoto))
|
||||
<img class="thumbnail" src="@asset('visitor/images/avatar.png')" alt="{{$subpage->title}}">
|
||||
@else
|
||||
<img class="thumbnail" src="@upload($subpage->titlePhoto)" alt="{{$subpage->title}}">
|
||||
@endif
|
||||
<h4>{{$subpage->title}}</h4>
|
||||
</a>
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
@extendVisitor('defaultLayout')
|
||||
|
||||
@section('bodyClass', 'photo-bg')
|
||||
|
||||
@section('topMenu')
|
||||
@include(\App\CMS\Helpers\Template::name('commonHeader'))
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
|
||||
@if (!empty($page->titlePhoto))
|
||||
<div class="row title-photo">
|
||||
<img src="@upload($page->titlePhoto)" alt="">
|
||||
</div>
|
||||
@endif
|
||||
<div class="row content-container">
|
||||
<h1>{{$page->title}}</h1>
|
||||
|
||||
{!! $page->pageContent !!}
|
||||
|
||||
@include('modules.staticpages.visitor._partials.traineeTeamList')
|
||||
</div>
|
||||
@endsection
|
||||
+2
@@ -1,5 +1,7 @@
|
||||
@extendVisitor('defaultLayout')
|
||||
|
||||
@section('bodyClass', 'photo-bg')
|
||||
|
||||
@section('topMenu')
|
||||
@include(\App\CMS\Helpers\Template::name('commonHeader'))
|
||||
@endsection
|
||||
|
||||
@@ -4,8 +4,9 @@
|
||||
<meta charset="utf-8" />
|
||||
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
|
||||
<link href='https://fonts.googleapis.com/css?family=Hind+Siliguri:400,500,700,300&subset=latin,latin-ext'
|
||||
rel='stylesheet' type='text/css'>
|
||||
<link href='https://fonts.googleapis.com/css?family=Ubuntu:400,300,500,700&subset=latin-ext,latin' rel='stylesheet'
|
||||
type='text/css'>
|
||||
<link href="https://fonts.googleapis.com/css?family=Comfortaa&subset=latin-ext" rel="stylesheet">
|
||||
<link rel="stylesheet" href="{{asset_path('visitor/css/app.css')}}">
|
||||
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
@@ -13,88 +14,19 @@
|
||||
<title>@yield('pageTitle') | {{setting('pageName')}}</title>
|
||||
|
||||
<style>
|
||||
|
||||
body {
|
||||
font-size: 150%;
|
||||
line-height: 150%;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 4em;
|
||||
font-weight: 100;
|
||||
padding-top: 30px;
|
||||
}
|
||||
|
||||
header {
|
||||
background: #7cad2a;
|
||||
padding: 30px 0;
|
||||
}
|
||||
|
||||
footer {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
padding: 5px 0;
|
||||
}
|
||||
|
||||
footer a {
|
||||
color: white;
|
||||
.content-container {
|
||||
width: 75%;
|
||||
margin: auto;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="text-center">
|
||||
<body>
|
||||
|
||||
<header>
|
||||
<a href="{{route('page.index')}}">
|
||||
<img src="{{asset_path('visitor/images/menu_logo.png')}}" class="PragueTennisCamp-logo-menu" alt="PragueTennisCamp s.r.o.">
|
||||
</a>
|
||||
</header>
|
||||
<div class="row content-container">
|
||||
<h1>@yield('pageTitle')</h1>
|
||||
|
||||
<h1>@yield('pageTitle')</h1>
|
||||
|
||||
<div class="row">
|
||||
@yield('content')
|
||||
</div>
|
||||
|
||||
<footer id="footer">
|
||||
@if (!empty(setting('facebookProfile')))
|
||||
|
||||
<a href="{{setting('facebookProfile')}}" target="_blank">
|
||||
<i class="fa fa-fw fa-facebook-official fb-color"></i>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if (!empty(setting('linkedInProfile')))
|
||||
<a href="{{setting('linkedInProfile')}}" target="_blank">
|
||||
<i class="fa fa-fw fa-linkedin in-color"></i>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
@if(!empty(setting('gplusProfile')))
|
||||
<a href="{{setting('gplusProfile')}}" target="_blank">
|
||||
<i class="fa fa-fw fa-google-plus gp-color"></i>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
</footer>
|
||||
|
||||
{{--<ul class="social-icons menu">--}}
|
||||
{{--<a href="{{setting('facebookProfile')}}" target="_blank">--}}
|
||||
{{--<i class="fa fa-fw fa-2x fa-facebook-official fb-color"></i>--}}
|
||||
{{--</a>--}}
|
||||
|
||||
{{--<li>--}}
|
||||
{{--<a href="{{setting('linkedInProfile')}}" target="_blank">--}}
|
||||
{{--<i class="fa fa-fw fa-2x fa-linkedin in-color"></i>--}}
|
||||
{{--</a>--}}
|
||||
{{--</li>--}}
|
||||
|
||||
{{--<li>--}}
|
||||
{{--<a href="{{setting('gplusProfile')}}" target="_blank">--}}
|
||||
{{--<i class="fa fa-fw fa-2x fa-google-plus gp-color"></i>--}}
|
||||
{{--</a>--}}
|
||||
{{--</li>--}}
|
||||
{{--</ul>--}}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user