Skip to content

Commit

Permalink
UI: Fix banner preview
Browse files Browse the repository at this point in the history
  • Loading branch information
fuma-nama committed Jan 13, 2025
1 parent 5b76a26 commit 26d9ccb
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-hounds-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'fumadocs-ui': patch
---

Fix banner preview
18 changes: 12 additions & 6 deletions apps/docs/app/(home)/showcase/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import OpenPanel from '@/public/showcases/openpanel.png';
import Supastarter from '@/public/showcases/supastarter.png';
import BetterAuth from '@/public/showcases/better-auth.png';
import LaunchFast from '@/public/showcases/launchfast.png';
import ArkType from '@/public/showcases/arktype.png';

export const metadata = createMetadata({
title: 'Showcase',
Expand Down Expand Up @@ -54,9 +55,9 @@ export default function Showcase(): React.ReactElement {
url: 'https://million.dev',
},
{
image: Yeecord,
name: 'Yeecord Docs',
url: 'https://yeecord.com',
image: BetterAuth,
name: 'Better Auth',
url: 'https://better-auth.com',
},
{ image: Nuqs, name: 'nuqs', url: 'https://nuqs.47ng.com' },
{
Expand All @@ -70,9 +71,9 @@ export default function Showcase(): React.ReactElement {
url: 'https://docs.hiro.so/stacks',
},
{
image: BetterAuth,
name: 'Better Auth',
url: 'https://better-auth.com',
image: ArkType,
name: 'Arktype',
url: 'https://arktype.io',
},
{
image: OpenPanel,
Expand All @@ -89,6 +90,11 @@ export default function Showcase(): React.ReactElement {
name: 'Sunar',
url: 'https://sunar.js.org',
},
{
image: Yeecord,
name: 'Yeecord Docs',
url: 'https://yeecord.com',
},
{
image: Supastarter,
name: 'SupaStarter',
Expand Down
Binary file added apps/docs/public/showcases/arktype.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/docs/public/showcases/better-auth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion packages/ui/src/components/banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,14 @@ export function Banner({
id={id}
{...props}
className={cn(
'sticky top-0 z-40 flex h-[var(--fd-banner-height)] flex-row items-center justify-center bg-fd-secondary px-4 text-center text-sm font-medium',
'sticky top-0 z-40 flex flex-row items-center justify-center bg-fd-secondary px-4 text-center text-sm font-medium',
variant === 'rainbow' && 'bg-fd-background',
!open && 'hidden',
props.className,
)}
style={{
height,
}}
>
{changeLayout && open ? (
<style>
Expand Down

0 comments on commit 26d9ccb

Please sign in to comment.