From 45daa2807b3bc848ce987d706ae816b6fe6bb460 Mon Sep 17 00:00:00 2001
From: Gordon Grund <80682839+ggrund-tsi@users.noreply.github.com>
Date: Mon, 5 Jul 2021 07:52:03 +0200
Subject: [PATCH] add fade animation (#107)
---
src/assets/SCSS/custom.scss | 16 +-
src/components/landing-page.component.tsx | 17 +-
.../modules/card-footer.component.tsx | 2 +
.../record-recovery-cert-data.component.tsx | 251 +++++++++---------
.../record-test-cert-data.component.tsx | 219 +++++++--------
...record-vaccination-cert-data.component.tsx | 221 +++++++--------
src/components/show-certificate.component.tsx | 154 +++++------
src/misc/useValueSet.tsx | 8 +-
src/routing.component.tsx | 8 +-
9 files changed, 462 insertions(+), 434 deletions(-)
diff --git a/src/assets/SCSS/custom.scss b/src/assets/SCSS/custom.scss
index 9cfbb9d..6e2b2f9 100644
--- a/src/assets/SCSS/custom.scss
+++ b/src/assets/SCSS/custom.scss
@@ -1,5 +1,5 @@
//Font Definitions
-@import '@fortawesome/fontawesome-free/css/solid.min.css';
+@import "@fortawesome/fontawesome-free/css/solid.min.css";
// Override default variables before the import
$body-bg: #cfcfcf;
@@ -22,8 +22,12 @@ $data-card-border-radius: 0px;
$input-border-radius: 4px;
$user-image-width: 39px;
-select, option {
- font-family: 'Font Awesome 5 Free', 'Arial';
+select,
+option {
+ font-family: "Font Awesome 5 Free", "Arial";
+}
+body {
+ overflow-y: scroll;
}
hr {
@@ -60,6 +64,10 @@ hr {
border-radius: $data-card-border-radius;
border: none;
}
+#data-body {
+ padding: 1rem;
+ padding-bottom: 0px;
+}
.data-modal {
background-color: white;
border-radius: $data-card-border-radius;
@@ -325,6 +333,8 @@ hr {
margin-left: 16px;
display: flex;
align-self: center;
+ padding-top: 2px;
+ height: 32px;
}
.bg-gray-1 {
diff --git a/src/components/landing-page.component.tsx b/src/components/landing-page.component.tsx
index b05d9af..aba99fa 100644
--- a/src/components/landing-page.component.tsx
+++ b/src/components/landing-page.component.tsx
@@ -19,7 +19,7 @@
* under the License.
*/
-import { Button, Container } from 'react-bootstrap'
+import { Button, Container, Fade } from 'react-bootstrap'
import '../i18n';
import { useTranslation } from 'react-i18next';
@@ -41,15 +41,16 @@ const LandingPage = () => {
}, [context.navigation])
return (!isInit ? :
-
+
+
+ {t('translation:welcome')}
- {t('translation:welcome')}
+
+
+
-
-
-
-
-
+
+
)
}
diff --git a/src/components/modules/card-footer.component.tsx b/src/components/modules/card-footer.component.tsx
index b053aa3..845863c 100644
--- a/src/components/modules/card-footer.component.tsx
+++ b/src/components/modules/card-footer.component.tsx
@@ -10,6 +10,8 @@ const CardFooter = (props: any) => {
return (!props ? <>> :