Commit 449b32285020e4e7ad3f6aa730a98537b8c33f3c
1 parent
74c5cf48f7
Exists in
master
worker page design fixes
Showing 3 changed files with 70 additions and 45 deletions Side-by-side Diff
public/css/style_may2024.css
... | ... | @@ -4439,10 +4439,18 @@ h1 { |
4439 | 4439 | width: 100%; |
4440 | 4440 | background: #fff; |
4441 | 4441 | } |
4442 | + | |
4443 | +.main__table.worker_experience { | |
4444 | + table-layout: unset; | |
4445 | +} | |
4442 | 4446 | @media (min-width: 768px) { |
4443 | 4447 | .main__table { |
4444 | 4448 | font-size: 16px; |
4445 | 4449 | } |
4450 | + | |
4451 | + .main__table.worker_experience { | |
4452 | + table-layout: fixed; | |
4453 | + } | |
4446 | 4454 | } |
4447 | 4455 | .main__table td { |
4448 | 4456 | border: 1px solid #cecece; |
... | ... | @@ -4521,8 +4529,21 @@ h1 { |
4521 | 4529 | .main__resume-profile-about-button { |
4522 | 4530 | position: relative; |
4523 | 4531 | z-index: 2; |
4524 | - margin-top: 10px; | |
4532 | + /*margin-top: 10px;*/ | |
4533 | +} | |
4534 | + | |
4535 | +.table-responsive { | |
4536 | + overflow: scroll; | |
4537 | + -webkit-overflow-scrolling: touch; | |
4538 | +} | |
4539 | + | |
4540 | +@media (min-width: 768px) { | |
4541 | + .table-responsive { | |
4542 | + overflow: hidden; | |
4543 | + -webkit-overflow-scrolling: unset; | |
4544 | + } | |
4525 | 4545 | } |
4546 | + | |
4526 | 4547 | .main__resume-profile-about-buttons{ |
4527 | 4548 | display: flex; |
4528 | 4549 | width: 100%; |
resources/views/worker.blade.php
... | ... | @@ -269,21 +269,21 @@ |
269 | 269 | <div class="main__spoiler"> |
270 | 270 | <button type="button" class="main__spoiler-toper js-toggle active">Опыт работы</button> |
271 | 271 | <div class="main__spoiler-body"> |
272 | - | |
273 | - @if (isset($Query[0]->place_worker)) | |
274 | - @if ($Query[0]->place_worker->count()) | |
275 | - <table class="main__table"> | |
276 | - <tbody> | |
272 | + <div class="table-responsive"> | |
273 | + @if (isset($Query[0]->place_worker)) | |
274 | + @if ($Query[0]->place_worker->count()) | |
275 | + <table class="main__table worker_experience"> | |
276 | + <tbody> | |
277 | 277 | <tr> |
278 | - <td><b>Должность:</b></td> | |
279 | - <td><b>Название т/х:</b></td> | |
280 | - <td><b>Тип судна:</b></td> | |
281 | - <td><b>Марка ГД:</b></td> | |
282 | - <td><b>Мощность ГД (кВТ):</b></td> | |
283 | - <td><b>Водоизмещение (DWT):</b></td> | |
284 | - <td><b>Название компании:</b></td> | |
285 | - <td><b>Начало контракта:</b></td> | |
286 | - <td><b>Окончание контракта:</b></td> | |
278 | + <td width="12%"><b>Должность:</b></td> | |
279 | + <td width="11%"><b>Название т/х:</b></td> | |
280 | + <td width="11%"><b>Тип судна:</b></td> | |
281 | + <td width="11%"><b>Марка ГД:</b></td> | |
282 | + <td width="11%"><b>Мощность ГД (кВТ):</b></td> | |
283 | + <td width="11%"><b>Водоизмещение (DWT):</b></td> | |
284 | + <td width="11%"><b>Название компании:</b></td> | |
285 | + <td width="11%"><b>Начало контракта:</b></td> | |
286 | + <td width="11%"><b>Окончание контракта:</b></td> | |
287 | 287 | </tr> |
288 | 288 | @foreach($Query[0]->place_worker as $it) |
289 | 289 | <tr> |
... | ... | @@ -298,10 +298,11 @@ |
298 | 298 | <td>{{ date('d.m.Y', strtotime($it->end_work)) }}</td> |
299 | 299 | </tr> |
300 | 300 | @endforeach |
301 | - </tbody> | |
302 | - </table> | |
301 | + </tbody> | |
302 | + </table> | |
303 | + @endif | |
303 | 304 | @endif |
304 | - @endif | |
305 | + </div> | |
305 | 306 | </div> |
306 | 307 | </div> |
307 | 308 | |
... | ... | @@ -364,34 +365,34 @@ |
364 | 365 | @endif |
365 | 366 | </div> |
366 | 367 | |
367 | - <div class="main__resume-profile-info"> | |
368 | - <h2 class="main__resume-profile-info-title">Количество просмотров страницы: ({{ $stat[0]->lookin }})</h2> | |
369 | - </div> | |
368 | +{{-- <div class="main__resume-profile-info">--}} | |
369 | +{{-- <h2 class="main__resume-profile-info-title">Количество просмотров страницы: ({{ $stat[0]->lookin }})</h2>--}} | |
370 | +{{-- </div>--}} | |
370 | 371 | |
371 | - <div class="main__resume-profile-info"> | |
372 | - <h2 class="main__resume-profile-info-title">Отзывы о работнике ({{ $Query[0]->response->count() }})</h2> | |
373 | - <div class="main__resume-profile-info-body"> | |
374 | - @if ((isset($Query[0]->response)) && ($Query[0]->response->count())) | |
375 | - <div class="main__resume-profile-info-body-item"> | |
376 | - <ul class="main__resume-profile-info-body-inner"> | |
377 | - @php $i = 1; @endphp | |
378 | - @foreach($Query[0]->response as $it) | |
379 | - <li> | |
380 | - <span><h3>Комментарий №{{$i}}</h3></span> | |
381 | - <span><b>Оценка человека: {{ $it->stars }}</b></span> | |
382 | - <span><b>Сообщение: </b>{{ $it->message }}</span> | |
383 | - </li> | |
384 | - @php $i++; @endphp | |
385 | - @endforeach | |
386 | - </ul> | |
387 | - </div> | |
388 | - @else | |
389 | - <div class="main__resume-profile-info-body-item"> | |
390 | - <h3 class="main__resume-profile-info-body-subtitle">Нету комментариев</h3> | |
391 | - </div> | |
392 | - @endif | |
393 | - </div> | |
394 | - </div> | |
372 | +{{-- <div class="main__resume-profile-info">--}} | |
373 | +{{-- <h2 class="main__resume-profile-info-title">Отзывы о работнике ({{ $Query[0]->response->count() }})</h2>--}} | |
374 | +{{-- <div class="main__resume-profile-info-body">--}} | |
375 | +{{-- @if ((isset($Query[0]->response)) && ($Query[0]->response->count()))--}} | |
376 | +{{-- <div class="main__resume-profile-info-body-item">--}} | |
377 | +{{-- <ul class="main__resume-profile-info-body-inner">--}} | |
378 | +{{-- @php $i = 1; @endphp--}} | |
379 | +{{-- @foreach($Query[0]->response as $it)--}} | |
380 | +{{-- <li>--}} | |
381 | +{{-- <span><h3>Комментарий №{{$i}}</h3></span>--}} | |
382 | +{{-- <span><b>Оценка человека: {{ $it->stars }}</b></span>--}} | |
383 | +{{-- <span><b>Сообщение: </b>{{ $it->message }}</span>--}} | |
384 | +{{-- </li>--}} | |
385 | +{{-- @php $i++; @endphp--}} | |
386 | +{{-- @endforeach--}} | |
387 | +{{-- </ul>--}} | |
388 | +{{-- </div>--}} | |
389 | +{{-- @else--}} | |
390 | +{{-- <div class="main__resume-profile-info-body-item">--}} | |
391 | +{{-- <h3 class="main__resume-profile-info-body-subtitle">Нету комментариев</h3>--}} | |
392 | +{{-- </div>--}} | |
393 | +{{-- @endif--}} | |
394 | +{{-- </div>--}} | |
395 | +{{-- </div>--}} | |
395 | 396 | |
396 | 397 | <div class="main__resume-profile-review"> |
397 | 398 | <form action="{{ route('stars_answer') }}" method="POST"> |
resources/views/workers/subcribe.blade.php