Improve UI consistency: chat purple theme, page headers, Discussions title
- Set purple (#804EEC) as default ChannelBadge background color - Update ChannelPreview active state to purple highlight (was blue) - Add "Discussions" title header to chat page - Standardize all page headers to text-2xl font-bold (tablos, tasks, files, planning) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
d126fe84dc
commit
7acb79b3de
7 changed files with 14 additions and 9 deletions
|
|
@ -17,7 +17,7 @@ export const ChannelBadge = ({
|
|||
<div className="relative">
|
||||
<div
|
||||
className={twMerge(
|
||||
"size-12 rounded-full flex items-center justify-center text-white font-semibold text-sm",
|
||||
"size-12 rounded-full flex items-center justify-center text-white font-semibold text-sm bg-[#804EEC]",
|
||||
tablo?.color && tablo.color
|
||||
)}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ export function ChannelPreview({
|
|||
<div
|
||||
className={twMerge(
|
||||
"group relative flex items-center gap-3 p-3 cursor-pointer transition-all duration-200 hover:bg-gray-50 dark:hover:bg-gray-800/50 border-b border-gray-100 dark:border-gray-800",
|
||||
isActive && "bg-blue-50 dark:bg-blue-900/20 border-blue-200 dark:border-blue-800",
|
||||
isActive && "bg-purple-50 dark:bg-purple-900/20 border-purple-200 dark:border-purple-800",
|
||||
className
|
||||
)}
|
||||
onClick={handleClick}
|
||||
|
|
@ -98,7 +98,7 @@ export function ChannelPreview({
|
|||
<h3
|
||||
className={twMerge(
|
||||
"font-medium text-gray-900 dark:text-gray-100 truncate",
|
||||
isActive && "text-blue-600 dark:text-blue-400"
|
||||
isActive && "text-[#804EEC] dark:text-purple-400"
|
||||
)}
|
||||
>
|
||||
{displayTitle}
|
||||
|
|
@ -131,7 +131,7 @@ export function ChannelPreview({
|
|||
|
||||
{/* Active indicator */}
|
||||
{isActive && (
|
||||
<div className="absolute left-0 top-0 bottom-0 w-1 bg-blue-500 dark:bg-blue-400 rounded-r-full" />
|
||||
<div className="absolute left-0 top-0 bottom-0 w-1 bg-[#804EEC] dark:bg-purple-400 rounded-r-full" />
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
|
|
@ -36,7 +36,11 @@ export function ChatPage() {
|
|||
}, [channelFromUrl]);
|
||||
|
||||
return (
|
||||
<div className="flex h-[calc(100vh-75px)] bg-gray-50 dark:bg-background">
|
||||
<div className="flex flex-col h-[calc(100vh-75px)] bg-gray-50 dark:bg-background">
|
||||
<div className="px-6 py-4 border-b border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800/40 shrink-0">
|
||||
<h1 className="text-2xl font-bold text-gray-900 dark:text-gray-100">Discussions</h1>
|
||||
</div>
|
||||
<div className="flex flex-1 overflow-hidden">
|
||||
<div
|
||||
className={`border-r border-gray-200 dark:border-gray-600/50 bg-white dark:bg-gray-700/40 transition-all duration-300 ease-in-out overflow-hidden ${
|
||||
isChannelListExpanded ? "w-80" : "w-0"
|
||||
|
|
@ -78,6 +82,7 @@ export function ChatPage() {
|
|||
</Window>
|
||||
</Channel>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -455,7 +455,7 @@ export function FilesPage() {
|
|||
<div className="py-6 px-6">
|
||||
{/* Header */}
|
||||
<div className="flex items-center justify-between pb-6">
|
||||
<h1 className="text-3xl font-semibold text-gray-900 dark:text-gray-100">{t("files", "Files")}</h1>
|
||||
<h1 className="text-2xl font-bold text-gray-900 dark:text-gray-100">{t("files", "Files")}</h1>
|
||||
<Button
|
||||
className="gap-2 bg-[#804EEC] hover:bg-[#6f3fd4] text-white"
|
||||
onClick={() => setUploadOpen(true)}
|
||||
|
|
|
|||
|
|
@ -809,7 +809,7 @@ export const PlanningPage = () => {
|
|||
<div className="py-6 px-2">
|
||||
{/* Header */}
|
||||
<div className="flex items-center justify-between mb-6 flex-wrap gap-4">
|
||||
<h1 className="text-3xl md:text-4xl font-bold text-gray-900 dark:text-gray-100">
|
||||
<h1 className="text-2xl font-bold text-gray-900 dark:text-gray-100">
|
||||
{t("planning:events", "Événements")}
|
||||
</h1>
|
||||
<button
|
||||
|
|
|
|||
|
|
@ -230,7 +230,7 @@ export function TablosPage() {
|
|||
<div className="px-4 pt-8 pb-6">
|
||||
{/* Header */}
|
||||
<div className="flex flex-col md:flex-row md:items-center md:justify-between mb-8 gap-4">
|
||||
<h1 className="text-3xl md:text-4xl font-bold text-gray-900 dark:text-gray-100">
|
||||
<h1 className="text-2xl font-bold text-gray-900 dark:text-gray-100">
|
||||
{t("tablo.projectList.title")}
|
||||
</h1>
|
||||
<button
|
||||
|
|
|
|||
|
|
@ -236,7 +236,7 @@ export function TasksPage() {
|
|||
<div className="px-4 md:px-6 pt-6 md:pt-10 pb-5">
|
||||
{/* Title row */}
|
||||
<div className="flex flex-col md:flex-row md:items-center md:justify-between gap-4 mb-4">
|
||||
<h1 className="text-2xl md:text-3xl font-bold text-gray-900 dark:text-gray-100">
|
||||
<h1 className="text-2xl font-bold text-gray-900 dark:text-gray-100">
|
||||
{t("pages:tasks.title")}
|
||||
</h1>
|
||||
<Button
|
||||
|
|
|
|||
Loading…
Reference in a new issue