Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PageTitle, InfoBox is done #14

Merged
merged 1 commit into from
Dec 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/src/assets/styles/components/Alert.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

padding: 15px 15px;
justify-content: center;
align-items: end;
align-items: end;

gap: 10px;
}
Expand Down
35 changes: 35 additions & 0 deletions client/src/assets/styles/components/infoBox.scss
Original file line number Diff line number Diff line change
@@ -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);
}
}
2 changes: 1 addition & 1 deletion client/src/assets/styles/global/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ body {
a {
color: var(--text-color);
text-decoration: none;
}
}
2 changes: 1 addition & 1 deletion client/src/components/common/Alerts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Alert = ({ title, info, buttontext, Onclick, showRightBox, color }) => {
className={
showRightBox ? "right-box " + color : "right-box hide " + color
}
/>
/ >
</div>
</div>
<text className="alert-info">{info}</text>
Expand Down
12 changes: 12 additions & 0 deletions client/src/components/common/InfoBox.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from "react";
import "../../assets/styles/components/infoBox.scss";
const InfoBox = ({ title, value, width = "narrow", color = "dark" }) => {
return (
<div className={"info-box " + color + " " + width}>
<p6>{title}</p6>
<p6> {value}</p6>
</div>
);
};

export default InfoBox;
9 changes: 9 additions & 0 deletions client/src/components/common/PageTitle.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import React from 'react'

const PageTitle = ({title}) => {
return (
<h1>{title}</h1>
)
}

export default PageTitle
5 changes: 4 additions & 1 deletion client/src/components/landingpage/LandingPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import FancyBlobs from "./FancyBlobs";

import "./LandingPage.scss";

import PageTitle from "../common/PageTitle";

import {
FolderIcon,
AcademicCapIcon,
Expand Down Expand Up @@ -50,7 +52,8 @@ export default function LandingPage() {
<div className="landing_page">
<header className="hero">
<div className="container">
<h1>نظام إدارة الكشافة الحديث</h1>
<PageTitle title="نظام إدارة الكشافة الحديث" />

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