text.blade.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. @extends('layouts.app')
  2. @section('title', $page->meta_title ?: $page->title . ' — Точка')
  3. @section('content')
  4. <div class="page-hdr">
  5. <div class="container">
  6. <div class="breadcrumb">
  7. <a href="{{ route('home') }}">Главная</a>
  8. <span>/</span>
  9. <span>{{ $page->title }}</span>
  10. </div>
  11. <h1 class="reveal">{{ $page->title }}</h1>
  12. </div>
  13. </div>
  14. <section class="section sec-white">
  15. <div class="container" style="max-width:800px">
  16. @if($page->content)
  17. <div class="text-page-body">
  18. {!! $page->content !!}
  19. </div>
  20. @else
  21. <p style="color:var(--muted)">Раздел в разработке.</p>
  22. @endif
  23. </div>
  24. </section>
  25. @endsection
  26. @push('styles')
  27. <style>
  28. .text-page-body{font-size:15px;line-height:1.9;color:var(--text)}
  29. .text-page-body h2{font-family:var(--fh);font-size:clamp(18px,3vw,24px);font-weight:700;margin:32px 0 12px}
  30. .text-page-body h3{font-family:var(--fh);font-size:clamp(15px,2vw,18px);font-weight:700;margin:24px 0 8px}
  31. .text-page-body p{margin-bottom:14px;color:var(--muted)}
  32. .text-page-body ul,.text-page-body ol{padding-left:20px;margin-bottom:14px;color:var(--muted)}
  33. .text-page-body li{margin-bottom:6px}
  34. .text-page-body a{color:var(--red);text-decoration:underline}
  35. </style>
  36. @endpush