mirror of
https://github.com/Haiti-Distributed-Healthcare-System/hdhs.git
synced 2026-10-26 17:35:23 +00:00
Vertically center
This commit is contained in:
1 parent
b4c8eedeca
commit
3b22ccd0c2
2 files changed
+13
-6
No files matched your search
@@ -15,20 +15,20 @@ export default function LandingPage(): ReactElement {
|
||||
console.log("Clicked New Patient");
|
||||
};
|
||||
return (
|
||||
<>
|
||||
<div id="buttonFlex">
|
||||
<div id="landing-wrapper">
|
||||
<div className="button-flex">
|
||||
<Button onClick={patientLookup} icon="search">
|
||||
Patient Lookup
|
||||
</Button>
|
||||
<WhiteSpace />
|
||||
</div>
|
||||
<br />
|
||||
<div id="buttonFlex">
|
||||
<div className="button-flex">
|
||||
<Button icon={<UserAddOutlined />} onClick={newPatient}>
|
||||
New Patient
|
||||
</Button>
|
||||
<WhiteSpace />
|
||||
</div>
|
||||
</>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -1,8 +1,9 @@
|
||||
#buttonFlex {
|
||||
.button-flex {
|
||||
animation-name: fade-in;
|
||||
animation-duration: 2s;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin: 2em 0;
|
||||
.am-button {
|
||||
background-color: #9bd7ff;
|
||||
width: 40%;
|
||||
@@ -11,4 +12,10 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
// TODO: vertically center the component
|
||||
|
||||
#landing-wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
}
|
||||
Reference in new issue
Block a user