Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions apps/www/app/(home)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function HomePage() {
{/* Top gradient overlay for dark mode - SVG version */}
<HeroGradientOverlay />

<div className="flex flex-col lg:flex-row items-center justify-center px-4 sm:px-6 lg:pl-12 lg:pr-6 max-w-screen-2xl mx-auto w-full gap-8 lg:gap-12 lg:mt-20">
<div className="flex flex-col lg:flex-row items-center justify-center px-4 sm:px-6 lg:pl-12 lg:pr-6 max-w-screen-2xl mx-auto w-full gap-4 md:gap-8 lg:gap-12 lg:mt-20">
<div className="flex flex-col items-center lg:items-start text-center lg:text-left lg:flex-[1.4] relative z-20 mt-12 w-full max-w-full">
<div className="lg:mb-6 mb-0">
<AnnouncementBadge new href="/docs/arkenv/coercion">
Expand All @@ -39,8 +39,8 @@ export default function HomePage() {
Environment variable validation from editor to runtime
</div>
</h1>
<CompatibilityRails />
<div className="flex flex-col sm:flex-row justify-center lg:justify-start my-4 gap-4 sm:mb-6 mb-16 w-full sm:w-auto sm:max-w-none">
<CompatibilityRails className="order-2 md:order-1" />
<div className="flex flex-col sm:flex-row justify-center lg:justify-start my-4 gap-4 sm:mb-6 mb-6 w-full sm:w-auto sm:max-w-none order-1 md:order-2">
<QuickstartButton />
<StarUsButton />
</div>
Expand Down
10 changes: 8 additions & 2 deletions apps/www/components/page/compatibility-rails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
} from "@icons-pack/react-simple-icons";
import { Square } from "lucide-react";
import type { JSX } from "react";
import { cn } from "~/lib/utils";
import { ArkTypeIcon } from "../icons/arktype-icon";
import { JoiIcon } from "../icons/joi-icon";
import { TypiaIcon } from "../icons/typia-icon";
Expand Down Expand Up @@ -135,9 +136,14 @@ function MarqueeRow({
);
}

export function CompatibilityRails() {
export function CompatibilityRails({ className }: { className?: string }) {
return (
<div className="flex flex-col gap-3 w-full max-w-lg mx-auto lg:mx-0 py-6 pause-on-hover px-1 overflow-hidden">
<div
className={cn(
"flex flex-col gap-3 w-full max-w-lg mx-auto lg:mx-0 py-2 md:py-6 pause-on-hover px-1 overflow-hidden",
className,
)}
>
<MarqueeRow label="Works with" items={validators} />
<MarqueeRow label="Built for" items={platforms} reverse />
</div>
Expand Down
Loading