import React from "react";
import { preload } from "react-dom";

export default function AboutHero() {
  preload("/images/about-bg.webp", { as: "image" });
  return (
    <>
      
      <style dangerouslySetInnerHTML={{ __html: `
        .about-us-hero-content {
            width: 100% !important;
            text-align: center !important;
            color: #fff !important;
            padding: 0 15px !important;
            z-index: 2;
            display: flex !important;
            flex-direction: column !important;
            justify-content: center !important;
            align-items: center !important;
            height: 100% !important;
        }

        .about-us-hero-title {
            margin: 0 !important;
            font-family: "Manrope", Sans-serif !important;
            font-size: clamp(34px, 5.5vw, 68px) !important;
            font-weight: 850 !important;
            line-height: 1.1 !important;
            text-transform: uppercase !important;
            letter-spacing: -1.5px !important;
            color: #ffffff !important;
            text-align: center !important;
        }
      `}} />

      <div className="custom-standard-hero-container">
        <div 
          style={{ 
            backgroundImage: "url('/images/about-bg.webp')",
            "--hero-overlay": "linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.92) 60%, rgba(0, 0, 0, 0.98) 100%)"
          } as React.CSSProperties} 
          className="custom-standard-hero-card"
        >
          <div className="about-us-hero-content">
            <h3 className="about-us-hero-title">
              The Operators Building <br /> <span style={{ color: "#C01227" }}>Doormile</span>
            </h3>
          </div>
        </div>
      </div>
    </>
  );
}
