From 549a8cfa5944e14e573b5664c5f7a5df544ab5fc Mon Sep 17 00:00:00 2001
From: "[Abdelruhman Sami]" <[abdelruhamn.mohamad04@eng-stu.cu.edu.eg]>
Date: Sat, 23 Dec 2023 21:09:00 +0200
Subject: [PATCH] Page title, InfoBox is done
---
.../src/assets/styles/components/Alert.scss | 2 +-
.../src/assets/styles/components/infoBox.scss | 35 +++++++++++++++++++
client/src/assets/styles/global/global.scss | 2 +-
client/src/components/common/Alerts.jsx | 2 +-
client/src/components/common/InfoBox.jsx | 12 +++++++
client/src/components/common/PageTitle.jsx | 9 +++++
.../components/landingpage/LandingPage.jsx | 5 ++-
7 files changed, 63 insertions(+), 4 deletions(-)
create mode 100644 client/src/assets/styles/components/infoBox.scss
create mode 100644 client/src/components/common/InfoBox.jsx
create mode 100644 client/src/components/common/PageTitle.jsx
diff --git a/client/src/assets/styles/components/Alert.scss b/client/src/assets/styles/components/Alert.scss
index 156bc8a7..62c53daf 100644
--- a/client/src/assets/styles/components/Alert.scss
+++ b/client/src/assets/styles/components/Alert.scss
@@ -12,7 +12,7 @@
padding: 15px 15px;
justify-content: center;
- align-items: end;
+ align-items: end;
gap: 10px;
}
diff --git a/client/src/assets/styles/components/infoBox.scss b/client/src/assets/styles/components/infoBox.scss
new file mode 100644
index 00000000..03986681
--- /dev/null
+++ b/client/src/assets/styles/components/infoBox.scss
@@ -0,0 +1,35 @@
+.info-box {
+ height: 97px;
+ flex-shrink: 0;
+ border-radius: 12px;
+
+ display: flex;
+ flex-direction: column;
+ justify-content: space-around;
+ align-items: end;
+
+ padding-right: 2rem;
+
+ &.narrow {
+ width: 40%;
+ }
+
+ &.wide {
+ width: 90%;
+ }
+
+ &.dark {
+
+ background: var(--simnle-grid, linear-gradient(113deg, #1F2A37 6.36%, rgba(31, 42, 55, 0.00) 108.22%));
+ }
+
+ &.purple {
+ background: var(--pur-grid, linear-gradient(115deg, #B773E9 2.95%, #5B1092 95.69%));
+
+ }
+
+ &.colorfull {
+ background: linear-gradient(96deg, #650DA6 -11.62%, #650DA6 -11.61%, #DF1846 119.72%);
+ box-shadow: 4px 5px 103.7px 0px var(--Primary-800, #2B0547);
+ }
+}
\ No newline at end of file
diff --git a/client/src/assets/styles/global/global.scss b/client/src/assets/styles/global/global.scss
index d6a7ae8e..2ddba2b7 100644
--- a/client/src/assets/styles/global/global.scss
+++ b/client/src/assets/styles/global/global.scss
@@ -19,4 +19,4 @@ body {
a {
color: var(--text-color);
text-decoration: none;
-}
+}
\ No newline at end of file
diff --git a/client/src/components/common/Alerts.jsx b/client/src/components/common/Alerts.jsx
index 1d25b7d2..21657456 100644
--- a/client/src/components/common/Alerts.jsx
+++ b/client/src/components/common/Alerts.jsx
@@ -24,7 +24,7 @@ const Alert = ({ title, info, buttontext, Onclick, showRightBox, color }) => {
className={
showRightBox ? "right-box " + color : "right-box hide " + color
}
- />
+ / >
نقدم حلول لكل مشاكل اداريات المجموعات من تسجيل الغياب الاشتراكات المواضيع التقييم وغيرهم من الامور.