education-index.jsp 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. <%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
  2. <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
  4. <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
  5. <c:set var="educationDefaultImage" value="/main/ffkj-portal/assets/official/view-hero.jpg"/>
  6. <c:set var="aboutHref" value="/xueyuangaikuang/"/>
  7. <c:set var="newsHref" value="/xinwentonggao/xinwendongtai/"/>
  8. <c:set var="noticeHref" value="/xinwentonggao/tongzhitonggao/"/>
  9. <c:set var="teachingHref" value="/jiaoyujiaoxue/"/>
  10. <c:set var="heritageHref" value="/feiyichuanchengjidi/"/>
  11. <c:set var="admissionHref" value="/zhaoshengjiuye/"/>
  12. <c:set var="galleryHref" value="/xueyuanfengcai/"/>
  13. <c:forEach items="${navList}" var="navItem">
  14. <c:if test="${navItem.idcard eq 'FFKJ_EDU_ABOUT'}"><c:set var="aboutHref" value="${navItem.href}"/></c:if>
  15. <c:if test="${navItem.idcard eq 'FFKJ_EDU_NEWS_DYNAMIC'}"><c:set var="newsHref" value="${navItem.href}"/></c:if>
  16. <c:if test="${navItem.idcard eq 'FFKJ_EDU_NEWS_NOTICE'}"><c:set var="noticeHref" value="${navItem.href}"/></c:if>
  17. <c:if test="${navItem.idcard eq 'FFKJ_EDU_TEACHING'}"><c:set var="teachingHref" value="${navItem.href}"/></c:if>
  18. <c:if test="${navItem.idcard eq 'FFKJ_EDU_HERITAGE'}"><c:set var="heritageHref" value="${navItem.href}"/></c:if>
  19. <c:if test="${navItem.idcard eq 'FFKJ_EDU_ADMISSION'}"><c:set var="admissionHref" value="${navItem.href}"/></c:if>
  20. </c:forEach>
  21. <c:if test="${not empty educationNewsNmv.navigationMap.href}"><c:set var="newsHref" value="${educationNewsNmv.navigationMap.href}"/></c:if>
  22. <c:if test="${not empty educationNoticeNmv.navigationMap.href}"><c:set var="noticeHref" value="${educationNoticeNmv.navigationMap.href}"/></c:if>
  23. <c:if test="${not empty educationGalleryNmv.navigationMap.href}"><c:set var="galleryHref" value="${educationGalleryNmv.navigationMap.href}"/></c:if>
  24. <!doctype html>
  25. <html lang="zh-CN">
  26. <head>
  27. <meta charset="UTF-8">
  28. <meta name="viewport" content="width=device-width, initial-scale=1">
  29. <meta name="keywords" content="${website.seoKeywords}">
  30. <meta name="description" content="${website.seoDescription}">
  31. <title>${empty website.seoTitle ? website.name : website.seoTitle}</title>
  32. <link rel="icon" href="${empty website.seoIcon ? website.logo : website.seoIcon}?v=20261109-education-2">
  33. <link rel="stylesheet" href="/main/ffkj-portal/education-college.css?v=20261123-home-cleanup-3">
  34. </head>
  35. <body class="education-page">
  36. <%@ include file="education-header.jsp"%>
  37. <main>
  38. <h1 class="edu-sr-only">${empty website.seoTitle ? website.name : website.seoTitle}</h1>
  39. <section class="edu-hero" data-education-hero aria-label="教育学院首页轮播" aria-roledescription="轮播">
  40. <div class="edu-hero-track">
  41. <c:choose>
  42. <c:when test="${not empty educationHeroNmv.articleList}">
  43. <c:forEach items="${educationHeroNmv.articleList}" var="item" varStatus="vs">
  44. <a class="edu-hero-slide ${vs.first ? 'is-active' : ''}" data-education-hero-slide href="${empty item.url ? aboutHref : item.url}" target="${item.target}" rel="noopener" aria-label="${item.title}" aria-hidden="${vs.first ? 'false' : 'true'}" tabindex="${vs.first ? '0' : '-1'}">
  45. <img class="edu-hero-bg" src="${empty item.thumbnail ? educationDefaultImage : item.thumbnail}" alt="">
  46. </a>
  47. </c:forEach>
  48. </c:when>
  49. <c:otherwise>
  50. <a class="edu-hero-slide is-active" data-education-hero-slide href="${aboutHref}" aria-label="走进教育学院" aria-hidden="false" tabindex="0">
  51. <img class="edu-hero-bg" src="${educationDefaultImage}" alt="">
  52. </a>
  53. </c:otherwise>
  54. </c:choose>
  55. </div>
  56. <c:if test="${fn:length(educationHeroNmv.articleList) > 1}">
  57. <button class="edu-hero-arrow prev" type="button" data-education-hero-prev aria-label="上一张">‹</button>
  58. <button class="edu-hero-arrow next" type="button" data-education-hero-next aria-label="下一张">›</button>
  59. <div class="edu-hero-dots" aria-label="首页轮播切换">
  60. <c:forEach items="${educationHeroNmv.articleList}" var="item" varStatus="vs"><button class="edu-hero-dot ${vs.first ? 'is-active' : ''}" type="button" data-education-hero-dot="${vs.index}" aria-label="第 ${vs.count} 张轮播图" aria-pressed="${vs.first ? 'true' : 'false'}"></button></c:forEach>
  61. </div>
  62. </c:if>
  63. </section>
  64. <section class="edu-notice-section" aria-label="通知通告">
  65. <div class="edu-wrap">
  66. <div class="edu-notice">
  67. <div class="edu-notice-label">公告</div>
  68. <div class="edu-notice-window">
  69. <div class="edu-notice-list" data-education-notices>
  70. <c:choose>
  71. <c:when test="${not empty educationNoticeNmv.articleList}">
  72. <c:forEach items="${educationNoticeNmv.articleList}" var="item" varStatus="vs">
  73. <article class="edu-notice-item ${vs.first ? 'is-active' : ''}" data-education-notice>
  74. <a href="${item.url}" target="${item.target}" rel="noopener">· ${item.title}</a>
  75. <time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time>
  76. </article>
  77. </c:forEach>
  78. </c:when>
  79. <c:otherwise><article class="edu-notice-item is-active" data-education-notice><a href="${noticeHref}">· 通知通告栏目暂无内容,请在后台发布文章。</a><time>—</time></article></c:otherwise>
  80. </c:choose>
  81. </div>
  82. </div>
  83. <a class="edu-more" href="${noticeHref}">更多 ›</a>
  84. </div>
  85. </div>
  86. </section>
  87. <section class="edu-section" aria-labelledby="education-news-title">
  88. <div class="edu-wrap">
  89. <div class="edu-section-head">
  90. <h2 class="edu-section-title" id="education-news-title">学院新闻</h2>
  91. <a class="edu-section-more" href="${newsHref}">更多 ›</a>
  92. </div>
  93. <div class="edu-news-card">
  94. <c:choose>
  95. <c:when test="${not empty educationNewsNmv.articleList}">
  96. <c:forEach items="${educationNewsNmv.articleList}" var="item" varStatus="vs" begin="0" end="0">
  97. <article class="edu-feature">
  98. <a class="edu-feature-image" href="${item.url}" target="${item.target}" rel="noopener"><img src="${empty item.thumbnail ? educationDefaultImage : item.thumbnail}" alt="${item.title}"></a>
  99. <div class="edu-feature-copy">
  100. <div class="edu-date-badge"><b><fmt:formatDate value="${item.release_time}" pattern="dd"/></b>/ <fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></div>
  101. <h3><a href="${item.url}" target="${item.target}" rel="noopener">${item.title}</a></h3>
  102. <p>${empty item.desc ? '学院坚持立德树人根本任务,持续推进教育教学改革与师范人才培养。' : item.desc}</p>
  103. </div>
  104. </article>
  105. </c:forEach>
  106. <ul class="edu-news-list">
  107. <c:forEach items="${educationNewsNmv.articleList}" var="item" varStatus="vs" begin="1" end="10">
  108. <li><a href="${item.url}" target="${item.target}" rel="noopener"><span>${item.title}</span><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM-dd"/></time></a></li>
  109. </c:forEach>
  110. </ul>
  111. </c:when>
  112. <c:otherwise><div class="edu-empty">学院新闻栏目暂无内容,请在后台发布文章。</div></c:otherwise>
  113. </c:choose>
  114. </div>
  115. </div>
  116. </section>
  117. <section class="edu-section" aria-labelledby="education-heritage-title">
  118. <div class="edu-wrap">
  119. <div class="edu-heritage-zone">
  120. <div class="edu-heritage-icon" aria-hidden="true">🏮</div>
  121. <div class="edu-heritage-copy">
  122. <h2 class="edu-section-title" id="education-heritage-title">非物质文化遗产传承基地</h2>
  123. <c:choose>
  124. <c:when test="${not empty educationHeritageIntroNmv.articleList}">
  125. <c:forEach items="${educationHeritageIntroNmv.articleList}" var="item" begin="0" end="0"><p>${empty item.desc ? item.title : item.desc}</p></c:forEach>
  126. </c:when>
  127. <c:otherwise><p>以“传艺·传心·传师道”为理念,集技艺传习、课程研发、师资培训、研学展示于一体,打造岭南非遗融入教师教育的实践高地。</p></c:otherwise>
  128. </c:choose>
  129. </div>
  130. <a class="edu-zone-btn" href="${heritageHref}">进入基地专区 ›</a>
  131. </div>
  132. </div>
  133. </section>
  134. <section class="edu-section" aria-label="教育教学与招生就业">
  135. <div class="edu-wrap edu-twin">
  136. <article class="edu-panel">
  137. <div class="edu-section-head">
  138. <h2 class="edu-section-title">教育教学</h2>
  139. <a class="edu-section-more" href="${teachingHref}">更多 ›</a>
  140. </div>
  141. <div class="edu-tabs" role="tablist" aria-label="教育教学分类" data-education-tabgroup="teaching">
  142. <button class="edu-tab is-active" id="education-teaching-tab-0" type="button" role="tab" aria-selected="true" aria-controls="education-teaching-panel-0" tabindex="0" data-education-tab="0">☰ 专业介绍</button>
  143. <button class="edu-tab" id="education-teaching-tab-1" type="button" role="tab" aria-selected="false" aria-controls="education-teaching-panel-1" tabindex="-1" data-education-tab="1">▤ 教学动态</button>
  144. <button class="edu-tab" id="education-teaching-tab-2" type="button" role="tab" aria-selected="false" aria-controls="education-teaching-panel-2" tabindex="-1" data-education-tab="2">🤝 校企合作</button>
  145. </div>
  146. <div class="edu-tab-panel is-active" id="education-teaching-panel-0" role="tabpanel" aria-labelledby="education-teaching-tab-0" data-education-panel="0">
  147. <ul class="edu-mini-list">
  148. <c:forEach items="${educationMajorNmv.articleList}" var="item"><li><a href="${item.url}" target="${item.target}" rel="noopener"><span>${item.title}</span><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM"/></time></a></li></c:forEach>
  149. <c:if test="${empty educationMajorNmv.articleList}"><li><a href="${teachingHref}"><span>专业介绍栏目暂无内容</span><time>—</time></a></li></c:if>
  150. </ul>
  151. </div>
  152. <div class="edu-tab-panel" id="education-teaching-panel-1" role="tabpanel" aria-labelledby="education-teaching-tab-1" data-education-panel="1" hidden>
  153. <ul class="edu-mini-list">
  154. <c:forEach items="${educationTeachingNmv.articleList}" var="item"><li><a href="${item.url}" target="${item.target}" rel="noopener"><span>${item.title}</span><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM"/></time></a></li></c:forEach>
  155. <c:if test="${empty educationTeachingNmv.articleList}"><li><a href="${teachingHref}"><span>教学动态栏目暂无内容</span><time>—</time></a></li></c:if>
  156. </ul>
  157. </div>
  158. <div class="edu-tab-panel" id="education-teaching-panel-2" role="tabpanel" aria-labelledby="education-teaching-tab-2" data-education-panel="2" hidden>
  159. <ul class="edu-mini-list">
  160. <c:forEach items="${educationCooperationNmv.articleList}" var="item"><li><a href="${item.url}" target="${item.target}" rel="noopener"><span>${item.title}</span><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM"/></time></a></li></c:forEach>
  161. <c:if test="${empty educationCooperationNmv.articleList}"><li><a href="${teachingHref}"><span>校企合作栏目暂无内容</span><time>—</time></a></li></c:if>
  162. </ul>
  163. </div>
  164. <a class="edu-panel-more" href="${teachingHref}">进入教育教学 ›</a>
  165. </article>
  166. <article class="edu-panel">
  167. <div class="edu-section-head">
  168. <h2 class="edu-section-title">招生就业</h2>
  169. <a class="edu-section-more" href="${admissionHref}">更多 ›</a>
  170. </div>
  171. <div class="edu-tabs" role="tablist" aria-label="招生就业分类" data-education-tabgroup="admission">
  172. <button class="edu-tab is-active" id="education-admission-tab-0" type="button" role="tab" aria-selected="true" aria-controls="education-admission-panel-0" tabindex="0" data-education-tab="0">📢 招生工作</button>
  173. <button class="edu-tab" id="education-admission-tab-1" type="button" role="tab" aria-selected="false" aria-controls="education-admission-panel-1" tabindex="-1" data-education-tab="1">💼 就业工作</button>
  174. </div>
  175. <div class="edu-tab-panel is-active" id="education-admission-panel-0" role="tabpanel" aria-labelledby="education-admission-tab-0" data-education-panel="0">
  176. <ul class="edu-mini-list">
  177. <c:forEach items="${educationAdmissionNmv.articleList}" var="item"><li><a href="${item.url}" target="${item.target}" rel="noopener"><span>${item.title}</span><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM"/></time></a></li></c:forEach>
  178. <c:if test="${empty educationAdmissionNmv.articleList}"><li><a href="${admissionHref}"><span>招生工作栏目暂无内容</span><time>—</time></a></li></c:if>
  179. </ul>
  180. </div>
  181. <div class="edu-tab-panel" id="education-admission-panel-1" role="tabpanel" aria-labelledby="education-admission-tab-1" data-education-panel="1" hidden>
  182. <ul class="edu-mini-list">
  183. <c:forEach items="${educationEmploymentNmv.articleList}" var="item"><li><a href="${item.url}" target="${item.target}" rel="noopener"><span>${item.title}</span><time><fmt:formatDate value="${item.release_time}" pattern="yyyy-MM"/></time></a></li></c:forEach>
  184. <c:if test="${empty educationEmploymentNmv.articleList}"><li><a href="${admissionHref}"><span>就业工作栏目暂无内容</span><time>—</time></a></li></c:if>
  185. </ul>
  186. </div>
  187. <a class="edu-panel-more" href="${admissionHref}">进入招生就业 ›</a>
  188. </article>
  189. </div>
  190. </section>
  191. <section class="edu-section" aria-labelledby="education-gallery-title">
  192. <div class="edu-wrap">
  193. <div class="edu-section-head">
  194. <h2 class="edu-section-title" id="education-gallery-title">学院风采</h2>
  195. <a class="edu-section-more" href="${galleryHref}">更多 ›</a>
  196. </div>
  197. <div class="edu-gallery">
  198. <c:choose>
  199. <c:when test="${not empty educationGalleryNmv.articleList}">
  200. <c:forEach items="${educationGalleryNmv.articleList}" var="item">
  201. <a class="edu-gallery-card" href="${item.url}" target="${item.target}" rel="noopener"><img src="${empty item.thumbnail ? educationDefaultImage : item.thumbnail}" alt="${item.title}"><span>${item.title}</span></a>
  202. </c:forEach>
  203. </c:when>
  204. <c:otherwise>
  205. <a class="edu-gallery-card" href="${galleryHref}"><img src="/main/ffkj-portal/assets/official/view-4.png" alt="诵读经典传文脉"><span>诵读经典传文脉——教育学院中华经典诵写讲大赛决赛现场</span></a>
  206. <a class="edu-gallery-card" href="${galleryHref}"><img src="/main/ffkj-portal/assets/official/campus-3.jpg" alt="学院田径运动会"><span>跃动青春,燃动赛场——学院第21届田径运动会开幕式</span></a>
  207. <a class="edu-gallery-card" href="${galleryHref}"><img src="/main/ffkj-portal/assets/programs/dance-education.png" alt="非遗课堂"><span>指尖非遗:广彩绘制课堂上的“小传承人”们</span></a>
  208. <a class="edu-gallery-card" href="${galleryHref}"><img src="/main/ffkj-portal/assets/official/view-5.jpg" alt="支教活动"><span>情系支教,传递温暖——赴山区结对学校送教活动</span></a>
  209. </c:otherwise>
  210. </c:choose>
  211. </div>
  212. </div>
  213. </section>
  214. </main>
  215. <%@ include file="education-footer.jsp"%>
  216. <script>
  217. (function () {
  218. var root = document.querySelector('[data-education-hero]');
  219. if (!root) return;
  220. var track = root.querySelector('.edu-hero-track');
  221. var slides = Array.prototype.slice.call(root.querySelectorAll('[data-education-hero-slide]'));
  222. var dots = Array.prototype.slice.call(root.querySelectorAll('[data-education-hero-dot]'));
  223. var prev = root.querySelector('[data-education-hero-prev]');
  224. var next = root.querySelector('[data-education-hero-next]');
  225. if (!track || slides.length < 2) return;
  226. var current = 0;
  227. var timer = null;
  228. var reduceMotion = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
  229. function activate(index) {
  230. current = (index + slides.length) % slides.length;
  231. track.style.transform = 'translateX(' + (-current * 100) + '%)';
  232. slides.forEach(function (slide, i) {
  233. slide.classList.toggle('is-active', i === current);
  234. slide.setAttribute('aria-hidden', i === current ? 'false' : 'true');
  235. slide.tabIndex = i === current ? 0 : -1;
  236. });
  237. dots.forEach(function (dot, i) { dot.classList.toggle('is-active', i === current); dot.setAttribute('aria-pressed', i === current ? 'true' : 'false'); });
  238. }
  239. function stop() { if (timer) { window.clearInterval(timer); timer = null; } }
  240. function start() { stop(); if (!reduceMotion) timer = window.setInterval(function () { activate(current + 1); }, 5600); }
  241. if (prev) prev.addEventListener('click', function () { activate(current - 1); start(); });
  242. if (next) next.addEventListener('click', function () { activate(current + 1); start(); });
  243. dots.forEach(function (dot) { dot.addEventListener('click', function () { activate(Number(dot.getAttribute('data-education-hero-dot'))); start(); }); });
  244. root.addEventListener('mouseenter', stop);
  245. root.addEventListener('mouseleave', start);
  246. root.addEventListener('focusin', stop);
  247. root.addEventListener('focusout', function (event) { if (!root.contains(event.relatedTarget)) start(); });
  248. activate(0);
  249. start();
  250. })();
  251. (function () {
  252. var items = Array.prototype.slice.call(document.querySelectorAll('[data-education-notice]'));
  253. if (items.length < 2) return;
  254. if (window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches) return;
  255. var current = 0;
  256. window.setInterval(function () {
  257. items[current].classList.remove('is-active');
  258. current = (current + 1) % items.length;
  259. items[current].classList.add('is-active');
  260. }, 4200);
  261. })();
  262. (function () {
  263. Array.prototype.forEach.call(document.querySelectorAll('.edu-tabs'), function (tabbar) {
  264. var panelRoot = tabbar.parentNode;
  265. var tabs = Array.prototype.slice.call(tabbar.querySelectorAll('[data-education-tab]'));
  266. var panels = Array.prototype.slice.call(panelRoot.querySelectorAll('[data-education-panel]'));
  267. function activate(index, focusTab) {
  268. tabs.forEach(function (item, i) {
  269. var active = i === index;
  270. item.classList.toggle('is-active', active);
  271. item.setAttribute('aria-selected', active ? 'true' : 'false');
  272. item.tabIndex = active ? 0 : -1;
  273. });
  274. panels.forEach(function (panel, i) {
  275. var active = i === index;
  276. panel.classList.toggle('is-active', active);
  277. panel.hidden = !active;
  278. });
  279. if (focusTab && tabs[index]) tabs[index].focus();
  280. }
  281. tabs.forEach(function (tab) {
  282. tab.addEventListener('click', function () { activate(Number(tab.getAttribute('data-education-tab')), false); });
  283. tab.addEventListener('keydown', function (event) {
  284. var index = Number(tab.getAttribute('data-education-tab'));
  285. var next = index;
  286. if (event.key === 'ArrowRight') next = (index + 1) % tabs.length;
  287. else if (event.key === 'ArrowLeft') next = (index - 1 + tabs.length) % tabs.length;
  288. else if (event.key === 'Home') next = 0;
  289. else if (event.key === 'End') next = tabs.length - 1;
  290. else return;
  291. event.preventDefault();
  292. activate(next, true);
  293. });
  294. });
  295. });
  296. })();
  297. </script>
  298. </body>
  299. </html>