app/template/default/News/detail.twig line 1

Open in your IDE?
  1. {% extends 'default_frame.twig' %}
  2. {% set body_class = 'news_detail_page' %}
  3. {% block stylesheet %}
  4.   <link rel="stylesheet" href="{{ asset('assets/css/news-detail.css') }}">
  5. {% endblock %}
  6. {% block main %}
  7.   <!-- breadcrumb section -->
  8.   <div class="breadcrumb-section">
  9.     <div class="container-1360 border-box px-40">
  10.       <nav class="breadcrumb">
  11.         <a href="{{ url('homepage') }}" class="breadcrumb__item text-black">ホーム</a>
  12.         <img src="{{ asset('assets/img/default/icons/icon-breadcrumb-arrow.svg') }}" alt=">" class="breadcrumb__separator">
  13.         <a href="{{ url('news_list') }}" class="breadcrumb__item text-black">お知らせ</a>
  14.         <img src="{{ asset('assets/img/default/icons/icon-breadcrumb-arrow.svg') }}" alt=">" class="breadcrumb__separator">
  15.         <span class="breadcrumb__item breadcrumb__item--current">{{ News.title }}</span>
  16.       </nav>
  17.     </div>
  18.   </div>
  19.   <!-- news-detail section -->
  20.   <div class="container-1200">
  21.     <div class="news-detail-wrapper">
  22.       <!-- News-detail Title Section -->
  23.       <div class="top-header-title-section">
  24.         <div class="top-header-icon-text">
  25.           <div class="top-header-icon-text">
  26.             <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  27.               <path d="M7.08203 12.5H7.08301V17.5H5.41602V13.335H2.91504C2.45495 13.3348 2.08203 12.9611 2.08203 12.501V7.50098C2.08221 7.041 2.45506 6.66814 2.91504 6.66797H7.08203V12.5ZM17.083 8.33203H17.916V11.665H17.083V17.5H15.416V17.499L8.75293 13.335H8.75V6.66797H17.083V8.33203ZM17.083 6.66699H8.75L15.416 2.5H17.083V6.66699Z" fill="#00A854"/>
  28.             </svg>
  29.             <span class="top-header-text">お知らせ</span>
  30.           </div>
  31.         </div>
  32.         <h1 class="top-header-title">NEWS</h1>
  33.       </div>
  34.       <!-- news-detail content section -->
  35.       <div class="news-detail-content-section">
  36.         <!-- News Title and Date -->
  37.         <div class="news-detail-header">
  38.           <div class="news-date">{{ News.publishDate|date('Y.m.d') }}</div>
  39.           <h1 class="news-title">{{ News.title }}</h1>
  40.         </div>
  41.         <!-- Divider Line -->
  42.         <div class="news-divider"></div>
  43.         {% if News.description %}
  44.           <!-- News Content -->
  45.           <div class="news-content-wrapper custom_css_editor">
  46.             {{ News.description|raw }}
  47.           </div>
  48.         {% endif %}
  49.         {% if News.url %}
  50.           <!-- External Link -->
  51.           <div class="news-external-link-section">
  52.             <a href="{{ News.url }}" {% if News.isLinkMethod %}target="_blank" rel="noopener noreferrer"{% endif %} class="link-base">
  53.               詳細情報を見る
  54.             </a>
  55.           </div>
  56.         {% endif %}
  57.         <!-- Bottom Divider -->
  58.         <div class="news-bottom-divider"></div>
  59.         <!-- Back Button -->
  60.         <div class="news-back-button-section">
  61.           <a href="{{ url('news_list') }}" class="news-back-button">
  62.             <div class="news-back-button-icon">
  63.               <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
  64.                 <path d="M1.74805 6.00098L1.75098 6.00391L1.74805 6.00684L6.27344 10.5312L7.4043 9.40039L4.80566 6.80273H10.2715V5.20312H4.80762L7.4043 2.60742L6.27344 1.47656L1.74805 6.00098Z" fill="#FBE800"/>
  65.               </svg>
  66.             </div>
  67.             <span class="news-back-button-text">前のページに戻る</span>
  68.           </a>
  69.         </div>
  70.       </div>
  71.     </div>
  72.   </div>
  73. {% endblock %}