Refactor character image handling and API calls

This commit is contained in:
Riccardo Giorato
2025-12-23 12:31:54 +01:00
parent 3eea61625d
commit d2b94bde98
4 changed files with 56 additions and 72 deletions
+15 -6
View File
@@ -1,25 +1,34 @@
"use client"
"use client";
import { TOGETHER_LINK } from "@/lib/utils";
export function LandingHero() {
return (
<header className="relative py-8 sm:py-12 md:py-16 lg:py-0">
<div className="relative z-10">
<div className="lg:text-left text-center">
<div className="inline-flex items-center gap-1 px-2.5 py-1 rounded-full border border-border glass-panel mb-4 sm:mb-6 w-fit">
<a
href={TOGETHER_LINK}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center gap-1 px-2.5 py-1 rounded-full border border-border glass-panel mb-4 sm:mb-6 w-fit"
>
<span className="text-[10px] font-medium text-muted-foreground tracking-[-0.015em]">
Powered by Together AI
</span>
</div>
</a>
<h1 className="text-5xl sm:text-6xl md:text-7xl lg:text-8xl text-foreground uppercase mb-4 sm:mb-5 tracking-wide font-heading font-semibold leading-tight sm:leading-[5.2rem]">
Create stunning <span className="text-indigo font-semibold">comics</span>
Create stunning{" "}
<span className="text-indigo font-semibold">comics</span>
</h1>
<p className="text-muted-foreground leading-relaxed max-w-md mx-auto lg:mx-0 tracking-[-0.02em] px-4 sm:px-0 text-sm">
Describe your scene, choose a style, and let AI render professional comic panels instantly.
Describe your scene, choose a style, and let AI render professional
comic panels instantly.
</p>
</div>
</div>
</header>
)
);
}