index.blade.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. @extends('layouts.app')
  2. @section('content')
  3. <style>
  4. tr {
  5. border-bottom: 1px solid #000;
  6. }
  7. tbody tr:last-child {
  8. border-bottom: none;
  9. }
  10. td {
  11. padding-left: 10px; /* ou margin-left: 10px; */
  12. }
  13. </style>
  14. <div class="font-authentic">Ceci est du texte avec la police Authentic Sans 90</div>
  15. <div class="font-authentic-60">Ceci est du texte avec la police Authentic Sans 60</div>
  16. <div class="font-caslon">Ceci est du texte avec la police Caslon normal</div>
  17. <div class="font-caslon italic">Ceci est du texte avec la police Caslon italique</div>
  18. <table class="table-fixed">
  19. <thead>
  20. <tr class="border-jlg-white w-4/5 h-64 top-12 fixed flex items-stretch justify-around text-center text-lg uppercase">
  21. <th class="bg-jlg-dark-blue w-1/5 flex items-end justify-start"></th>
  22. <th class="bg-jlg-dark-blue w-1/5 flex items-end justify-start">Images</th>
  23. <th class="bg-jlg-dark-blue w-1/5 flex items-end justify-start">Voix Off et In</th>
  24. <th class="bg-jlg-dark-blue w-1/5 flex items-end justify-start">Bande Son</th>
  25. <th class="bg-jlg-dark-blue w-1/5 flex items-end justify-start">Ecrits</th>
  26. </tr>
  27. </thead>
  28. <tbody>
  29. <?php
  30. $args = array(
  31. 'post_type' => 'post',
  32. 'posts_per_page' => -1,
  33. 'meta_key' => 'Index',
  34. 'meta_type' => 'NUMERIC',
  35. 'orderby' => 'meta_value',
  36. 'order' => 'ASC'
  37. );
  38. $query = new WP_Query($args);
  39. if ($query->have_posts()) :
  40. while ($query->have_posts()) : $query->the_post();
  41. ?>
  42. <tr class="border-jlg-white font-authentic-60">
  43. <td class="w-1/5 bg-red-400 pr-4 pt-1 pb-8 text-right">{{ get_post_meta(get_the_ID(), 'Minutage', true) }}</td>
  44. <td class="w-1/5 py-8">{{ get_post_meta(get_the_ID(), 'Images', true) }}</td>
  45. <td class="w-1/5 py-8">{{ get_post_meta(get_the_ID(), 'VoixOffIn', true) }}</td>
  46. <td class="w-1/5 py-8">{{ get_post_meta(get_the_ID(), 'BandeSon', true) }}</td>
  47. <td class="w-1/5 py-8">{{ get_post_meta(get_the_ID(), 'Ecrits', true) }}</td>
  48. </tr>
  49. <?php
  50. endwhile;
  51. endif;
  52. wp_reset_postdata();
  53. ?>
  54. </tbody>
  55. </table>
  56. @if (! have_posts())
  57. <x-alert type="warning">
  58. {!! __('Sorry, no results were found.', 'sage') !!}
  59. </x-alert>
  60. {!! get_search_form(false) !!}
  61. @endif
  62. @endsection