Vertically center

This commit is contained in:
Ben Mitchinson committed 2020-04-06 17:38:28 -05:00
1 parent b4c8eedeca
commit 3b22ccd0c2
2 files changed
+13 -6

No files matched your search

+4 -4
View File
@@ -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>
);
}
+9 -2
View File
@@ -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%;
}