Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="ru">
- <head>
- <meta charset="UTF-8">
- <style>
- @font-face {
- font-family: 'FuturaDemiC';
- src: url('{{asset('/fonts/FuturaDemiC.eot')}}');
- src: local('Futura Demi Cyrillic'), local('FuturaDemiC'),
- url('{{asset('fonts/FuturaDemiC.eot')}}?#iefix') format('embedded-opentype'),
- url('{{asset('fonts/FuturaDemiC.woff')}}') format('woff'),
- url('{{asset('fonts/FuturaDemiC.ttf')}}') format('truetype');
- font-weight: normal;
- font-style: normal;
- }
- @font-face {
- font-family: 'FuturaMediumC';
- src: url('{{asset('fonts/FuturaMediumaC.eot')}}');
- src: local('Futura Medium Cyrillic'), local('FuturaMediumC'),
- url('{{asset('fonts/FuturaMediumaC.eot')}}?#iefix') format('embedded-opentype'),
- url('{{asset('fonts/FuturaMediumC.woff')}}') format('woff'),
- url('{{asset('fonts/FuturaMediumC.toff')}}') format('truetype');
- font-weight: 500;
- font-style: normal;
- }
- @font-face {
- font-family: 'FuturaBookC';
- src: url('{{asset('fonts/FuturaBookC.eot')}}');
- src: local('Futura Book Cyrillic'), local('FuturaBookC'),
- url('{{asset('fonts/FuturaBookC.eot')}}?#iefix') format('embedded-opentype'),
- url('{{asset('fonts/FuturaBookC.woff')}}') format('woff'),
- url('{{asset('fonts/FuturaBookC.tff')}}') format('truetype');
- font-weight: normal;
- font-style: normal;
- }
- .orange {
- background: #ee7f00;
- width: 45mm;
- height: 58mm;
- }
- .right-orange {
- position: absolute;
- background: #ee7f00;
- width: 98mm;
- height: 1.5mm;
- margin-top: 12mm;
- margin-left: 30.4mm;
- display: inline-block;
- }
- .right-orange-titul {
- position: absolute;
- background: #ee7f00;
- width: 98mm;
- height: 1.5mm;
- margin-left: 34.1mm;
- margin-top: 13mm;
- display: inline-block;
- }
- .blue {
- background: #32388c;
- width: 88mm;
- height: 153.1mm;
- }
- .right_panel {
- margin-top: 245px;
- margin-right: 60px;
- float: right;
- }
- .portfolio-heading {
- font-family: "FuturaDemiC", serif;
- font-size: 53.122pt;
- color: #32388c;
- margin-top: 7mm;
- display: inline-block;
- }
- .name {
- font-family: "FuturaDemiC", serif;
- color: #32388c;
- font-size: 18pt;
- float: right;
- }
- .left_panel {
- float: left;
- width: 33px;
- }
- .cont {
- height: 211.1mm;
- width: 278mm;
- margin: 0 0 0 0;
- page-break-after: always;
- }
- .logo {
- float: right;
- height: 17mm;
- width: 61mm;
- }
- .right-logo {
- float: right;
- height: 16.76mm;
- width: 60.75mm;
- }
- body {
- margin: 0;
- padding: 0;
- }
- .orange-line {
- background: #ee7f00;
- width: 4.199mm;
- height: 165.75mm;
- }
- .blue-line {
- background: #32388c;
- width: 4.199mm;
- height: 45.4mm;
- }
- .left-decor {
- position: absolute;
- width: 4.199mm;
- }
- .center-content {
- position: absolute;
- margin-left: 4.199mm;
- width: 169.723mm;
- height: 169.723mm;
- margin-right: 0;
- padding-left: 15.7795mm;
- padding-right: 15.7795mm;
- padding-top: 20.6885mm;
- padding-bottom: 20.6885mm;
- display: flex;
- }
- .right-meta {
- box-shadow: -25px 0 15px -15px rgba(0, 0, 0, 0.4);
- margin-left: 205.481mm;
- width: 91.51mm;
- height: 211.1mm;
- position: absolute;
- }
- .meta-logo {
- margin-top: 165.75mm;
- }
- .text-portfolio {
- margin-left: 30.6mm;
- display: inline-block;
- font-family: "FuturaDemiC", serif;
- color: #32388c;
- font-size: 15.6pt;
- margin-top: 2mm;
- }
- .meta-info {
- margin-left: 30.4mm;
- position: absolute;
- margin-top: 108.67mm;
- font-family: "FuturaDemiC", serif;
- }
- .direction {
- font-size: 12pt;
- }
- .comment {
- font-size: 12pt;
- font-family: 'FuturaMediumC';
- }
- .four-photo-one-container {
- width: 82.397mm;
- height: 82.397mm;
- position: absolute;
- }
- .two-four {
- margin-left: 87.301mm;
- }
- .three-four {
- margin-top: 87.603mm;
- }
- .four-four {
- margin-left: 87.301mm;
- margin-top: 87.603mm;
- }
- .one-three-landscape {
- width: 100%;
- height: 82.397mm;
- justify-content: center;
- display: flex;
- }
- .one-two-landscape {
- width: 100%;
- height: 82.397mm;
- justify-content: center;
- display: flex;
- position: absolute;
- }
- .two-landscape-container {
- justify-content: center;
- }
- .two-two-landscape {
- width: 100%;
- height: 82.397mm;
- justify-content: center;
- display: flex;
- position: absolute;
- }
- .one-three-portrait {
- width: 82.397mm;
- }
- .two-three-landscape {
- margin-top: 87.603mm;
- }
- .three-three-landscape {
- margin-left: 87.301mm;
- margin-top: 87.603mm;
- }
- .two-three-portrait {
- margin-left: 87.603mm;
- }
- .three-three-portrait {
- margin-left: 87.301mm;
- margin-top: 87.603mm;
- }
- .landscape {
- margin: auto;
- width: 100%;
- }
- .portrait {
- margin: auto;
- height: 100%;
- }
- .one-four-photo {
- position: absolute;
- bottom: 0px;
- right: 0px;
- }
- .two-four-photo {
- position: absolute;
- bottom: 0px;
- left: 0px;
- }
- .three-four-photo {
- position: absolute;
- top: 0px;
- right: 0px;
- }
- .four-four-photo {
- position: absolute;
- top: 0px;
- left: 0px;
- }
- .one-two-portrait {
- width: 82.397mm;
- display: flex;
- }
- .two-two-portrait {
- width: 82.397mm;
- margin-left: 4.904mm;
- display: flex;
- }
- </style>
- </head>
- <body>
- <div class="cont">
- <div class="left_panel">
- <div class="orange"></div>
- <div class="blue"></div>
- </div>
- <div class="right_panel">
- <img class="logo" src="{{asset('images/logo.svg')}}"><br>
- <div class="right-orange-titul"></div>
- <br>
- <span class="portfolio-heading"><b>Портфолио</b></span><br>
- <span class="name"><b>{{$user->first_name . ' ' . $user->last_name}}</b></span>
- </div>
- </div>
- @foreach($blocks as $title => $block)
- @foreach($block as $page)
- <div class="cont">
- <div class="left-decor">
- <div class="orange-line"></div>
- <div class="blue-line"></div>
- </div>
- @if($page['type'] == 'single')
- <div class="center-content">
- <img class="{{$page['photos'][0]['orientation']}}" src="{{ asset('storage/photos/' . $page['photos'][0]['path'])}}">
- </div>
- @endif
- @if($page['type'] == 'four')
- <div class="center-content">
- <div class="four-photo-one-container one-four"><img class="one-four-photo {{$page['photos'][0]['orientation']}}"
- src="{{ asset('storage/photos/' . $page['photos'][0]['path'])}}">
- </div>
- <div class="four-photo-one-container two-four"><img class="two-four-photo {{$page['photos'][1]['orientation']}}"
- src="{{ asset('storage/photos/' . $page['photos'][1]['path'])}}">
- </div>
- <div class="four-photo-one-container three-four"><img class="three-four-photo {{$page['photos'][2]['orientation']}}"
- src="{{ asset('storage/photos/' . $page['photos'][2]['path'])}}">
- </div>
- <div class="four-photo-one-container four-four"><img class="four-four-photo {{$page['photos'][3]['orientation']}}"
- src="{{ asset('storage/photos/' . $page['photos'][3]['path'])}}">
- </div>
- </div>
- @endif
- @if($page['type'] == 'two_landscape')
- <div class="center-content two-landscape-container">
- <div class="one-two-landscape"><img class="portrait" src="{{ asset('storage/photos/' . $page['photos'][0]['path'])}}"></div>
- <div class="two-two-landscape three-four"><img class="portrait" src="{{ asset('storage/photos/' . $page['photos'][1]['path'])}}"></div>
- </div>
- @endif
- @if($page['type'] == 'two_portrait')
- <div class="center-content">
- <div class="one-two-portrait"><img class="landscape" src="{{ asset('storage/photos/' . $page['photos'][0]['path'])}}"></div>
- <div class="two-two-portrait"><img class="landscape" src="{{ asset('storage/photos/' . $page['photos'][1]['path'])}}"></div>
- </div>
- @endif
- @if($page['type'] == 'two_mixed')
- <div class="center-content">
- @if($page['photos'][0]['orientation'] == 'portrait')
- <div class="one-two-portrait"><img class="landscape" src="{{ asset('storage/photos/' . $page['photos'][0]['path'])}}"></div>
- <div class="two-two-portrait"><img class="landscape" src="{{ asset('storage/photos/' . $page['photos'][1]['path'])}}"></div>
- @else
- <div class="one-two-portrait"><img class="landscape" src="{{ asset('storage/photos/' . $page['photos'][1]['path'])}}"></div>
- <div class="two-two-portrait"><img class="landscape" src="{{ asset('storage/photos/' . $page['photos'][0]['path'])}}"></div>
- @endif
- </div>
- @endif
- @if($page['type'] == 'three_landscape')
- <div class="center-content">
- @foreach($page['photos'] as $key=>$photo)
- @if($photo['orientation'] == 'landscape')
- <div class="one-three-landscape"><img class="portrait" src="{{ asset('storage/photos/' . $photo['path'])}}"></div>
- @php
- unset($page['photos'][$key]);
- $page['photos'] = array_values($page['photos']);
- @endphp
- @endif
- @endforeach
- <div class="four-photo-one-container two-three-landscape"><img class="three-four-photo portrait"
- src="{{ asset('storage/photos/' . $page['photos'][0]['path'])}}"></div>
- <div class="four-photo-one-container three-three-landscape"><img class="four-four-photo landscape"
- src="{{ asset('storage/photos/' . $page['photos'][1]['path'])}}"></div>
- </div>
- @endif
- @if($page['type'] == 'three_portrait')
- <div class="center-content">
- @foreach($page['photos'] as $key=>$photo)
- @if($photo['orientation'] == 'portrait')
- <div class="one-three-portrait"><img class="landscape" src="{{ asset('storage/photos/' . $photo['path'])}}"></div>
- @php
- unset($page['photos'][$key]);
- $page['photos'] = array_values($page['photos']);
- @endphp
- @endif
- @endforeach
- <div class="four-photo-one-container two-three-portrait"><img class="two-four-photo portrait"
- src="{{ asset('storage/photos/' . $page['photos'][0]['path'])}}"></div>
- <div class="four-photo-one-container three-three-portrait"><img class="four-four-photo landscape"
- src="{{ asset('storage/photos/' . $page['photos'][1]['path'])}}"></div>
- </div>
- @endif
- <div class="right-meta">
- <div class="meta-info">
- <span class="direction">{{$user->direction->title}}</span><br><br>
- <span class="comment">{{$title}}</span>
- </div>
- <div class="meta-logo">
- <img class="right-logo" src="{{asset('images/logo.svg')}}"><br>
- <div class="right-orange"></div>
- <span class="text-portfolio"><b>П О Р Т Ф О Л И О</b></span>
- </div>
- </div>
- </div>
- @endforeach
- @endforeach
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement