Files
mycode/jsonhero-web/app/components/Home/HomeApiHeroBanner.tsx
2026-02-04 12:18:35 +08:00

34 lines
1.4 KiB
TypeScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { Body } from "../Primitives/Body";
import { HomeApiHeroLaptop } from "./HomeApiHeroLaptop";
export function HomeApiHeroBanner() {
return (
<div className="flex items-center justify-start md:justify-center w-full h-40 bg-gradient-to-r from-purple-600 via-pink-500 to-purple-600 hover:backdrop-filter hover:backdrop-brightness-75 transition">
<div className="relative flex justify-center items-center w-1/2 md:w-full pl-6 md:px-6">
<div className="flex flex-col">
<Body className=" text-white text-[1rem] sm:text-[1.2rem] font-bold md:text-3xl leading-tight">
Early access to API Hero
</Body>
<p className="mb-2 text-white md:text-xl text-sm">
Make every API you use faster and more reliable.
</p>
<a
href="https://apihero.run"
target="new"
className="flex items-center justify-center px-3 py-2 mt-2 text-center text-md md:text-xl text-slate-800 font-bold bg-lime-500 rounded shadow-md hover:bg-lime-400 transition"
>
Get started &rarr;
</a>
</div>
<a
href="https://apihero.run"
target="new"
className="absolute md:relative -top-5 md:top-auto -right-[20rem] md:right-auto"
>
<HomeApiHeroLaptop className="w-50 md:w-80 mb-2"></HomeApiHeroLaptop>
</a>
</div>
</div>
);
}