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
16 changes: 8 additions & 8 deletions src/app/(authenticated)/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,11 @@ export default function DashboardPage() {
</div>
</div>
</div>

{/* Seção de Notícias - Design Assertivo e Responsivo */}
<div className="w-full max-w-7xl mx-auto mt-6 md:mt-12 px-4 sm:px-6 lg:px-8">
{/*<div className="w-full max-w-7xl mx-auto mt-6 md:mt-12 px-4 sm:px-6 lg:px-8">
{/* Header da Seção com Design Melhorado */}
<div className="mb-8 md:mb-12 text-center lg:text-left">
{/*<div className="mb-8 md:mb-12 text-center lg:text-left">
<div className="inline-flex items-center justify-center lg:justify-start gap-x-3 mb-4">
<div className="p-2 bg-primary/10 rounded-full">
<LucideNewspaper className="w-6 h-6 md:w-8 md:h-8 text-primary"/>
Expand All @@ -183,24 +184,23 @@ export default function DashboardPage() {
</p>

{/* Linha decorativa */}
<div className="mt-6 flex justify-center lg:justify-start">
{/*<div className="mt-6 flex justify-center lg:justify-start">
<div className="w-24 h-1 bg-gradient-to-r from-primary to-primary/50 rounded-full"></div>
</div>
</div>

{/* Container de Notícias com Design Aprimorado */}
<div className="bg-card/50 backdrop-blur-sm rounded-xl md:rounded-2xl border border-border/50 shadow-lg md:shadow-xl overflow-hidden">
{/*<div className="bg-card/50 backdrop-blur-sm rounded-xl md:rounded-2xl border border-border/50 shadow-lg md:shadow-xl overflow-hidden">
{/* Padding interno responsivo */}
<div className="p-4 sm:p-6 lg:p-8">
{/*<div className="p-4 sm:p-6 lg:p-8">
<NewsDisplay/>
</div>

{/* Gradiente sutil na parte inferior */}
<div className="h-px bg-gradient-to-r from-transparent via-border to-transparent"></div>
{/*<div className="h-px bg-gradient-to-r from-transparent via-border to-transparent"></div>
</div>

{/* Espaçamento adicional para mobile */}
<div className="h-8 md:h-12"></div>
{/*<div className="h-8 md:h-12"></div>
</div>

{/* Footer com Redes Sociais */}
Expand Down
58 changes: 29 additions & 29 deletions src/components/dashboard/news-displ.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,35 +43,35 @@ export default function NewsDisplay() {
<div className="w-full md:w-80 lg:w-96 md:flex-shrink-0">
<div className="relative overflow-hidden rounded-lg md:rounded-xl bg-muted/50 md:group-hover:scale-[1.02] md:transition-transform md:duration-300">
{
// p.imageUrl ?
// <Image
// src={p.imageUrl}
// alt={p.title}
// width={800}
// height={600}
// className="object-cover w-full h-auto max-h-[80vh] md:transition-transform md:duration-500 md:group-hover:scale-105"
// style={{ aspectRatio: 'auto' }}
// />
// :
// p.author.imageUrl ?
// <div className="w-full h-full relative">
// <Image
// src={p.author.imageUrl}
// alt={p.title}
// width={800}
// height={600}
// className="object-cover w-full h-full"
// style={{ aspectRatio: 'auto' }}
// />
// <div className="absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent rounded-lg md:rounded-xl">
// <div className="absolute bottom-0 left-0 right-0 p-4">
// <p className="text-white font-semibold text-sm md:text-base line-clamp-2 drop-shadow-lg">
// {p.title}
// </p>
// </div>
// </div>
// </div>
// :
p.imageUrl ?
<Image
src={p.imageUrl}
alt={p.title}
width={800}
height={600}
className="object-cover w-full h-auto max-h-[80vh] md:transition-transform md:duration-500 md:group-hover:scale-105"
style={{ aspectRatio: 'auto' }}
/>
:
p.author.imageUrl ?
<div className="w-full h-full relative">
<Image
src={p.author.imageUrl}
alt={p.title}
width={800}
height={600}
className="object-cover w-full h-full"
style={{ aspectRatio: 'auto' }}
/>
<div className="absolute inset-0 bg-gradient-to-t from-black/60 via-transparent to-transparent rounded-lg md:rounded-xl">
<div className="absolute bottom-0 left-0 right-0 p-4">
<p className="text-white font-semibold text-sm md:text-base line-clamp-2 drop-shadow-lg">
{p.title}
</p>
</div>
</div>
</div>
:
<div className="w-full h-full flex items-center justify-center bg-gradient-to-br from-primary/20 to-primary/5">
<div className="w-20 h-20 md:w-24 md:h-24 bg-primary/10 rounded-full flex items-center justify-center border-2 border-primary/20">
<p className="text-primary font-bold text-2xl md:text-3xl">
Expand Down
Loading