fix(guide-layout) : align public and admin headers
CI / Build immutable images and deploy (push) Failing after 10m33s
CI / Build immutable images and deploy (push) Failing after 10m33s
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import Image from "next/image";
|
||||
import Link from "next/link";
|
||||
import { ArrowUpRightIcon, ChevronLeftIcon } from "lucide-react";
|
||||
import { ArrowLeftIcon, ArrowUpRightIcon } from "lucide-react";
|
||||
import type { ReactNode } from "react";
|
||||
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import {
|
||||
Card,
|
||||
CardAction,
|
||||
@@ -108,20 +109,16 @@ export function StructuredGuideShell({
|
||||
<LiveRefresh endpoint={`/api/events/page/${guide.id}`} />
|
||||
<SiteHeader editHref={`/admin/${guide.characterKey}`} guideId={guide.id} />
|
||||
<div className="sticky top-0 z-40 bg-background/95 supports-backdrop-filter:backdrop-blur">
|
||||
<div className="mx-auto flex min-h-16 w-full max-w-7xl items-center gap-3 px-4 sm:px-6">
|
||||
<Link
|
||||
href="/"
|
||||
aria-label="กลับหน้ารวม"
|
||||
className="grid size-10 place-items-center rounded-lg hover:bg-muted"
|
||||
>
|
||||
<ChevronLeftIcon />
|
||||
</Link>
|
||||
<div className="relative size-11 overflow-hidden rounded-lg border">
|
||||
<div className="mx-auto flex min-h-16 w-full max-w-7xl items-center gap-3 px-4 sm:px-6 lg:px-8">
|
||||
<Button variant="ghost" size="icon" render={<Link href="/" />} nativeButton={false} aria-label="กลับหน้ารวม">
|
||||
<ArrowLeftIcon />
|
||||
</Button>
|
||||
<div className="relative size-16 overflow-hidden rounded-lg border">
|
||||
<Image
|
||||
src={guide.coverUrl}
|
||||
alt={guide.name}
|
||||
fill
|
||||
sizes="44px"
|
||||
sizes="64px"
|
||||
className="object-cover"
|
||||
/>
|
||||
</div>
|
||||
@@ -134,10 +131,11 @@ export function StructuredGuideShell({
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<ScrollableNav
|
||||
ariaLabel={`เมนูคู่มือ ${guide.name}`}
|
||||
className="mx-auto min-h-11 w-full max-w-7xl rounded-xl border bg-card p-2"
|
||||
>
|
||||
<div className="mx-auto w-full max-w-7xl px-4 sm:px-6 lg:px-8">
|
||||
<ScrollableNav
|
||||
ariaLabel={`เมนูคู่มือ ${guide.name}`}
|
||||
className="min-h-11 w-full rounded-xl border bg-card p-2"
|
||||
>
|
||||
<Link
|
||||
href={`/${guide.slug}`}
|
||||
className={cn(
|
||||
@@ -181,7 +179,8 @@ export function StructuredGuideShell({
|
||||
{item.title}
|
||||
</Link>
|
||||
))}
|
||||
</ScrollableNav>
|
||||
</ScrollableNav>
|
||||
</div>
|
||||
</div>
|
||||
<main className="mx-auto w-full max-w-7xl p-4 sm:p-6 lg:p-10">
|
||||
{section ? (
|
||||
|
||||
Reference in New Issue
Block a user