app/template/user_data/gibier_lp.twig line 1

Open in your IDE?
  1. {% extends 'default_frame.twig' %}
  2. {% block javascript %}
  3. <script>
  4.     var headerContent = document.getElementById("header_content");
  5.     var footerCtaBtn = document.getElementById("footer-cta-btn");
  6.     var floatingCta = document.getElementById("float-cta-btn");
  7.     const url = new URL(window.location.href);
  8.     const params = url.searchParams;
  9.     const inoshihsi_url = params.get('channel') === "ec" ? 
  10.         "https://web-order.shikomel.com/entry/before?sendto=detail&param=710" : "https://shikomel.onelink.me/5Bi4/3luki5pa"; 
  11.     const inoshishi_cta = document.getElementById("inoshishi-cta")
  12.     inoshishi_cta.href = inoshihsi_url
  13.     
  14.     const shika_url = params.get('channel') === "ec" ? 
  15.         "https://web-order.shikomel.com/entry/before?sendto=detail&param=711" : "https://shikomel.onelink.me/5Bi4/eizd0t47";
  16.     const shika_cta = document.getElementById("shika-cta")
  17.     shika_cta.href = shika_url
  18.     
  19.     {% set current_domain = app.request.getHost() %}
  20.     {# ドメイン判定 #}
  21.     {% set is_prod = 'web-order.shikomel.com' in current_domain %}
  22.     {% set is_stg = 'web-order-stg.shikomel.com' in current_domain %}
  23.     {% if is_prod %}
  24.     // CTAボタンクリック
  25.     $('.entry_btn_gibier_lp').on('click', function(event) {
  26.         const currentPageUrl = window.location.href;
  27.         fbq('trackCustom', 'ce_click_gibier_lp', {
  28.             content_type: "ClickGibierBtn",
  29.             content_name: currentPageUrl,
  30.             value: 20
  31.         });
  32.         window.dataLayer.push({
  33.             event: 'ce_click_gibier_lp',
  34.             custom_event_name: 'ce_click_gibier_lp',
  35.             custom_page_url: currentPageUrl,
  36.             custom_user_agent: $("#user_agent").val(),
  37.             custom_is_ig: $("#is_ig").val(),
  38.             custom_is_line: $("#is_line").val(),
  39.             custom_referer: $("#referer").val(),
  40.             custom_real_ip: $("#real_ip").val(),
  41.         });
  42.         _lt('send', 'cv', {
  43.             type: 'ce_click_gibier_lp'
  44.         },['d6fb195c-aa19-4109-8ea0-7b1d883fb349']);
  45.     });
  46.     {% endif %}
  47. </script>
  48. {% if is_prod %}
  49. <!-- Ptengine Tag -->
  50. <script src="https://js.ptengine.jp/58yejdxs.js"></script>
  51. <!-- End Ptengine Tag -->  
  52. {% endif %}
  53. {% endblock javascript %}
  54. {% block stylesheet %}
  55.   <style>
  56.     
  57.     img {
  58.       max-width: 100%;
  59.       display: block;
  60.     }
  61.     a {
  62.       color: inherit;
  63.       text-decoration: none;
  64.     }
  65.     .ec-layoutRole__contents {
  66.         background: #0a0c10;
  67.         max-width: 100% !important;
  68.     }
  69.     .lp-wrapper {
  70.       max-width: 375px;
  71.       margin: 0 auto;
  72.       background: #000;
  73.     }
  74.     
  75.     .lp-section {
  76.       width: 100%;
  77.     }
  78.     .lp-actions__item {
  79.         position: absolute;
  80.         display: flex;
  81.         z-index: 999;
  82.         top: 477px;
  83.         gap: 13px;
  84.         padding: 0px 21px;
  85.     }
  86.     .lp-section img.full {
  87.       width: 100%;
  88.       height: auto;
  89.     }
  90.     /* ヘッダー・ファーストビュー */
  91.     .lp-header {
  92.       background: #d3c39a;
  93.     }
  94.     .lp-fv {
  95.       position: relative;
  96.       overflow: hidden;
  97.       background: #000;
  98.     }
  99.     /* 紹介・説明系のセクション */
  100.     .lp-block {
  101.       background: #000;
  102.     }
  103.     /* CTAやボタン */
  104.     .lp-actions {
  105.       padding: 24px var(--page-padding) 8px;
  106.       background: #000;
  107.       display: flex;
  108.       flex-direction: column;
  109.       gap: 16px;
  110.     }
  111.     .lp-actions__item a,
  112.     .lp-cta a {
  113.       display: block;
  114.     }
  115.     .lp-actions__item img,
  116.     .lp-cta img {
  117.       width: 100%;
  118.       border-radius: 8px;
  119.     }
  120.     .lp-block {
  121.         position: relative;
  122.     }
  123.     .lp-block .lp-cta {
  124.         max-width: 95%;
  125.         left: 10px;
  126.         position: absolute;
  127.         bottom: 32px;
  128.         z-index: 999;
  129.     }
  130.     .lp-actions__item img,
  131.     .lp-cta img {
  132.       box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  133.     }
  134.   </style>
  135. {% endblock %}
  136. {% block main %}
  137. {# ブラウザ判定 #}
  138. {% set isMeta = (app.request.headers.get('User-Agent') matches '/instagram/i' or app.request.headers.get('User-Agent') matches '/facebook/i') %}
  139.   <div class="lp-wrapper">
  140.     <!-- ロゴ・タイアップヘッダー -->
  141.     <section class="lp-section lp-header">
  142.       <img src="{{ asset('assets/img/gibier_lp/header.webp', 'user_data') }}" alt="ぽじとー × シコメル 飲食事業者さま応援企画 第4弾" class="full">
  143.     </section>
  144.     <!-- ファーストビュー -->
  145.     <section class="lp-section lp-fv">
  146.         <img src="{{ asset('assets/img/gibier_lp/fv.webp', 'user_data') }}" alt="珍しいジビエ肉で客単価アップ シコメルでこだわりのジビエ肉加工品販売スタート" class="full">
  147.         <div class="lp-actions__item">
  148.             <!-- 鹿メンチカツの詳細へのリンク -->
  149.             <a href="#shika">
  150.             <img src="{{ asset('assets/img/gibier_lp/action_1.webp', 'user_data') }}" alt="鹿メンチカツ この商品をチェック">
  151.             </a>
  152.             <!-- イノシシベーコンの詳細へのリンク -->
  153.             <a href="#inoshishi">
  154.             <img src="{{ asset('assets/img/gibier_lp/action_2.webp', 'user_data') }}" alt="イノシシベーコン この商品をチェック">
  155.             </a>
  156.         </div>
  157.     </section>
  158.     <!-- ジビエ肉とは? 鹿肉・イノシシ肉の説明 -->
  159.     <section class="lp-section lp-block">
  160.       <img src="{{ asset('assets/img/gibier_lp/introduction.webp', 'user_data') }}" alt="ジビエ肉にはどんな特徴があるの? 鹿肉・イノシシ肉の特徴" class="full">
  161.     </section>
  162.     <!-- ジビエ肉のメリット・概要 -->
  163.     <section class="lp-section lp-block" id="about">
  164.       <img src="{{ asset('assets/img/gibier_lp/about.webp', 'user_data') }}" alt="ジビエ肉のメリット 高単価設定でも売れる 他店との差別化 さらに時短でロスなし" class="full">
  165.     </section>
  166.     <!-- 提供イメージ1(鹿メンチカツ) -->
  167.     <section class="lp-section lp-block" id="shika">
  168.       <img src="{{ asset('assets/img/gibier_lp/usage_image_1.webp', 'user_data') }}" alt="シコメルのジビエ肉加工品 提供イメージ1 鹿メンチカツ" class="full">
  169.       <a id="shika-cta">
  170.         <img src="{{ asset('assets/img/gibier_lp/cta.webp', 'user_data') }}" class="lp-cta entry_btn_gibier_lp" alt="購入特典 商品POPデータプレゼント">
  171.       </a>
  172.     </section>
  173.     <!-- 提供イメージ2(イノシシベーコン) -->
  174.     <section class="lp-section lp-block" id="inoshishi">
  175.       <img src="{{ asset('assets/img/gibier_lp/usage_image_2.webp', 'user_data') }}" alt="シコメルのジビエ肉加工品 提供イメージ2 イノシシベーコン" class="full">
  176.       <a id="inoshishi-cta">
  177.         <img src="{{ asset('assets/img/gibier_lp/cta.webp', 'user_data') }}" class="lp-cta entry_btn_gibier_lp" alt="購入特典 商品POPデータプレゼント">
  178.       </a>
  179.     </section>
  180.     {# POP提供訴求 #}
  181.     <section class="lp-section lp-block">
  182.       <img src="{{ asset('assets/img/gibier_lp/pop_present.webp', 'user_data') }}" alt="シコメルのジビエ肉加工品 提供イメージ2 イノシシベーコン" class="full">
  183.     </section>
  184.   </div>
  185. {% endblock %}