archive-notice.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <?php
  2. /**
  3. * The template for displaying notice archive page
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  6. *
  7. * @package UIU_CSE
  8. */
  9. get_header();
  10. ?>
  11. <main id="primary" class="site-main">
  12. <section id="archive-hero">
  13. <div class="container">
  14. <!-- breadcrumb -->
  15. <nav aria-label="breadcrumb">
  16. <ul>
  17. <li><a href="#">Home</a></li>
  18. <li><a href="#">Category</a></li>
  19. <li>Page</li>
  20. </ul>
  21. </nav>
  22. <div class="content">
  23. <!-- left content -->
  24. <div class="left-content">
  25. <div class="main-title">Notice</div>
  26. <div class="short-details">
  27. As a graduate you will have access to all University of London alumni services.
  28. </div>
  29. <div class="links">
  30. <!-- message -->
  31. <a href="#">
  32. <img src="<?php echo (get_template_directory_uri()) ?>/img/envelope-solid.svg" alt="">
  33. </a>
  34. <!-- printer -->
  35. <a href="#">
  36. <img src="<?php echo (get_template_directory_uri()) ?>/img/print-solid.svg" alt="">
  37. </a>
  38. <!-- facebook -->
  39. <a href="#">
  40. <img src="<?php echo (get_template_directory_uri()) ?>/img/facebook-f.svg" alt="">
  41. </a>
  42. <!-- twitter -->
  43. <a href="#">
  44. <img src="<?php echo (get_template_directory_uri()) ?>/img/twitter.svg" alt="">
  45. </a>
  46. <!-- linkedin -->
  47. <a href="#">
  48. <img src="<?php echo (get_template_directory_uri()) ?>/img/linkedin-in.svg" alt="">
  49. </a>
  50. </div>
  51. </div>
  52. <!-- right content -->
  53. <div class="right-content">
  54. <img src="<?php echo (get_template_directory_uri()) ?>/img/campus_07.jpg" alt="">
  55. </div>
  56. </div>
  57. </div>
  58. </section>
  59. <section class="container">
  60. <div id="notice-container">
  61. <?php if (have_posts()) : ?>
  62. <?php while (have_posts()) : the_post(); ?>
  63. <!-- single notice -->
  64. <div class="notice">
  65. <div class="image">
  66. <img src="<?php echo get_the_post_thumbnail_url() ?>" alt="">
  67. </div>
  68. <div class="details">
  69. <!-- date -->
  70. <div class="date-container">
  71. <!-- icon -->
  72. <span class="icon">
  73. <img src="<?php echo (get_template_directory_uri()) ?>/img/calendar-days-regular.svg" alt="">
  74. </span>
  75. <!-- date -->
  76. <span class="date">
  77. June 4th, 2023
  78. </span>
  79. </div>
  80. <div class="title">
  81. <a href="<?php echo get_permalink(); ?>">
  82. <?php echo get_the_title(); ?>
  83. </a>
  84. </div>
  85. </div>
  86. </div>
  87. <?php endwhile; ?>
  88. <?php the_posts_navigation(); ?>
  89. <?php
  90. else :
  91. get_template_part('template-parts/content', 'none');
  92. endif;
  93. ?>
  94. </div>
  95. </section>
  96. </main><!-- #main -->
  97. <style>
  98. #notice-container {
  99. padding: 2rem 0;
  100. display: flex;
  101. flex-wrap: wrap;
  102. gap: 1.5rem;
  103. }
  104. #notice-container .notice {
  105. width: calc(25% - 1.5rem);
  106. margin-bottom: 1rem !important;
  107. }
  108. #notice-container .notice .image {
  109. width: 100%;
  110. border-bottom: 4px solid #F68B1F;
  111. overflow: hidden;
  112. }
  113. #notice-container .notice .image img {
  114. width: 100%;
  115. transition: 5s;
  116. }
  117. #notice-container .notice .image img:hover {
  118. transform: scale(1.5);
  119. }
  120. #notice-container .notice .details {
  121. padding: 0.25rem;
  122. }
  123. #notice-container .notice .details .date-container {
  124. margin-top: 0.75rem;
  125. font-size: 0.7rem;
  126. font-weight: 700;
  127. color: #2c5d73;
  128. display: flex;
  129. align-items: center;
  130. gap: 0.35rem;
  131. }
  132. #notice-container .notice .details .date-container .icon {
  133. width: 0.7rem;
  134. }
  135. #notice-container .notice .details .date-container .icon img {
  136. width: 100%;
  137. }
  138. #notice-container .notice .details .title {
  139. margin-top: 0.75rem;
  140. font-size: 0.9rem;
  141. color: #2c5d73;
  142. font-weight: 600;
  143. line-height: 1.4;
  144. }
  145. #notice-container .notice .details .title a {
  146. color: inherit !important;
  147. }
  148. /*# sourceMappingURL=archive-notice.css.map */
  149. </style>
  150. <?php
  151. get_footer();