archive-campus-life.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673
  1. <?php
  2. /**
  3. * The template for displaying campus life archive page
  4. *
  5. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  6. *
  7. * @package UIU_DEPARTMENTAL
  8. */
  9. get_header();
  10. ?>
  11. <main id="main" class="site-main" role="main">
  12. <div id="campus-life">
  13. <div class="hero-section">
  14. <iframe src="https://www.youtube.com/embed/MfVYcMmbHuk?controls=0&disablekb=1&autoplay=1&mute=1&playsinline=1&loop=1&playlist=MfVYcMmbHuk" allowfullscreen></iframe>
  15. <div class="hero-content">
  16. <h1 class="hero-title">Virtual Campus Tour</h1>
  17. <p class="hero-sub-title">
  18. Lorem ipsum dolor sit amet consectetur adipisicing elit. Repellat vero reprehenderit ab hic sunt optio.
  19. </p>
  20. </div>
  21. </div>
  22. <!-- Getting Around -->
  23. <?php
  24. $args = array(
  25. 'post_type' => 'campus-life',
  26. 'tag' => 'featured-campus-life',
  27. 'posts_per_page' => 1,
  28. 'post__not_in' => array(get_the_ID()),
  29. 'orderby' => 'date',
  30. 'order' => 'DESC',
  31. );
  32. $query = new WP_Query($args);
  33. if ($query->have_posts()) :
  34. while ($query->have_posts()) :
  35. $query->the_post(); ?>
  36. <div class="getting-around">
  37. <div class="container">
  38. <h1 class="title">
  39. Getting Around
  40. </h1>
  41. <div class="content">
  42. <div class="text-content">
  43. <p>
  44. <?php the_excerpt(); ?>
  45. </p>
  46. <a class="link" href="">Read in detail</a>
  47. </div>
  48. <div class="image-content">
  49. <img src="<?php echo get_the_post_thumbnail_url(); ?>" alt="">
  50. </div>
  51. </div>
  52. </div>
  53. </div>
  54. <?php
  55. endwhile;
  56. // else :
  57. // echo '<div class="no-post-found">No student life has found! </div>';
  58. endif;
  59. wp_reset_query();
  60. ?>
  61. <div class="campus-content student-life">
  62. <div class="container-fluid">
  63. <h1 class="title">Student Life</h1>
  64. <div class="content content-three">
  65. <?php
  66. $args = array(
  67. 'post_type' => 'campus-life',
  68. 'category_name' => 'student-life',
  69. 'posts_per_page' => 3,
  70. 'post__not_in' => array(get_the_ID()),
  71. 'orderby' => 'date',
  72. 'order' => 'DESC',
  73. );
  74. $query = new WP_Query($args);
  75. if ($query->have_posts()) :
  76. while ($query->have_posts()) :
  77. $query->the_post(); ?>
  78. <div class="single-content">
  79. <div class="image-container">
  80. <div class="bg-img" style="background-image: url(<?php echo get_the_post_thumbnail_url(); ?>"></div>
  81. </div>
  82. <div class="details">
  83. <h4 class="content-title"><?php echo get_the_title(); ?></h4>
  84. <p class="content-detail">
  85. <?php the_excerpt(); ?>
  86. </p>
  87. <a class="link" href="<?php echo get_permalink(); ?>">View details</a>
  88. </div>
  89. </div>
  90. <?php
  91. endwhile;
  92. else :
  93. echo '<div class="no-post-found">No student life has found! </div>';
  94. endif;
  95. wp_reset_query(); ?>
  96. </div>
  97. </div>
  98. </div>
  99. <!-- Arts & Culture -->
  100. <div class="campus-content arts-culture">
  101. <div class="container">
  102. <h1 class="title">Arts & Culture</h1>
  103. <div class="content content-two">
  104. <?php
  105. $args = array(
  106. 'post_type' => 'campus-life',
  107. 'category_name' => 'arts-and-culture',
  108. 'posts_per_page' => 2,
  109. 'post__not_in' => array(get_the_ID()),
  110. 'orderby' => 'date',
  111. 'order' => 'DESC',
  112. );
  113. $query = new WP_Query($args);
  114. if ($query->have_posts()) :
  115. while ($query->have_posts()) :
  116. $query->the_post(); ?>
  117. <div class="single-content">
  118. <div class="image-container">
  119. <div class="bg-img" style="background-image: url(<?php echo get_the_post_thumbnail_url(); ?>"></div>
  120. </div>
  121. <div class="details">
  122. <h4 class="content-title"><?php echo get_the_title(); ?></h4>
  123. <p class="content-detail">
  124. <?php the_excerpt(); ?>
  125. </p>
  126. <a class="link" href="<?php echo get_permalink(); ?>">View details</a>
  127. </div>
  128. </div>
  129. <?php
  130. endwhile;
  131. else :
  132. echo '<div class="no-post-found">No Arts & Culture post has found! </div>';
  133. endif;
  134. wp_reset_query(); ?>
  135. </div>
  136. </div>
  137. </div>
  138. <!-- Recreation and Wellness -->
  139. <div class="campus-content recreation-and-wellness">
  140. <div class="container-fluid">
  141. <h1 class="title">Athletics, Recreation, & Wellness</h1>
  142. <div class="content content-three">
  143. <?php
  144. $args = array(
  145. 'post_type' => 'campus-life',
  146. 'category_name' => 'recreation-and-wellness',
  147. 'posts_per_page' => 3,
  148. 'post__not_in' => array(get_the_ID()),
  149. 'orderby' => 'date',
  150. 'order' => 'DESC',
  151. );
  152. $query = new WP_Query($args);
  153. if ($query->have_posts()) :
  154. while ($query->have_posts()) :
  155. $query->the_post(); ?>
  156. <div class="single-content">
  157. <div class="image-container">
  158. <div class="bg-img" style="background-image: url(<?php echo get_the_post_thumbnail_url(); ?>"></div>
  159. </div>
  160. <div class="details">
  161. <h4 class="content-title"><?php echo get_the_title(); ?></h4>
  162. <p class="content-detail">
  163. <?php the_excerpt(); ?>
  164. </p>
  165. <a class="link" href="<?php echo get_permalink(); ?>">View details</a>
  166. </div>
  167. </div>
  168. <?php
  169. endwhile;
  170. else :
  171. echo '<div class="no-post-found">No Recreation & Wellness post has found! </div>';
  172. endif;
  173. wp_reset_query(); ?>
  174. </div>
  175. </div>
  176. </div>
  177. <!-- campus statistics -->
  178. <div class="state">
  179. <div class="container-fluid analytics">
  180. <div class="item">
  181. <h2 class="count">600+</h2>
  182. <p class="desc">Organized student groups</p>
  183. </div>
  184. <div class="item">
  185. <h2 class="count">69</h2>
  186. <p class="desc">Undergraduate student residences</p>
  187. </div>
  188. <div class="item">
  189. <h2 class="count">20000+</h2>
  190. <p class="desc">Students living on campus</p>
  191. </div>
  192. </div>
  193. </div>
  194. </div>
  195. </main>
  196. <style>
  197. #main {
  198. padding-top: unset;
  199. }
  200. #campus-life {
  201. font-family: "DM Serif Text", serif;
  202. }
  203. #campus-life .hero-section {
  204. position: relative;
  205. height: 100vh;
  206. overflow: hidden;
  207. }
  208. @media screen and (max-width: 1000px) {
  209. #campus-life .hero-section {
  210. height: 75vh;
  211. margin-top: 90px;
  212. }
  213. }
  214. @media screen and (max-width: 800px) {
  215. #campus-life .hero-section {
  216. height: 65vh;
  217. }
  218. }
  219. @media screen and (max-width: 500px) {
  220. #campus-life .hero-section {
  221. margin-top: 40px;
  222. height: 58vh;
  223. }
  224. }
  225. #campus-life .hero-section iframe {
  226. height: 100%;
  227. width: 100vw;
  228. border: none;
  229. transform: scaleX(1.5) scaleY(1.8);
  230. }
  231. #campus-life .hero-section .hero-content {
  232. background: rgba(0, 0, 0, 0.3);
  233. position: absolute;
  234. top: 0;
  235. left: 0;
  236. right: 0;
  237. bottom: 0;
  238. z-index: 10;
  239. display: flex;
  240. flex-direction: column;
  241. justify-content: flex-end;
  242. text-align: left;
  243. padding-left: 5rem;
  244. padding-bottom: 3rem;
  245. }
  246. @media screen and (max-width: 1000px) {
  247. #campus-life .hero-section .hero-content {
  248. padding-left: 1rem;
  249. }
  250. }
  251. @media screen and (max-width: 500px) {
  252. #campus-life .hero-section .hero-content {
  253. padding-left: 0.75rem;
  254. padding-bottom: 0.25rem;
  255. }
  256. }
  257. #campus-life .hero-section .hero-content .hero-title {
  258. margin-top: auto;
  259. margin-bottom: 0.25rem !important;
  260. font-size: 3rem;
  261. color: #ffffff;
  262. text-shadow: 3px 4px 10px #111010;
  263. }
  264. @media screen and (max-width: 500px) {
  265. #campus-life .hero-section .hero-content .hero-title {
  266. font-size: 1.2rem;
  267. }
  268. }
  269. #campus-life .hero-section .hero-content .hero-sub-title {
  270. display: inline-block !important;
  271. max-width: 750px !important;
  272. color: #d7d7d7;
  273. font-size: 1.2rem;
  274. text-shadow: 3px 4px 10px #111010;
  275. }
  276. @media screen and (max-width: 500px) {
  277. #campus-life .hero-section .hero-content .hero-sub-title {
  278. font-size: 0.75rem;
  279. }
  280. }
  281. #campus-life .hero-section .page-title {
  282. text-align: center;
  283. font-size: 2.5rem;
  284. }
  285. #campus-life .hero-section .page-subtitle {
  286. color: #7d7d7d;
  287. font-size: 1.1rem;
  288. text-align: center;
  289. margin-left: auto;
  290. margin-right: auto;
  291. margin-bottom: unset;
  292. max-width: 650px !important;
  293. }
  294. #campus-life .hero-section .campus-hero {
  295. padding-top: 2rem;
  296. }
  297. #campus-life .hero-section .image-container {
  298. width: 100%;
  299. }
  300. #campus-life .hero-section .image-container img {
  301. width: 100%;
  302. }
  303. #campus-life .hero-section .analytics {
  304. margin: 3.8rem 0;
  305. padding: 1.2rem 0 0.5rem;
  306. border-top: 2px solid #333;
  307. border-bottom: 2px solid #333;
  308. text-align: center;
  309. display: flex;
  310. justify-content: space-around;
  311. align-items: center;
  312. }
  313. @media screen and (max-width: 500px) {
  314. #campus-life .hero-section .analytics {
  315. flex-direction: column;
  316. }
  317. }
  318. #campus-life .hero-section .analytics .item {
  319. margin-bottom: 1rem;
  320. }
  321. #campus-life .hero-section .analytics .count {
  322. font-weight: 700;
  323. margin-bottom: 0.5rem !important;
  324. }
  325. #campus-life .hero-section .analytics .title {
  326. font-weight: 500;
  327. margin-bottom: unset;
  328. }
  329. #campus-life .campus-content {
  330. padding: 4rem 2rem 3rem;
  331. }
  332. @media screen and (max-width: 767px) {
  333. #campus-life .campus-content {
  334. padding: 2rem 0;
  335. }
  336. }
  337. #campus-life .campus-content .title {
  338. text-align: center;
  339. }
  340. #campus-life .campus-content .content {
  341. padding: 3rem 0;
  342. }
  343. #campus-life .campus-content .content .single-content {
  344. overflow: hidden;
  345. }
  346. #campus-life .campus-content .content .single-content:hover .bg-img {
  347. transform: scale(1.1);
  348. }
  349. #campus-life .campus-content .content .image-container {
  350. height: 300px;
  351. width: 100%;
  352. border-radius: 5px;
  353. overflow: hidden;
  354. }
  355. #campus-life .campus-content .content .image-container .bg-img {
  356. height: 100%;
  357. background-size: cover;
  358. background-position: center;
  359. background-repeat: no-repeat;
  360. transition: all 4.5s;
  361. }
  362. #campus-life .campus-content .content .details {
  363. padding: 0 0.5rem 1rem;
  364. }
  365. #campus-life .campus-content .content .content-title {
  366. text-align: left;
  367. margin-top: 0.5rem;
  368. margin-bottom: unset !important;
  369. text-transform: capitalize;
  370. }
  371. #campus-life .campus-content .content .content-detail {
  372. margin-top: 0.5rem;
  373. margin-bottom: unset;
  374. font-size: 0.8rem;
  375. line-height: 1.7;
  376. }
  377. #campus-life .campus-content .content .link {
  378. margin-top: 0.5rem;
  379. display: inline-block;
  380. padding: 0.35rem 0.85rem;
  381. color: #fff;
  382. background: #915416;
  383. font-size: 0.75rem;
  384. text-transform: capitalize;
  385. border-radius: 5px;
  386. }
  387. #campus-life .campus-content .content .link:hover {
  388. background: #e17f1d;
  389. }
  390. #campus-life .campus-content .content-two {
  391. display: flex;
  392. flex-wrap: wrap;
  393. justify-content: center;
  394. gap: 2rem;
  395. }
  396. #campus-life .campus-content .content-two .single-content {
  397. text-align: left;
  398. width: calc(50% - 2rem);
  399. }
  400. @media screen and (max-width: 767px) {
  401. #campus-life .campus-content .content-two .single-content {
  402. width: 100%;
  403. }
  404. }
  405. #campus-life .campus-content .content-three {
  406. display: flex;
  407. flex-wrap: wrap;
  408. justify-content: center;
  409. gap: 2rem;
  410. }
  411. #campus-life .campus-content .content-three .single-content {
  412. text-align: left;
  413. width: calc(33.33% - 2rem);
  414. }
  415. @media screen and (max-width: 1000px) {
  416. #campus-life .campus-content .content-three .single-content {
  417. width: calc(50% - 2rem);
  418. }
  419. }
  420. @media screen and (max-width: 767px) {
  421. #campus-life .campus-content .content-three .single-content {
  422. width: 100%;
  423. }
  424. }
  425. #campus-life .student-life {
  426. padding-top: 5rem;
  427. margin-top: 0;
  428. }
  429. #campus-life .student-life,
  430. #campus-life .recreation-and-wellness {
  431. background: #f4f4f4;
  432. }
  433. #campus-life .getting-around {
  434. padding-top: 4rem;
  435. padding-bottom: 7rem;
  436. }
  437. @media screen and (max-width: 1000px) {
  438. #campus-life .getting-around {
  439. padding-top: 3rem;
  440. padding-bottom: 1rem;
  441. }
  442. }
  443. @media screen and (max-width: 767px) {
  444. #campus-life .getting-around {
  445. padding-top: 2rem;
  446. padding-bottom: 2rem;
  447. }
  448. }
  449. #campus-life .getting-around .title {
  450. text-align: center;
  451. }
  452. #campus-life .getting-around .content {
  453. margin: 4rem 0;
  454. display: grid;
  455. grid-template-columns: repeat(2, 1fr);
  456. }
  457. @media screen and (max-width: 992px) {
  458. #campus-life .getting-around .content {
  459. display: block;
  460. }
  461. }
  462. #campus-life .getting-around .content .text-content {
  463. padding: 2rem 3rem 2rem 2rem;
  464. background: #f4f4f4;
  465. width: 100%;
  466. border-radius: 3px;
  467. }
  468. #campus-life .getting-around .content .text-content p {
  469. font-size: 0.9rem;
  470. margin-bottom: 0.25rem;
  471. }
  472. #campus-life .getting-around .content .text-content .link {
  473. display: block;
  474. width: -moz-fit-content;
  475. width: fit-content;
  476. margin-top: 0.5rem;
  477. font-size: 0.95rem;
  478. font-weight: 600;
  479. color: #915416;
  480. }
  481. #campus-life .getting-around .content .text-content .link:hover {
  482. color: #633a10;
  483. }
  484. #campus-life .getting-around .content .image-content {
  485. width: 100%;
  486. transform: translateY(100px) translateX(-2rem);
  487. border-radius: 3px;
  488. overflow: hidden;
  489. }
  490. @media screen and (max-width: 992px) {
  491. #campus-life .getting-around .content .image-content {
  492. width: 80%;
  493. transform: translateY(-10%) translateX(30%);
  494. }
  495. }
  496. @media screen and (max-width: 500px) {
  497. #campus-life .getting-around .content .image-content {
  498. margin-top: 2.5rem;
  499. width: 100%;
  500. transform: translateY(0) translateX(0);
  501. }
  502. }
  503. #campus-life .getting-around .content .image-content img {
  504. width: 100%;
  505. }
  506. #campus-life .campus-tour {
  507. margin: 2rem 0 0;
  508. padding: 2rem 0;
  509. background: #f4f4f4;
  510. }
  511. #campus-life .campus-tour .title {
  512. text-align: center;
  513. }
  514. #campus-life .campus-tour .content {
  515. width: 100%;
  516. margin-top: 2rem;
  517. }
  518. #campus-life .campus-tour .content .wraper-iframe {
  519. position: relative;
  520. width: 100%;
  521. }
  522. #campus-life .campus-tour .content iframe {
  523. aspect-ratio: 16/6;
  524. width: 100%;
  525. border-radius: 10px;
  526. }
  527. #campus-life .state {
  528. padding: 4rem 0 3rem;
  529. }
  530. #campus-life .state .analytics {
  531. border-top: 2px solid #333;
  532. border-bottom: 2px solid #333;
  533. text-align: center;
  534. display: flex;
  535. justify-content: space-around;
  536. align-items: center;
  537. }
  538. @media screen and (max-width: 768px) {
  539. #campus-life .state .analytics {
  540. flex-direction: column;
  541. }
  542. }
  543. #campus-life .state .analytics .item {
  544. margin-bottom: 1rem;
  545. }
  546. #campus-life .state .analytics .count {
  547. font-weight: 700;
  548. margin-bottom: 0.5rem !important;
  549. font-size: 2rem;
  550. }
  551. #campus-life .state .analytics .desc {
  552. font-weight: 500;
  553. margin-bottom: unset;
  554. }
  555. </style>
  556. <?php
  557. get_footer();