aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/FormPage.tsx
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2021-01-21 20:13:51 +0200
committerGravatar ks129 <[email protected]>2021-01-21 20:13:51 +0200
commit8d3469e69d1030b5d83108c6e967bffbb9e1d9a9 (patch)
tree4d7454671f805f07d6c6861318311dac5970196a /src/pages/FormPage.tsx
parentImplement dynamic showing of form submitted text (diff)
Use relative units
Diffstat (limited to 'src/pages/FormPage.tsx')
-rw-r--r--src/pages/FormPage.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pages/FormPage.tsx b/src/pages/FormPage.tsx
index 72b073f..21303ab 100644
--- a/src/pages/FormPage.tsx
+++ b/src/pages/FormPage.tsx
@@ -107,11 +107,12 @@ function FormPage(): JSX.Element {
useEffect(() => {
getForm(id).then(form => {
setForm(form);
+ setSent(true);
});
}, []);
if (form && sent) {
- const thanksStyle = css`font-family: "Uni Sans", "Hind", "Arial", sans-serif; margin-top: 250px;`;
+ const thanksStyle = css`font-family: "Uni Sans", "Hind", "Arial", sans-serif; margin-top: 15.5rem;`;
const divStyle = css`width: 80%;`;
return (
<div>