Merge branch 'master' of git.keannu1.duckdns.org:keannu125/Borrowing-TrackerFrontend

This commit is contained in:
Keannu Bernasol 2023-12-14 18:14:03 +08:00
commit ff819dc0c9
5 changed files with 64 additions and 10 deletions

View file

@ -65,7 +65,7 @@ export default function Drawer() {
style={{ style={{
width: "48px", width: "48px",
height: "48px", height: "48px",
color: "white", color: "3fb860",
marginRight: "2px", marginRight: "2px",
alignSelf: "center", alignSelf: "center",
justifySelf: "center", justifySelf: "center",
@ -96,7 +96,7 @@ export default function Drawer() {
style={{ style={{
width: "48px", width: "48px",
height: "48px", height: "48px",
color: "white", color: "3fb860",
marginRight: "2px", marginRight: "2px",
alignSelf: "center", alignSelf: "center",
justifySelf: "center", justifySelf: "center",

View file

@ -18,6 +18,7 @@ export default function Header(props: props) {
backgroundColor: colors.header_color, backgroundColor: colors.header_color,
display: "flex", display: "flex",
flexDirection: "row", flexDirection: "row",
}} }}
> >
<div <div

View file

@ -5,6 +5,58 @@ import TechnicianWidgets from "../../Components/DashboardPage/TechnicianWidgets"
import TechnicianEquipmentButtons from "../../Components/DashboardPage/TechnicianEquipmentButtons"; import TechnicianEquipmentButtons from "../../Components/DashboardPage/TechnicianEquipmentButtons";
import TechnicianLogButtons from "../../Components/DashboardPage/TechnicianLogButtons"; import TechnicianLogButtons from "../../Components/DashboardPage/TechnicianLogButtons";
export default function Dashboard() { export default function Dashboard() {
<<<<<<< HEAD
const queries = useQueries({
queries: [
{
queryKey: ["equipments"],
queryFn: EquipmentsAPI,
},
{
queryKey: ["equipment_instances"],
queryFn: EquipmentInstancesAPI,
},
{
queryKey: ["user"],
queryFn: UserAPI,
},
],
});
const isLoading = queries.some((result) => result.isLoading);
const [addSKUmodalOpen, SetAddSKUModalOpen] = useState(false);
const [additemmodalOpen, SetAddItemModalOpen] = useState(false);
if (isLoading) {
return (
<div style={styles.background}>
<Header label={"Dashboard"} />
<div
style={{
...styles.flex_column,
...{
alignItems: "center",
justifyContent: "center",
paddingTop: "64px",
},
}}
>
<CircularProgress style={{ height: "128px", width: "128px" }} />
<p
style={{
...styles.text_dark,
...styles.text_L,
}}
>
Loading
</p>
</div>
</div>
);
}
=======
>>>>>>> be6e1ba229d5ab71d64626e470d43ab9169f1758
return ( return (
<div style={styles.background}> <div style={styles.background}>
<Header label={"Dashboard"} /> <Header label={"Dashboard"} />

View file

@ -63,9 +63,9 @@ export default function LandingPage() {
}} }}
> >
<p style={{ ...styles.text_dark, ...styles.text_L }}> <p style={{ ...styles.text_dark, ...styles.text_L }}>
CSM BORROWING Gwapo
<br /> <br />
SYSTEM Jophiel
</p> </p>
<div style={{ ...styles.flex_column }}> <div style={{ ...styles.flex_column }}>
<Button <Button

View file

@ -1,11 +1,11 @@
export const colors = { export const colors = {
background: "#FFFFFF", background: "#FFFFFF",
header_color: "#141762", header_color: "#b2dfab",
font_dark: "#141762", font_dark: "#2e482e",
font_light: "#FFFFFF", font_light: "#0e410d",
button_dark: "#141762", button_dark: "#92b88d",
button_light: "#FFFFFF", button_light: "#FFFFFF",
button_border: "#141762", button_border: "#b2dfab",
red: "#a44141", red: "#a44141",
orange: "#c57331", orange: "#c57331",
green: "#80b28a", green: "#80b28a",
@ -25,6 +25,7 @@ const styles: { [key: string]: React.CSSProperties } = {
text_dark: { text_dark: {
color: colors.font_dark, color: colors.font_dark,
fontWeight: "bold", fontWeight: "bold",
}, },
text_light: { text_light: {
color: colors.font_light, color: colors.font_light,