import { ListCompare } from "../../components/buildpc/ListCompare";

export function CompareBuildpc() {
  return (
    <div className="page-buildpc bg-[#F4F4F4] pb-[100px]">
      <div className="container">
        <div className="breadcrumb p-[12px_0]">
          <ol
            itemscope
            itemtype="http://schema.org/BreadcrumbList"
            className="ul flex flex-wrap items-center"
          >
            <li
              itemprop="itemListElement"
              itemscope
              itemtype="http://schema.org/ListItem"
              className="flex items-center pr-[12px]"
            >
              <a
                href="/template/homepage/homepage.html"
                itemprop="item"
                className="nopad-l flex items-center text-[#637381]"
              >
                <span itemprop="name">
                  <span style="font-size: 0; display: none;">Trang chủ</span>
                  <i className="icon_2025 home mr-[5px] mb-[5px]" />
                </span>
              </a>{" "}
              <i className="icon_2025 angle-right ml-[12px]" />
              <meta itemprop="position" content="1" />
            </li>
            <li
              itemprop="itemListElement"
              itemscope
              itemtype="http://schema.org/ListItem"
              className="flex items-center pr-[12px]"
            >
              <a href="/" itemprop="item" className="nopad-l flex items-center">
                <span itemprop="name">So sánh giá tại các cửa hàng</span>
              </a>
              <meta itemprop="position" content="2" />
            </li>
          </ol>
        </div>
        {/* <!-- Action Bar --> */}
        <div className="grid grid-cols-10 gap-2 px-3 py-2.5 mt-3 text-base leading-none text-black bg-white rounded">
          <div className="col-span-4 h-[48px] rounded border border-solid border-neutral-200 flex items-center">
            <a className="w-[24px] ml-[10px]" href="javascript:void()">
              <i className="icon_2025 copy"></i>
            </a>
            <input
              type="text"
              className="w-full h-full p-[10px] outline-none"
              value="https://bestpc.vn/restricted.php"
            />
          </div>
          <div className="col-span-3 h-[48px] rounded border border-solid border-neutral-200 flex items-center">
            <p className="ml-[10px] block whitespace-nowrap">Đặt tên:</p>
            <input
              type="text"
              className="w-full h-full p-[10px] outline-none"
              value=""
            />
          </div>
          <div className="grid grid-cols-3 gap-[10px] col-span-3">
            <a
              href="javascript:void(0)"
              className="w-full block h-[48px] rounded border border-solid border-neutral-200 flex items-center justify-center hover:bg-[var(--color-global)] hover:text-white group"
            >
              <i className="icon_2025 history group-hover:brightness-0 group-hover:invert-[1]"></i>
              <span className="ml-[5px]">Lịch sử</span>
            </a>
            <a
              href="javascript:void(0)"
              className="w-full block h-[48px] rounded border border-solid border-neutral-200 flex items-center justify-center hover:bg-[var(--color-global)] hover:text-white group"
            >
              <i className="icon_2025 download group-hover:brightness-0 group-hover:invert-[1]"></i>
              <span className="ml-[5px]">Tải xuống</span>
            </a>
            <a
              href="javascript:void(0)"
              className="w-full block h-[48px] rounded border border-solid border-neutral-200 flex items-center justify-center hover:bg-[var(--color-global)] hover:text-white group"
            >
              <i className="icon_2025 return group-hover:brightness-0 group-hover:invert-[1]"></i>
              <span className="ml-[5px]">Làm mới</span>
            </a>
          </div>
        </div>

        <div className="bg-white p-[15px]">
          <div className="flex items-center gap-2">
            <a
              href="/buildpc"
              className="px-6 py-2.5 text-center font-bold text-stone-500 bg-zinc-100 rounded hover:text-white hover:bg-violet-900"
            >
              Bắt đầu tạo
            </a>
            <a
              href="/buildpc/compare"
              className="px-6 py-2.5 text-center font-bold bg-violet-900 text-white rounded"
            >
              So sánh giá tại các cửa hàng
            </a>
          </div>
          {/* <!-- list button --> */}

          <ListCompare />
        </div>
      </div>
    </div>
  );
}
