src/ApplicationBundle/Modules/HoneybeeWeb/Resources/views/pages/contact.html.twig line 1

Open in your IDE?
  1. {% include '@Application/inc/central_header.html.twig' %}
  2. <style>
  3. :root {
  4.     --n-cream: #F7F5F0;
  5.     --n-dark:  #1A1D2E;
  6.     --n-amber: #C07D2A;
  7.     --n-sage:  #3D6B52;
  8.     --n-slate: #3D4F72;
  9.     --n-muted: #6B7280;
  10.     --n-border: rgba(26,29,46,.08);
  11. }
  12. .n-page-hero {
  13.     background: var(--n-cream);
  14.     padding: 80px 0 56px;
  15.     text-align: center;
  16. }
  17. .n-page-hero .n-eyebrow {
  18.     display: inline-block;
  19.     font-size: .75rem;
  20.     font-weight: 700;
  21.     letter-spacing: .12em;
  22.     text-transform: uppercase;
  23.     color: var(--n-amber);
  24.     margin-bottom: 14px;
  25. }
  26. .n-page-hero h1 {
  27.     font-family: 'Montserrat', sans-serif;
  28.     font-size: clamp(2rem, 4vw, 2.8rem);
  29.     font-weight: 700;
  30.     color: var(--n-dark);
  31.     margin: 0 0 14px;
  32.     line-height: 1.2;
  33. }
  34. .n-page-hero p {
  35.     font-size: 1.05rem;
  36.     color: var(--n-muted);
  37.     max-width: 520px;
  38.     margin: 0 auto;
  39.     line-height: 1.7;
  40. }
  41. /* ── Contact Section ── */
  42. .n-contact-section {
  43.     background: #fff;
  44.     padding: 72px 0 96px;
  45. }
  46. .n-contact-inner {
  47.     display: grid;
  48.     grid-template-columns: 1fr 1fr;
  49.     gap: 64px;
  50.     align-items: center;
  51.     max-width: 960px;
  52.     margin: 0 auto;
  53.     padding: 0 24px;
  54. }
  55. @media(max-width:768px) {
  56.     .n-contact-inner { grid-template-columns: 1fr; gap: 32px; }
  57.     .n-contact-img { display: none; }
  58. }
  59. .n-contact-img img {
  60.     width: 100%;
  61.     max-width: 380px;
  62.     display: block;
  63.     margin: 0 auto;
  64.     opacity: .92;
  65. }
  66. /* form */
  67. .n-contact-form h2 {
  68.     font-family: 'Montserrat', sans-serif;
  69.     font-size: 1.6rem;
  70.     font-weight: 700;
  71.     color: var(--n-dark);
  72.     margin: 0 0 6px;
  73. }
  74. .n-contact-form .n-form-sub {
  75.     font-size: .9rem;
  76.     color: var(--n-muted);
  77.     margin: 0 0 28px;
  78. }
  79. .n-field {
  80.     margin-bottom: 18px;
  81. }
  82. .n-field label {
  83.     display: block;
  84.     font-size: .82rem;
  85.     font-weight: 600;
  86.     color: var(--n-dark);
  87.     margin-bottom: 6px;
  88.     letter-spacing: .02em;
  89. }
  90. .n-field input,
  91. .n-field textarea {
  92.     width: 100%;
  93.     padding: 11px 14px;
  94.     border: 1.5px solid var(--n-border);
  95.     border-radius: 8px;
  96.     font-size: .95rem;
  97.     color: var(--n-dark);
  98.     background: var(--n-cream);
  99.     transition: border-color .2s;
  100.     font-family: 'DM Sans', sans-serif;
  101.     outline: none;
  102.     box-sizing: border-box;
  103. }
  104. .n-field input:focus,
  105. .n-field textarea:focus {
  106.     border-color: var(--n-amber);
  107.     background: #fff;
  108. }
  109. .n-field textarea {
  110.     resize: vertical;
  111.     min-height: 110px;
  112. }
  113. .n-submit-btn {
  114.     display: inline-flex;
  115.     align-items: center;
  116.     gap: 8px;
  117.     padding: 12px 32px;
  118.     background: var(--n-amber);
  119.     color: #fff;
  120.     border: none;
  121.     border-radius: 8px;
  122.     font-family: 'DM Sans', sans-serif;
  123.     font-size: .95rem;
  124.     font-weight: 600;
  125.     cursor: pointer;
  126.     transition: background .2s, transform .15s;
  127. }
  128. .n-submit-btn:hover { background: #a86d24; transform: translateY(-1px); }
  129. </style>
  130. <!-- Page Hero -->
  131. <section class="n-page-hero">
  132.     <div class="n-wrap">
  133.         <span class="n-eyebrow">Get in Touch</span>
  134.         <h1>Ask us anything about HoneyBee.</h1>
  135.         <p>Whether you want to explore the software, discuss Edge+, understand pricing, ask about partnerships, or see how HoneyBee fits your company — send us a message.</p>
  136.         <p style="max-width:520px;margin:10px auto 0;font-size:1.05rem;color:var(--n-muted);line-height:1.7;">We will review your query and get back to you by email.</p>
  137.         <p style="max-width:520px;margin:10px auto 0;font-size:.9rem;color:var(--n-muted);line-height:1.7;">For more specific technical or project discussions, you can also book an online meeting with our team.</p>
  138.     </div>
  139. </section>
  140. <!-- Contact Form Section -->
  141. <section class="n-contact-section">
  142.     <div class="n-contact-inner">
  143.         <div class="n-contact-img">
  144.             <img src="{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/about/contact-robot.svg?version={{ constant('ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION') }}" alt="Contact HoneyBee">
  145.         </div>
  146.         <div class="n-contact-form">
  147.             <h2>Send us your question</h2>
  148.             <p class="n-form-sub">We typically respond within one business day. For complex or project-related queries, we may follow up with a call or meeting.</p>
  149.             <div style="display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px;">
  150.                 <span style="font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--n-muted);align-self:center;margin-right:4px;">Enquiry type:</span>
  151.                 <button type="button" onclick="document.getElementById('subject').value='Product Demo'" style="padding:5px 14px;border-radius:6px;border:1.5px solid var(--n-border);background:var(--n-cream);font-size:.82rem;font-weight:600;cursor:pointer;color:var(--n-dark);">Product Demo</button>
  152.                 <button type="button" onclick="document.getElementById('subject').value='Enterprise Quote'" style="padding:5px 14px;border-radius:6px;border:1.5px solid var(--n-border);background:var(--n-cream);font-size:.82rem;font-weight:600;cursor:pointer;color:var(--n-dark);">Enterprise Quote</button>
  153.                 <button type="button" onclick="document.getElementById('subject').value='Partner Application'" style="padding:5px 14px;border-radius:6px;border:1.5px solid var(--n-border);background:var(--n-cream);font-size:.82rem;font-weight:600;cursor:pointer;color:var(--n-dark);">Partner Application</button>
  154.                 <button type="button" onclick="document.getElementById('subject').value='Hardware Quote'" style="padding:5px 14px;border-radius:6px;border:1.5px solid var(--n-border);background:var(--n-cream);font-size:.82rem;font-weight:600;cursor:pointer;color:var(--n-dark);">Hardware Quote</button>
  155.             </div>
  156.             <form id="newsletter-form" method="post">
  157.                 <div class="n-field">
  158.                     <label for="name">Full Name</label>
  159.                     <input type="text" id="name" name="name" placeholder="Your full name" required>
  160.                 </div>
  161.                 <div class="n-field">
  162.                     <label for="email">Email Address</label>
  163.                     <input type="email" id="email" name="email" placeholder="your@company.com" required>
  164.                 </div>
  165.                 <div class="n-field">
  166.                     <label for="subject">Subject</label>
  167.                     <input type="text" id="subject" name="subject" placeholder="What is this about?" required>
  168.                 </div>
  169.                 <div class="n-field">
  170.                     <label for="meeting_time">Preferred meeting time <span style="font-weight:400;color:var(--n-muted)">(optional)</span></label>
  171.                     <input type="text" id="meeting_time" name="meeting_time" placeholder="Optional — if you'd like to schedule a call">
  172.                 </div>
  173.                 <div class="n-field">
  174.                     <label for="message">Message</label>
  175.                     <textarea id="message" name="message" placeholder="Tell us how we can help…" required></textarea>
  176.                 </div>
  177.                 <button type="submit" class="n-submit-btn">
  178.                     <i class="fa fa-paper-plane"></i> Send Message
  179.                 </button>
  180.             </form>
  181.             <div style="margin-top:32px;padding-top:24px;border-top:1.5px solid var(--n-border)">
  182.                 <p style="font-size:.9rem;font-weight:700;color:var(--n-dark);margin-bottom:6px;">Need to speak directly?</p>
  183.                 <p style="font-size:.85rem;color:var(--n-muted);line-height:1.65;margin-bottom:14px;">You can also book an online meeting for detailed discussions on your project, Edge+ deployment, IoT integration, or enterprise rollout.</p>
  184.                 <a href="{{ url('book_demo_page') }}" style="display:inline-flex;align-items:center;gap:8px;padding:10px 22px;border-radius:8px;border:1.5px solid var(--n-border);background:var(--n-cream);font-size:.85rem;font-weight:600;color:var(--n-dark);text-decoration:none;transition:border-color .2s;" onmouseover="this.style.borderColor='var(--n-amber)'" onmouseout="this.style.borderColor='var(--n-border)'">
  185.                     <i class="fa fa-calendar"></i> Book Online Meeting
  186.                 </a>
  187.             </div>
  188.             <div style="margin-top:28px;padding:20px 22px;background:var(--n-cream);border-radius:10px;border:1px solid var(--n-border)">
  189.                 <p style="font-size:.8rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--n-muted);margin-bottom:10px;">What happens after you submit?</p>
  190.                 <p style="font-size:.85rem;color:var(--n-muted);line-height:1.6;margin-bottom:8px;">We review your message and respond by email. Depending on your request, we may:</p>
  191.                 <ul style="font-size:.85rem;color:var(--n-muted);line-height:1.8;padding-left:18px;margin:0;">
  192.                     <li>Answer directly</li>
  193.                     <li>Suggest a product demo</li>
  194.                     <li>Propose a technical discussion</li>
  195.                     <li>Recommend an Edge+ or deployment approach</li>
  196.                     <li>Share a quotation or next steps</li>
  197.                 </ul>
  198.             </div>
  199.         </div>
  200.     </div>
  201. </section>
  202. <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
  203. <script>
  204.     $(document).ready(function () {
  205.         $('#newsletter-form').on('submit', function (e) {
  206.             e.preventDefault();
  207.             $.ajax({
  208.                 url: "{{ path('honeybee_contact') }}",
  209.                 type: "POST",
  210.                 data: $(this).serialize(),
  211.                 success: function (response) {
  212.                     if (response.success) {
  213.                         Swal.fire({
  214.                             icon: 'success',
  215.                             title: 'Thanks for Reaching Out!',
  216.                             text: response.message,
  217.                             timer: 2000,
  218.                             showConfirmButton: false
  219.                         });
  220.                         $('#newsletter-form')[0].reset();
  221.                     } else {
  222.                         Swal.fire('Error', response.message, 'error');
  223.                     }
  224.                 },
  225.                 error: function () {
  226.                     Swal.fire('Oops!', 'Something went wrong. Please try again.', 'error');
  227.                 }
  228.             });
  229.         });
  230.     });
  231. </script>
  232. {% include '@HoneybeeWeb/footer/central_footer.html.twig' %}