From 3489a102242671c4759a433788446df0a07c08bb Mon Sep 17 00:00:00 2001 From: Fefedu973 <80718477+Fefedu973@users.noreply.github.com> Date: Mon, 11 Nov 2024 13:56:04 +0100 Subject: [PATCH 1/4] documents error messages lifting --- src/components/app/Account/Account.css | 21 +++++- src/components/app/Account/Account.jsx | 96 ++++++++++++++------------ 2 files changed, 73 insertions(+), 44 deletions(-) diff --git a/src/components/app/Account/Account.css b/src/components/app/Account/Account.css index 9b74a3a..7f05bfe 100644 --- a/src/components/app/Account/Account.css +++ b/src/components/app/Account/Account.css @@ -65,11 +65,13 @@ body:has(#account) { display: flex; flex-flow: column nowrap; } + #documents.frame { display: flex; flex-flow: column nowrap; overflow: auto; } + .coming-soon { height: 100%; color: rgb(var(--text-color-alt)); @@ -82,6 +84,7 @@ body:has(#account) { border-radius: 8px; opacity: .5; } + #profile .coming-soon { margin-top: 30px; } @@ -152,7 +155,7 @@ body:has(#account) { grid-column: auto; grid-row: 3 / 4; } - + #account .frame .frame-heading { padding-block: 10px; } @@ -245,12 +248,16 @@ body:has(#account) { font-size: var(--font-size-16); font-weight: 500; } + .no-available-documents { display: flex; + flex-direction: column; justify-content: center; align-items: center; height: 100%; width: 100%; + gap: 15px; + color: rgb(var(--text-color)); } .document-container { @@ -259,4 +266,16 @@ body:has(#account) { .single-year { padding-left: 0 !important; +} + +.documents-container { + display: flex; + height: 100%; + flex-direction: column; +} + +.sleeping-logo { + width: 100px; + height: 100px; + margin: 0 auto; } \ No newline at end of file diff --git a/src/components/app/Account/Account.jsx b/src/components/app/Account/Account.jsx index 88b15f7..558b958 100644 --- a/src/components/app/Account/Account.jsx +++ b/src/components/app/Account/Account.jsx @@ -7,9 +7,10 @@ import DropDownMenu from "../../generic/UserInputs/DropDownMenu"; import { getProxiedURL } from "../../../utils/requests"; import FileComponent from "../../generic/FileComponent"; import ContentLoader from "react-content-loader"; +import CanardmanSleeping from "../../graphics/CanardmanSleeping"; +import ConfusedCanardman from "../../graphics/ConfusedCanardman"; import "./Account.css"; -import { is } from "date-fns/locale"; export default function Account({ schoolLife, fetchSchoolLife, fetchAdministrativeDocuments, sortSchoolLife, isLoggedIn, activeAccount }) { const { actualDisplayTheme, accountsListState, useUserData, useUserSettings } = useContext(AppContext) @@ -154,48 +155,53 @@ export default function Account({ schoolLife, fetchSchoolLife, fetchAdministrati ) : null } -
+