-
-
+
+
+
Transforming your body shape with Power Pulse
-
-
-
+
+
+
);
diff --git a/src/components/WelcomePart/WelcomePart.module.css b/src/components/WelcomePart/WelcomePart.styled.jsx
similarity index 70%
rename from src/components/WelcomePart/WelcomePart.module.css
rename to src/components/WelcomePart/WelcomePart.styled.jsx
index 7eb2d5c..202e5b8 100644
--- a/src/components/WelcomePart/WelcomePart.module.css
+++ b/src/components/WelcomePart/WelcomePart.styled.jsx
@@ -1,12 +1,18 @@
-@import '../../index.css';
+import styled from '@emotion/styled';
-.text_box {
+export const TextBox = styled.div`
max-width: 335px;
height: 120px;
margin-bottom: 40px;
-}
-.title {
+ @media (min-width: 768px) {
+ max-width: 598px;
+ height: 234px;
+ margin-bottom: 64px;
+ }
+`;
+
+export const Title = styled.h1`
position: relative;
color: var(--white, #efede8);
font-size: 38px;
@@ -14,9 +20,15 @@
line-height: 1.05;
letter-spacing: 0.38px;
z-index: 10;
-}
-.icon_line {
+ @media (min-width: 768px) {
+ font-size: 70px;
+ line-height: 1.11;
+ letter-spacing: 0.7px;
+ }
+`;
+
+export const IconLine = styled.svg`
position: absolute;
top: 43px;
left: -9px;
@@ -24,23 +36,11 @@
height: 35px;
z-index: -1;
stroke: var(--orange-1, #ef8964);
-}
-@media (min-width: 768px) {
- .text_box {
- max-width: 598px;
- height: 234px;
- margin-bottom: 64px;
- }
- .title {
- font-size: 70px;
- line-height: 1.11;
- letter-spacing: 0.7px;
- }
- .icon_line {
+ @media (min-width: 768px) {
top: 84px;
left: -16px;
width: 185px;
height: 67px;
}
-}
+`;
diff --git a/src/pages/SignInPage/SignInPage.jsx b/src/pages/SignInPage/SignInPage.jsx
index 8b90af9..886b293 100644
--- a/src/pages/SignInPage/SignInPage.jsx
+++ b/src/pages/SignInPage/SignInPage.jsx
@@ -1,9 +1,15 @@
import { useDispatch } from 'react-redux';
import WelcomeLayout from '../../components/WelcomeLayout/WelcomeLayout';
-import { Link } from 'react-router-dom';
-import css from './SignInPage.module.css';
import { SignInForm } from '../../components/SignInForm/SignInForm';
import { logInThunk } from '../../redux/auth/auth-operations';
+import {
+ SignInPart,
+ TextBox,
+ Title,
+ SignInText,
+ OptionText,
+ SignUpLink,
+} from './SignInPage.styled';
const SignInPage = () => {
const dispatch = useDispatch();
@@ -13,23 +19,21 @@ const SignInPage = () => {
return (
-
-
-
Sign In
-
+
+
+ Sign In
+
Welcome! Please enter your credentials to login to the platform:
-
-
+
+
-
+
Don’t have an account?
-
- Sign Up
-
+ {` Sign Up`}
-
-
+
+
);
};
diff --git a/src/pages/SignUpPage/SignUpPage.module.css b/src/pages/SignInPage/SignInPage.styled.jsx
similarity index 54%
rename from src/pages/SignUpPage/SignUpPage.module.css
rename to src/pages/SignInPage/SignInPage.styled.jsx
index e9f8ff4..c15b7f7 100644
--- a/src/pages/SignUpPage/SignUpPage.module.css
+++ b/src/pages/SignInPage/SignInPage.styled.jsx
@@ -1,54 +1,42 @@
-@import '../../index.css';
+import styled from '@emotion/styled';
+import { Link } from 'react-router-dom';
-.signup_part {
+export const SignInPart = styled.div`
+ padding-bottom: 74px;
background: linear-gradient(
330deg,
rgba(4, 4, 4, 0) 8%,
rgba(0, 0, 0, 0.8) 40%
);
-}
-.text_box {
+`;
+
+export const TextBox = styled.div`
max-width: 335px;
margin-bottom: 28px;
-}
-.signup_title {
+`;
+
+export const Title = styled.h2`
color: var(--white, #efede8);
font-size: 24px;
font-weight: 700;
line-height: 1.17;
margin-bottom: 14px;
-}
-.signup_text {
+`;
+
+export const SignInText = styled.p`
color: var(--border, #efede84d);
font-size: 14px;
line-height: 1.28;
-}
-.signin_option {
+`;
+
+export const OptionText = styled.p`
margin-top: 12px;
color: var(--secondary-text-color-1, #efede899);
font-size: 12px;
line-height: 1.5;
-}
-.signin_link {
+`;
+
+export const SignUpLink = styled(Link)`
color: var(--white, #efede8);
text-decoration-line: underline;
-}
-
-@media (min-width: 768px) {
- .signup_part {
- background: none;
- }
- .text_box {
- min-width: 496px;
- margin-bottom: 32px;
- }
- .signup_title {
- font-size: 32px;
- line-height: 1.37;
- margin-bottom: 16px;
- }
- .signup_text {
- font-size: 16px;
- line-height: 1.5;
- }
-}
+`;
diff --git a/src/pages/SignUpPage/SignUpPage.jsx b/src/pages/SignUpPage/SignUpPage.jsx
index 90f67ed..9b570b7 100644
--- a/src/pages/SignUpPage/SignUpPage.jsx
+++ b/src/pages/SignUpPage/SignUpPage.jsx
@@ -1,9 +1,15 @@
import WelcomeLayout from '../../components/WelcomeLayout/WelcomeLayout';
-import css from './SignUpPage.module.css';
import { SignUpForm } from '../../components/SignUpForm/SignUpForm';
-import { Link } from 'react-router-dom';
import { useDispatch } from 'react-redux';
import { registerThunk } from '../../redux/auth/auth-operations';
+import {
+ SignUpPart,
+ TextBox,
+ Title,
+ Text,
+ OptionText,
+ SignInLink,
+} from './SignUpPage.styled';
const SignUpPage = () => {
const dispatch = useDispatch();
@@ -13,25 +19,23 @@ const SignUpPage = () => {
return (
-
-
-
Sign Up
-
+
+
+ Sign Up
+
Thank you for your interest in our platform. To complete the
registration process, please provide us with the following
information.
-
-
+
+
-
+
Already have an account?
-
- Sign In
-
+ {` Sign In`}
-
-
+
+
);
};
diff --git a/src/pages/SignInPage/SignInPage.module.css b/src/pages/SignUpPage/SignUpPage.styled.jsx
similarity index 61%
rename from src/pages/SignInPage/SignInPage.module.css
rename to src/pages/SignUpPage/SignUpPage.styled.jsx
index 38ca028..452f835 100644
--- a/src/pages/SignInPage/SignInPage.module.css
+++ b/src/pages/SignUpPage/SignUpPage.styled.jsx
@@ -1,58 +1,61 @@
-@import '../../index.css';
+import styled from '@emotion/styled';
+import { Link } from 'react-router-dom';
-.signin_part {
- padding-bottom: 74px;
+export const SignUpPart = styled.div`
background: linear-gradient(
330deg,
rgba(4, 4, 4, 0) 8%,
rgba(0, 0, 0, 0.8) 40%
);
-}
-.text_box {
+
+ @media (min-width: 768px) {
+ background: none;
+ }
+`;
+
+export const TextBox = styled.div`
max-width: 335px;
margin-bottom: 28px;
-}
-.signin_title {
+
+ @media (min-width: 768px) {
+ min-width: 496px;
+ margin-bottom: 32px;
+ }
+`;
+
+export const Title = styled.h2`
color: var(--white, #efede8);
font-size: 24px;
font-weight: 700;
line-height: 1.17;
margin-bottom: 14px;
-}
-.signin_text {
+
+ @media (min-width: 768px) {
+ font-size: 32px;
+ line-height: 1.37;
+ margin-bottom: 16px;
+ }
+`;
+
+export const Text = styled.p`
color: var(--border, #efede84d);
font-size: 14px;
line-height: 1.28;
-}
-.signin_form {
- display: flex;
-}
-.signup_option {
+
+ @media (min-width: 768px) {
+ font-size: 16px;
+ line-height: 1.5;
+ }
+`;
+
+export const OptionText = styled.p`
margin-top: 12px;
color: var(--secondary-text-color-1, #efede899);
font-size: 12px;
line-height: 1.5;
-}
-.signup_link {
+`;
+
+export const SignInLink = styled(Link)`
color: var(--white, #efede8);
text-decoration-line: underline;
-}
-
-@media (min-width: 768px) {
- .signin_part {
- background: none;
- }
- .text_box {
- min-width: 496px;
- margin-bottom: 32px;
- }
- .signin_title {
- font-size: 32px;
- line-height: 1.37;
- margin-bottom: 16px;
- }
- .signin_text {
- font-size: 16px;
- line-height: 1.5;
- }
-}
+`;