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 } - /> + / > {info} diff --git a/client/src/components/common/InfoBox.jsx b/client/src/components/common/InfoBox.jsx new file mode 100644 index 00000000..62d9420a --- /dev/null +++ b/client/src/components/common/InfoBox.jsx @@ -0,0 +1,12 @@ +import React from "react"; +import "../../assets/styles/components/infoBox.scss"; +const InfoBox = ({ title, value, width = "narrow", color = "dark" }) => { + return ( +
+ {title} + {value} +
+ ); +}; + +export default InfoBox; diff --git a/client/src/components/common/PageTitle.jsx b/client/src/components/common/PageTitle.jsx new file mode 100644 index 00000000..3bc8069e --- /dev/null +++ b/client/src/components/common/PageTitle.jsx @@ -0,0 +1,9 @@ +import React from 'react' + +const PageTitle = ({title}) => { + return ( +

{title}

+ ) +} + +export default PageTitle \ No newline at end of file diff --git a/client/src/components/landingpage/LandingPage.jsx b/client/src/components/landingpage/LandingPage.jsx index 932415f7..0203440c 100644 --- a/client/src/components/landingpage/LandingPage.jsx +++ b/client/src/components/landingpage/LandingPage.jsx @@ -4,6 +4,8 @@ import FancyBlobs from "./FancyBlobs"; import "./LandingPage.scss"; +import PageTitle from "../common/PageTitle"; + import { FolderIcon, AcademicCapIcon, @@ -50,7 +52,8 @@ export default function LandingPage() {
-

نظام إدارة الكشافة الحديث

+ +

نقدم حلول لكل مشاكل اداريات المجموعات من تسجيل الغياب الاشتراكات المواضيع التقييم وغيرهم من الامور.