Skip to content

Commit

Permalink
refactor: row padded top
Browse files Browse the repository at this point in the history
  • Loading branch information
nzambello committed Aug 19, 2021
1 parent 0783f63 commit 940a3ec
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions src/components/FormView.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
.block.form .ui.form .ui.message {
display: flex;
width: 80%;
margin: 3rem auto 0;
display: flex;
width: 80%;
margin: 3rem auto 0;
}

.block.form .ui.form .row.row-padded-top {
padding-top: 3rem;
}
6 changes: 3 additions & 3 deletions src/components/FormView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ const FormView = ({
})}

{process.env.RAZZLE_RECAPTCHA_KEY && (
<Grid.Row centered style={{ paddingTop: '3rem' }}>
<Grid.Row centered className="row-padded-top">
<Grid.Column textAlign="center">
<GoogleReCaptcha onVerify={onVerifyCaptcha} />
</Grid.Column>
</Grid.Row>
)}

{process.env.RAZZLE_HCAPTCHA_KEY && (
<Grid.Row centered style={{ paddingTop: '3rem' }}>
<Grid.Row centered className="row-padded-top">
<Grid.Column textAlign="center">
<HCaptcha
sitekey={process.env.RAZZLE_HCAPTCHA_KEY}
Expand All @@ -179,7 +179,7 @@ const FormView = ({
</Message>
)}

<Grid.Row centered style={{ paddingTop: '3rem' }}>
<Grid.Row centered className="row-padded-top">
<Grid.Column textAlign="center">
<Button
primary
Expand Down

0 comments on commit 940a3ec

Please sign in to comment.