diff --git a/packages/twenty-front/public/images/placeholders/background/404_bg.png b/packages/twenty-front/public/images/placeholders/background/404_bg.png new file mode 100644 index 000000000..6e5dbe1da Binary files /dev/null and b/packages/twenty-front/public/images/placeholders/background/404_bg.png differ diff --git a/packages/twenty-front/public/images/placeholders/background/500_bg.png b/packages/twenty-front/public/images/placeholders/background/500_bg.png new file mode 100644 index 000000000..6ea7304f0 Binary files /dev/null and b/packages/twenty-front/public/images/placeholders/background/500_bg.png differ diff --git a/packages/twenty-front/public/images/placeholders/background/empty_timeline_bg.png b/packages/twenty-front/public/images/placeholders/background/empty_timeline_bg.png new file mode 100644 index 000000000..8b0df003d Binary files /dev/null and b/packages/twenty-front/public/images/placeholders/background/empty_timeline_bg.png differ diff --git a/packages/twenty-front/public/images/placeholders/background/error_index_bg.png b/packages/twenty-front/public/images/placeholders/background/error_index_bg.png new file mode 100644 index 000000000..a31089e7c Binary files /dev/null and b/packages/twenty-front/public/images/placeholders/background/error_index_bg.png differ diff --git a/packages/twenty-front/public/images/placeholders/background/no_file_bg.png b/packages/twenty-front/public/images/placeholders/background/no_file_bg.png new file mode 100644 index 000000000..84ed918da Binary files /dev/null and b/packages/twenty-front/public/images/placeholders/background/no_file_bg.png differ diff --git a/packages/twenty-front/public/images/placeholders/background/no_note_bg.png b/packages/twenty-front/public/images/placeholders/background/no_note_bg.png new file mode 100644 index 000000000..7d5583ebf Binary files /dev/null and b/packages/twenty-front/public/images/placeholders/background/no_note_bg.png differ diff --git a/packages/twenty-front/public/images/placeholders/background/no_record_bg.png b/packages/twenty-front/public/images/placeholders/background/no_record_bg.png new file mode 100644 index 000000000..06e53a6db Binary files /dev/null and b/packages/twenty-front/public/images/placeholders/background/no_record_bg.png differ diff --git a/packages/twenty-front/public/images/placeholders/background/no_task_bg.png b/packages/twenty-front/public/images/placeholders/background/no_task_bg.png new file mode 100644 index 000000000..29856ab4d Binary files /dev/null and b/packages/twenty-front/public/images/placeholders/background/no_task_bg.png differ diff --git a/packages/twenty-front/public/images/placeholders/moving-image/404.png b/packages/twenty-front/public/images/placeholders/moving-image/404.png new file mode 100644 index 000000000..05053785a Binary files /dev/null and b/packages/twenty-front/public/images/placeholders/moving-image/404.png differ diff --git a/packages/twenty-front/public/images/placeholders/moving-image/500.png b/packages/twenty-front/public/images/placeholders/moving-image/500.png new file mode 100644 index 000000000..0b0a672c1 Binary files /dev/null and b/packages/twenty-front/public/images/placeholders/moving-image/500.png differ diff --git a/packages/twenty-front/public/images/placeholders/moving-image/empty_timeline.png b/packages/twenty-front/public/images/placeholders/moving-image/empty_timeline.png new file mode 100644 index 000000000..2f9829f32 Binary files /dev/null and b/packages/twenty-front/public/images/placeholders/moving-image/empty_timeline.png differ diff --git a/packages/twenty-front/public/images/placeholders/moving-image/error_index.png b/packages/twenty-front/public/images/placeholders/moving-image/error_index.png new file mode 100644 index 000000000..acab1ccd5 Binary files /dev/null and b/packages/twenty-front/public/images/placeholders/moving-image/error_index.png differ diff --git a/packages/twenty-front/public/images/placeholders/moving-image/no_file.png b/packages/twenty-front/public/images/placeholders/moving-image/no_file.png new file mode 100644 index 000000000..6df6f1077 Binary files /dev/null and b/packages/twenty-front/public/images/placeholders/moving-image/no_file.png differ diff --git a/packages/twenty-front/public/images/placeholders/moving-image/no_note.png b/packages/twenty-front/public/images/placeholders/moving-image/no_note.png new file mode 100644 index 000000000..086eca597 Binary files /dev/null and b/packages/twenty-front/public/images/placeholders/moving-image/no_note.png differ diff --git a/packages/twenty-front/public/images/placeholders/moving-image/no_record.png b/packages/twenty-front/public/images/placeholders/moving-image/no_record.png new file mode 100644 index 000000000..ac3f644d9 Binary files /dev/null and b/packages/twenty-front/public/images/placeholders/moving-image/no_record.png differ diff --git a/packages/twenty-front/public/images/placeholders/moving-image/no_task.png b/packages/twenty-front/public/images/placeholders/moving-image/no_task.png new file mode 100644 index 000000000..374e5a917 Binary files /dev/null and b/packages/twenty-front/public/images/placeholders/moving-image/no_task.png differ diff --git a/packages/twenty-front/src/modules/activities/files/components/Attachments.tsx b/packages/twenty-front/src/modules/activities/files/components/Attachments.tsx index 7b80a3d6f..2f61f1c1e 100644 --- a/packages/twenty-front/src/modules/activities/files/components/Attachments.tsx +++ b/packages/twenty-front/src/modules/activities/files/components/Attachments.tsx @@ -9,32 +9,13 @@ import { useUploadAttachmentFile } from '@/activities/files/hooks/useUploadAttac import { ActivityTargetableObject } from '@/activities/types/ActivityTargetableEntity'; import { IconPlus } from '@/ui/display/icon'; import { Button } from '@/ui/input/button/components/Button'; - -const StyledTaskGroupEmptyContainer = styled.div` - align-items: center; - align-self: stretch; - display: flex; - flex: 1 0 0; - flex-direction: column; - gap: ${({ theme }) => theme.spacing(2)}; - justify-content: center; - height: 100%; -`; - -const StyledEmptyTaskGroupTitle = styled.div` - color: ${({ theme }) => theme.font.color.secondary}; - font-size: ${({ theme }) => theme.font.size.xxl}; - font-weight: ${({ theme }) => theme.font.weight.semiBold}; - line-height: ${({ theme }) => theme.text.lineHeight.md}; -`; - -const StyledEmptyTaskGroupSubTitle = styled.div` - color: ${({ theme }) => theme.font.color.extraLight}; - font-size: ${({ theme }) => theme.font.size.xxl}; - font-weight: ${({ theme }) => theme.font.weight.semiBold}; - line-height: ${({ theme }) => theme.text.lineHeight.md}; - margin-bottom: ${({ theme }) => theme.spacing(2)}; -`; +import AnimatedPlaceholder from '@/ui/layout/animated-placeholder/components/AnimatedPlaceholder'; +import { + StyledEmptyContainer, + StyledEmptySubTitle, + StyledEmptyTextContainer, + StyledEmptyTitle, +} from '@/ui/layout/animated-placeholder/components/EmptyPlaceholderStyled'; const StyledAttachmentsContainer = styled.div` display: flex; @@ -85,23 +66,26 @@ export const Attachments = ({ onUploadFile={onUploadFile} /> ) : ( - + + + + No Files + + There are no associated files with this record. + + - No files yet - - Upload one: - - + + + + Server’s on a coffee break + {error.message} + +