FEATURE: try to color template
This commit is contained in:
+34
-34
@@ -1,50 +1,50 @@
|
||||
@extendVisitor('defaultLayout')
|
||||
|
||||
@section('content')
|
||||
@if(count($page->files) > 0)
|
||||
@php $images = $page->files()->where('mime_type', 'like', 'image%')->get(); @endphp
|
||||
@if(count($images) > 0)
|
||||
<div class="orbit" role="region" data-orbit
|
||||
data-options="animInFromLeft:fade-in; animInFromRight:fade-in; animOutToLeft:fade-out; animOutToRight:fade-out;">
|
||||
data-options="animationDuration:3000; animInFromLeft:fade-in; animInFromRight:fade-in; animOutToLeft:fade-out; animOutToRight:fade-out;">
|
||||
<ul class="orbit-container">
|
||||
@foreach($page->files()->where('mime_type', 'like', 'image%')->get() as $i => $image)
|
||||
<li class="orbit-slide @if($i == 0) is-active @endif">
|
||||
@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 class="stripe orbit-top"></div>
|
||||
<div class="stripe orbit-bottom"></div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<div class="over-slider-stripe stripe">
|
||||
<h1>{{$page->title}}</h1>
|
||||
<p>{{$page->metaDescription}}</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row content-container">
|
||||
{!! $page->pageContent !!}
|
||||
|
||||
<div class="text-center stripe light trainee-team">
|
||||
|
||||
<h2>{{$page->traineeTeamCategory->name}}</h2>
|
||||
|
||||
@foreach($page->traineeTeamCategory->content as $i => $subpage)
|
||||
<div class="column text-center small-6 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 class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="text-center stripe light trainee-team">
|
||||
|
||||
<h2>{{$page->traineeTeamCategory->name}}</h2>
|
||||
|
||||
@foreach($page->traineeTeamCategory->content as $i => $subpage)
|
||||
<div class="column text-center small-6 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 class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
@widgetArea('belowHomepage')
|
||||
|
||||
@endsection
|
||||
@@ -35,10 +35,12 @@
|
||||
</script>
|
||||
@endif
|
||||
<header class="top-bar">
|
||||
<div class="top-bar-left">
|
||||
<a href="{{route('page.index')}}">
|
||||
<img src="@asset('visitor/images/logo.png')" class="logo" alt="">
|
||||
</a>
|
||||
<div class="top-bar-left hide-for-small-only">
|
||||
<h1>
|
||||
<a href="{{route('page.index')}}">
|
||||
{{setting('pageName')}}
|
||||
</a>
|
||||
</h1>
|
||||
</div>
|
||||
<div class="top-bar-right">
|
||||
@widgetArea('mainMenu')
|
||||
|
||||
Reference in New Issue
Block a user