removed.blade.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. @extends('layouts.blank')
  2. @section('content')
  3. <div class="container mt-5">
  4. <div class="row">
  5. <div class="col-12 col-md-6 offset-md-3 text-center">
  6. <p class="h1 pb-2" style="font-weight: 200">Your Post Has Been Deleted</p>
  7. <p class="lead py-1">We removed your post because it doesn't follow our <a class="font-weight-bold text-dark" href="{{route('help.community-guidelines')}}">Community Guidelines</a>. If you violate our guidelines again, your account may be restricted or disabled.</p>
  8. <p class="font-weight-bold alert alert-danger text-left">To continue you must click the "I Understand" button at the bottom of this page.</p>
  9. </div>
  10. <div class="col-12 col-md-6 offset-md-3">
  11. <hr>
  12. </div>
  13. <div class="col-12 col-md-6 offset-md-3 mt-3">
  14. <p class="h4 font-weight-bold">Post Details</p>
  15. @if($interstitial->has_media)
  16. <div class="py-4 align-items-center">
  17. <div class="d-block text-center text-truncate">
  18. @if($interstitial->blurhash)
  19. <canvas id="mblur" width="400" height="400" class="rounded shadow"></canvas>
  20. @else
  21. <img src="/storage/no-preview.png" class="mr-3 img-fluid" alt="No preview available">
  22. @endif
  23. </div>
  24. <div class="mt-2 border rounded p-3">
  25. @if($meta->caption)
  26. <p class="text-break">
  27. Caption: <span class="font-weight-bold">{{$meta->caption}}</span>
  28. </p>
  29. @endif
  30. <p class="mb-0">
  31. Like Count: <span class="font-weight-bold">{{$meta->likes_count}}</span>
  32. </p>
  33. <p class="mb-0">
  34. Share Count: <span class="font-weight-bold">{{$meta->reblogs_count}}</span>
  35. </p>
  36. <p class="">
  37. Timestamp: <span class="font-weight-bold">{{now()->parse($meta->created_at)->format('r')}}</span>
  38. </p>
  39. <p class="mb-0" style="word-break: break-all !important;">
  40. URL: <span class="font-weight-bold text-primary">{{$meta->url}}</span>
  41. </p>
  42. </div>
  43. </div>
  44. @else
  45. <div class="media py-4 align-items-center">
  46. <div class="media-body ml-2">
  47. <p class="">
  48. Comment: <span class="lead text-break font-weight-bold">{{$meta->caption}}</span>
  49. </p>
  50. <p class="mb-0 small">
  51. Posted on {{$meta->created_at}}
  52. </p>
  53. <p class="mb-0 font-weight-bold text-primary">
  54. {{$meta->url}}
  55. </p>
  56. </div>
  57. </div>
  58. @endif
  59. </div>
  60. <div class="col-12 col-md-6 offset-md-3 my-3">
  61. <div class="border rounded p-3 border-primary">
  62. <p class="h4 font-weight-bold pt-2 text-primary">Review the Community Guidelines</p>
  63. <p class="lead pt-4 text-primary">We want to keep {{config('app.name')}} a safe place for everyone, and we created these <a class="font-weight-bold text-primary" href="{{route('help.community-guidelines')}}">Community Guidelines</a> to support and protect our community.</p>
  64. </div>
  65. </div>
  66. <div class="col-12 col-md-6 offset-md-3 mt-4 mb-5">
  67. <form method="post" action="/i/warning">
  68. @csrf
  69. <input type="hidden" name="id" value="{{encrypt($interstitial->id)}}">
  70. <input type="hidden" name="type" value="{{$interstitial->type}}">
  71. <input type="hidden" name="action" value="confirm">
  72. <button type="submit" class="btn btn-primary btn-block font-weight-bold">I Understand</button>
  73. </form>
  74. </div>
  75. </div>
  76. </div>
  77. @endsection
  78. @push('scripts')
  79. <script type="text/javascript">
  80. function requestAppeal() {
  81. $('#appealButton').addClass('d-none');
  82. $('#appealForm').removeClass('d-none');
  83. }
  84. </script>
  85. @if($interstitial->blurhash)
  86. <script type="text/javascript">
  87. const pixels = window.blurhash.decode("{{$interstitial->blurhash}}", 400, 400);
  88. const canvas = document.getElementById("mblur");
  89. const ctx = canvas.getContext("2d");
  90. const imageData = ctx.createImageData(400, 400);
  91. imageData.data.set(pixels);
  92. ctx.putImageData(imageData, 0, 0);
  93. </script>
  94. @endif
  95. @endpush