Fix css bug

This commit is contained in:
2025-07-12 13:16:40 +02:00
parent eb97b38fef
commit 9df0f69e78
6 changed files with 16 additions and 10 deletions

View File

@ -133,6 +133,7 @@ model Image {
creationYear Int? creationYear Int?
fileSize Int? fileSize Int?
creationDate DateTime? creationDate DateTime?
isDone Boolean? @default(false)
albumId String? albumId String?
artistId String? artistId String?

View File

@ -24,7 +24,7 @@ export default function AboutPage() {
<SocialLink icon={<MailIcon className="w-5 h-5" />} href="mailto:core@fellies.email" label="Email" /> <SocialLink icon={<MailIcon className="w-5 h-5" />} href="mailto:core@fellies.email" label="Email" />
<SocialLink icon={<MessageCircleIcon className="w-5 h-5" />} href="https://signal.me/#eu/ax5Sf75Na5g6c_Cir3Q9c0zv6TnoaQCKAo3dcUo15990aLTlbIBO1qbKqoB7WPuQ" label="Signal" /> <SocialLink icon={<MessageCircleIcon className="w-5 h-5" />} href="https://signal.me/#eu/ax5Sf75Na5g6c_Cir3Q9c0zv6TnoaQCKAo3dcUo15990aLTlbIBO1qbKqoB7WPuQ" label="Signal" />
<SocialLink icon={<WavesIcon className="w-5 h-5" />} href="https://matrix.to/#/@citali:steffo.dev" label="Matrix" /> <SocialLink icon={<WavesIcon className="w-5 h-5" />} href="https://matrix.to/#/@citali:steffo.dev" label="Matrix" />
<SocialLink icon={<RadioIcon className="w-5 h-5" />} href="https://fellies.social/@Citali" label="Fediverse" /> <SocialLink icon={<RadioIcon className="w-5 h-5" />} href="https://fellies.social/@Citali" label="Fediverse" rel="me" />
</div> </div>
</section> </section>
@ -43,13 +43,13 @@ export default function AboutPage() {
); );
} }
function SocialLink({ icon, href, label }: { icon: React.ReactNode, href: string, label: string }) { function SocialLink({ icon, href, label, rel }: { icon: React.ReactNode, href: string, label: string, rel?: string }) {
return ( return (
<Link <Link
href={href} href={href}
className="flex items-center gap-2 px-3 py-2 rounded-md bg-muted/30 hover:bg-muted/50 transition text-sm" className="flex items-center gap-2 px-3 py-2 rounded-md bg-muted/30 hover:bg-muted/50 transition text-sm"
target="_blank" target="_blank"
rel="noopener noreferrer" rel={rel ? rel : 'noopener noreferrer'}
> >
{icon} {icon}
{label} {label}

View File

@ -27,14 +27,19 @@ export default async function ArtistPage({ params }: { params: { artistSlug: str
} }
return ( return (
<div className="max-w-7xl mx-auto px-4 py-12 space-y-12 flex flex-col items-center"> <div className="max-w-7xl mx-auto px-4 py-12 space-y-12">
<section className="text-center space-y-4"> <section className="text-center space-y-4">
<h1 className="text-4xl font-bold tracking-tight">Artist: {artist.nickname ? artist.nickname : artist.displayName}</h1> <h1 className="text-4xl font-bold tracking-tight">
Artist: {artist.nickname ? artist.nickname : artist.displayName}
</h1>
<p className="text-lg text-muted-foreground"> <p className="text-lg text-muted-foreground">
{artist.description ? artist.description : ""} {artist.description ?? ""}
</p> </p>
</section> </section>
<ArtistInfoBox artist={artist} />
<section className="flex justify-center">
<ArtistInfoBox artist={artist} />
</section>
<ImageList images={artist.images} /> <ImageList images={artist.images} />
</div> </div>
); );

View File

@ -25,7 +25,7 @@ export default async function CategoriesSinglePage({ params }: { params: { id: s
} }
return ( return (
<div className="max-w-7xl mx-auto px-4 py-12 space-y-12 flex flex-col items-center"> <div className="max-w-7xl mx-auto px-4 py-12 space-y-12">
<section className="text-center space-y-4"> <section className="text-center space-y-4">
<h1 className="text-4xl font-bold tracking-tight">Category: {category.name}</h1> <h1 className="text-4xl font-bold tracking-tight">Category: {category.name}</h1>
<p className="text-lg text-muted-foreground"> <p className="text-lg text-muted-foreground">

View File

@ -23,7 +23,7 @@ export default async function GalleryPage({ params }: { params: { gallerySlug: s
include: { include: {
images: { images: {
include: { colors: { include: { color: true } } }, include: { colors: { include: { color: true } } },
orderBy: [{ sortIndex: 'asc' }, { imageName: 'asc' }] orderBy: [{ sortIndex: 'asc' }, { creationDate: 'desc' }, { imageName: 'asc' }]
}, },
} }
}) })

View File

@ -25,7 +25,7 @@ export default async function TagsSinglePage({ params }: { params: { id: string
} }
return ( return (
<div className="max-w-7xl mx-auto px-4 py-12 space-y-12 flex flex-col items-center"> <div className="max-w-7xl mx-auto px-4 py-12 space-y-12">
<section className="text-center space-y-4"> <section className="text-center space-y-4">
<h1 className="text-4xl font-bold tracking-tight">Tag: {tag.name}</h1> <h1 className="text-4xl font-bold tracking-tight">Tag: {tag.name}</h1>
<p className="text-lg text-muted-foreground"> <p className="text-lg text-muted-foreground">