From 449a56d91e7208b057a0a5165fbbc2bfadd33ba6 Mon Sep 17 00:00:00 2001 From: ks129 <45097959+ks129@users.noreply.github.com> Date: Thu, 21 Jan 2021 14:34:53 +0200 Subject: Implement dynamic showing of form submitted text --- src/commonStyles.tsx | 2 +- src/pages/FormPage.tsx | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/commonStyles.tsx b/src/commonStyles.tsx index 3ff2a2f..cbfc40a 100644 --- a/src/commonStyles.tsx +++ b/src/commonStyles.tsx @@ -66,7 +66,6 @@ const containerStyles = css` text-align: center; font-size: 1.5rem; - white-space: nowrap; > div { display: inline-block; @@ -109,6 +108,7 @@ const returnStyles = css` color: white; text-decoration: none; + white-space: nowrap; background-color: ${colors.greyple}; transition: background-color 300ms; diff --git a/src/pages/FormPage.tsx b/src/pages/FormPage.tsx index cf6947b..72b073f 100644 --- a/src/pages/FormPage.tsx +++ b/src/pages/FormPage.tsx @@ -29,6 +29,7 @@ interface NavigationProps { class Navigation extends React.Component { submitStyles = css` text-align: right; + white-space: nowrap; button { padding: 0.5rem 4rem; @@ -110,12 +111,13 @@ function FormPage(): JSX.Element { }, []); if (form && sent) { - const thanksStyle = css`font-family: "Uni Sans", "Hind", "Arial", sans-serif;`; + const thanksStyle = css`font-family: "Uni Sans", "Hind", "Arial", sans-serif; margin-top: 250px;`; + const divStyle = css`width: 80%;`; return (
-
-

Thanks for your response!

+
+

{form.submitted_text ?? "Thanks for your response!"}

Return Home
-- cgit v1.2.3