diff --git a/web/studio/src/app/courses/[id]/announcements/page.tsx b/web/studio/src/app/courses/[id]/announcements/page.tsx index c10cf91..b96e959 100644 --- a/web/studio/src/app/courses/[id]/announcements/page.tsx +++ b/web/studio/src/app/courses/[id]/announcements/page.tsx @@ -75,15 +75,15 @@ export default function AnnouncementsPage() { Comunicados del Curso {/* Search Bar */} -
+
- + setSearchTerm(e.target.value)} - className="w-full bg-slate-100 dark:bg-black/20 border border-slate-200 dark:border-white/10 rounded-xl py-2 pl-10 pr-4 text-sm focus:outline-none focus:border-orange-500/50 transition-all text-slate-900 dark:text-white placeholder-slate-400 dark:placeholder-gray-500" + className="w-full bg-slate-50 dark:bg-black/20 border border-slate-200 dark:border-white/10 rounded-2xl py-3.5 pl-11 pr-4 text-sm focus:outline-none focus:ring-2 focus:ring-orange-500/50 transition-all text-slate-900 dark:text-white placeholder-slate-400 dark:placeholder-gray-500 font-bold shadow-inner" />
@@ -95,12 +95,12 @@ export default function AnnouncementsPage() {

Loading announcements...

) : filteredAnnouncements.length > 0 ? ( -
+
{filteredAnnouncements.map((a) => ( -
-
-
-
+
+
+
+
{a.author_avatar ? ( {a.author_name} ) : ( @@ -108,8 +108,8 @@ export default function AnnouncementsPage() { )}
-

{a.author_name}

-
+

{a.author_name}

+
{formatDistanceToNow(new Date(a.created_at), { addSuffix: true, locale: es })} {a.cohort_ids && a.cohort_ids.length > 0 && ( <> @@ -133,12 +133,12 @@ export default function AnnouncementsPage() {
-

{a.title}

-

{a.content}

+

{a.title}

+

{a.content}

{/* Display Target Cohort Names if segmented */} {a.cohort_ids && a.cohort_ids.length > 0 && ( -
+
{a.cohort_ids.map(cid => { const cohort = cohorts.find(c => c.id === cid); return ( @@ -153,10 +153,12 @@ export default function AnnouncementsPage() { ))}
) : ( -
- -

No announcements found

-

Start by creating a new announcement for your students.

+
+
+ +
+

No announcements yet

+

Start communicating with your student body today.

)}
@@ -212,53 +214,55 @@ function NewAnnouncementModal({ courseId, cohorts, onClose, onSuccess }: { cours }; return ( -
-
-
-

- - Create New Announcement -

-
-
-
- + +
+ setTitle(e.target.value)} - className="w-full bg-slate-50 dark:bg-white/5 border border-slate-200 dark:border-white/10 rounded-xl px-4 py-3 focus:outline-none focus:border-orange-500/50 text-slate-900 dark:text-white placeholder-slate-400 dark:placeholder-gray-500" - placeholder="Announcement title" + className="w-full bg-slate-50 dark:bg-black/20 border border-slate-200 dark:border-white/10 rounded-2xl px-5 py-4 focus:outline-none focus:ring-2 focus:ring-orange-500/50 text-slate-900 dark:text-white placeholder-slate-400 dark:placeholder-gray-500 font-bold shadow-inner" + placeholder="What's this announcement about?" />
-
- +
+