-
);
-
}
type ServiceProps = {
diff --git a/packages/webapp/src/components/registration-page/styled.ts b/packages/webapp/src/components/registration-page/styled.ts
new file mode 100644
index 00000000..86d8bb2e
--- /dev/null
+++ b/packages/webapp/src/components/registration-page/styled.ts
@@ -0,0 +1,17 @@
+import styled from 'styled-components';
+export const StyledNav = styled.div`
+.db-warn-msg {
+ margin-top: 30px;
+ width: 100%;
+}
+
+.db-warn-msg p {
+ margin: 0 auto;
+ width: 500px;
+ background-color: #e97450;
+ font-size: 15px;
+ color: white;
+ padding: 15px 30px;
+ border-radius: 10px;
+}
+`
diff --git a/packages/webapp/src/components/registration-success-page/index.tsx b/packages/webapp/src/components/registration-success-page/index.tsx
index 3efb0055..fc8da2a8 100644
--- a/packages/webapp/src/components/registration-success-page/index.tsx
+++ b/packages/webapp/src/components/registration-success-page/index.tsx
@@ -1,10 +1,11 @@
import React, { useEffect } from 'react'
import { FormattedMessage } from 'react-intl'
+import StyledDiv from './styled'
import Header, { SignInButton } from '../header'
import Footer from '../footer'
+import PageContent from './styled'
-const css = require('../../css/success.css');
const RegistrationSuccessPage = () => {
@@ -15,8 +16,7 @@ const RegistrationSuccessPage = () => {
return (
-
-
+
@@ -25,9 +25,8 @@ const RegistrationSuccessPage = () => {
+
-
-
);
diff --git a/packages/webapp/src/components/registration-success-page/styled.ts b/packages/webapp/src/components/registration-success-page/styled.ts
new file mode 100644
index 00000000..1fc7d5ad
--- /dev/null
+++ b/packages/webapp/src/components/registration-success-page/styled.ts
@@ -0,0 +1,22 @@
+import styled from 'styled-components';
+
+const PageContent = styled.div`
+max-width: 1024px;
+min-height: 400px;
+margin: auto;
+padding-top: 100px;
+grid-area: content;
+text-align: center;
+
+& p {
+ color: black;
+ font-size: 18px;
+ margin: 10px 0px 30px 0px;
+}
+
+& h1 {
+ color: #f9a826;
+ font-size: 30px;
+}`
+
+export default PageContent;
\ No newline at end of file
diff --git a/packages/webapp/src/css/login.css b/packages/webapp/src/css/login.css
deleted file mode 100644
index 117ac60f..00000000
--- a/packages/webapp/src/css/login.css
+++ /dev/null
@@ -1,39 +0,0 @@
-@import "core.css";
-.wrapper {
- max-width: 1024px;
- display: grid;
- grid-template-areas: "content" "footer";
-}
-
-.content {
- grid-area: content;
- text-align: center;
-}
-
-.content input:placeholder {
- color: grey;
-}
-
-.content label {
- font-size: 14px;
-}
-
-.content a {
- color: #f9a826;
- font-size: 15px;
-}
-
-.db-warn-msg {
- margin-top: 30px;
- width: 100%;
-}
-
-.db-warn-msg p {
- margin: 0 auto;
- width: 500px;
- background-color: #e97450;
- font-size: 15px;
- color: white;
- padding: 15px 30px;
- border-radius: 10px;
-}
\ No newline at end of file
diff --git a/packages/webapp/src/css/registration.css b/packages/webapp/src/css/registration.css
index 19730664..4531de2a 100644
--- a/packages/webapp/src/css/registration.css
+++ b/packages/webapp/src/css/registration.css
@@ -1,10 +1,3 @@
-@import "core.css";
-.wrapper {
- max-width: 1024px;
- display: grid;
- grid-template-areas: "content" "footer";
-}
-
.content {
grid-area: content;
text-align: center;
@@ -15,28 +8,4 @@ form>div {
font-size: 13px;
width: 300px;
margin: auto;
-}
-
-.content label {
- font-size: 14px;
-}
-
-.content a {
- color: #f9a826;
- font-size: 15px;
-}
-
-.db-warn-msg {
- margin-top: 30px;
- width: 100%;
-}
-
-.db-warn-msg p {
- margin: 0 auto;
- width: 500px;
- background-color: #e97450;
- font-size: 15px;
- color: white;
- padding: 15px 30px;
- border-radius: 10px;
}
\ No newline at end of file
diff --git a/packages/webapp/src/css/reset-password.css b/packages/webapp/src/css/reset-password.css
deleted file mode 100644
index 117ac60f..00000000
--- a/packages/webapp/src/css/reset-password.css
+++ /dev/null
@@ -1,39 +0,0 @@
-@import "core.css";
-.wrapper {
- max-width: 1024px;
- display: grid;
- grid-template-areas: "content" "footer";
-}
-
-.content {
- grid-area: content;
- text-align: center;
-}
-
-.content input:placeholder {
- color: grey;
-}
-
-.content label {
- font-size: 14px;
-}
-
-.content a {
- color: #f9a826;
- font-size: 15px;
-}
-
-.db-warn-msg {
- margin-top: 30px;
- width: 100%;
-}
-
-.db-warn-msg p {
- margin: 0 auto;
- width: 500px;
- background-color: #e97450;
- font-size: 15px;
- color: white;
- padding: 15px 30px;
- border-radius: 10px;
-}
\ No newline at end of file
diff --git a/packages/webapp/src/css/success.css b/packages/webapp/src/css/success.css
deleted file mode 100644
index 9c7c4ae5..00000000
--- a/packages/webapp/src/css/success.css
+++ /dev/null
@@ -1,22 +0,0 @@
-@import "core.css";
-.wrapper {
- max-width: 1024px;
- min-height: 400px;
-}
-
-.rcontent {
- padding-top: 100px;
- grid-area: content;
- text-align: center;
-}
-
-.rcontent p {
- color: black;
- font-size: 18px;
- margin: 10px 0px 30px 0px;
-}
-
-.rcontent h1 {
- color: #f9a826;
- font-size: 30px;
-}
\ No newline at end of file
diff --git a/packages/webapp/src/css/core.css b/packages/webapp/src/theme/global-style.ts
similarity index 63%
rename from packages/webapp/src/css/core.css
rename to packages/webapp/src/theme/global-style.ts
index ad2f137c..803607b8 100644
--- a/packages/webapp/src/css/core.css
+++ b/packages/webapp/src/theme/global-style.ts
@@ -1,3 +1,7 @@
+import { createGlobalStyle } from 'styled-components';
+
+const GlobalStyle = createGlobalStyle`
+
@import url('https://fonts.googleapis.com/css?family=Montserrat:100,300,400,700,900');
* {
box-sizing: border-box;
@@ -52,90 +56,6 @@ p {
color: #000000;
}
-
-/* Footer */
-
-.footer {
- height: 250px;
- margin-top: 80px;
- padding: 60px 40px 10px 50px;
- background-color: #f9a826;
- display: grid;
-}
-
-.footer a {
- font-size: 14px;
- color: white;
- word-wrap: nowrap;
-}
-
-.footer h4 {
- font-size: 14px;
- color: white;
- word-wrap: nowrap;
- font-weight: 500px;
- margin: 0px;
-}
-
-.footer>svg {
- grid-column: 1;
-}
-
-.footer div:nth-child(2) {
- grid-column: 2;
-}
-
-.footer div:nth-child(3) {
- grid-column: 3;
-}
-
-.footer {
- grid-template-columns: 200px 1fr 1fr 3fr;
-}
-
-.footer>svg {
- display: inline-block;
- visibility: visible;
-}
-
-.footer div:nth-child(4) {
- grid-column: 4;
- text-align: right;
- display: inline-block;
- visibility: visible;
-}
-
-.header-area-right1 span,
-.header-area-right2 span {
- font-size: 15px;
-}
-
-.header-area-content-span {
- grid-column-start: 2;
- grid-column-end: 4;
- text-align: right;
- font-size: 14px;
- padding: 10px;
-}
-
-@media (max-width: 500px) {
- .footer {
- grid-template-columns: 0px 1fr 1fr 5px;
- }
- .footer div:nth-child(1),
- .footer div:nth-child(4),
- .header-area-content-span {
- display: none;
- visibility: hidden;
- }
- .header {
- display: grid;
- white-space: nowrap;
- grid-template-columns: 100px 1fr 130px 130px;
- }
-}
-
-
/* Form Styles Section */
input[type=email],
@@ -179,17 +99,6 @@ input:placeholder {
color: grey;
}
-.form-error-dialog {
- margin: 10px auto;
- width: 260px;
- font-size: 15px;
- border: 2px solid #e97450;
- padding: 10px 10px;
- border-radius: 9px;
- color: white;
- background-color: #e78b72;
-}
-
/* Buttons */
@@ -248,4 +157,7 @@ input:placeholder {
background-color: white;
border: solid 1px #ffa800;
font-weight: 600;
-}
\ No newline at end of file
+}
+`;
+
+export default GlobalStyle;
\ No newline at end of file