Skip to content

Commit

Permalink
Refactor CSS files in src/screens/ForgotPassword (fixes PalisadoesFou…
Browse files Browse the repository at this point in the history
  • Loading branch information
devender18 committed Dec 15, 2024
1 parent f4aafd7 commit 9f5af7f
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 73 deletions.
71 changes: 0 additions & 71 deletions src/screens/ForgotPassword/ForgotPassword.module.css

This file was deleted.

4 changes: 2 additions & 2 deletions src/screens/ForgotPassword/ForgotPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { Form } from 'react-bootstrap';
import Button from 'react-bootstrap/Button';
import { useTranslation } from 'react-i18next';
import { errorHandler } from 'utils/errorHandler';
import styles from './ForgotPassword.module.css';
import styles from 'style/app.module.css';
import useLocalStorage from 'utils/useLocalstorage';

/**
Expand Down Expand Up @@ -162,7 +162,7 @@ const ForgotPassword = (): JSX.Element => {
<div className={styles.pageWrapper}>
<div className="row container-fluid d-flex justify-content-center items-center">
<div className="col-12 col-lg-4 px-0">
<div className={styles.cardBody}>
<div className={styles.cardTemplate}>
<div className={styles.keyWrapper}>
<div className={styles.themeOverlay} />
<KeyLogo className={styles.keyLogo} fill="var(--bs-primary)" />
Expand Down
72 changes: 72 additions & 0 deletions src/style/app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,50 @@ hr {
display: none;
}

.pageWrapper {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
}

.cardTemplate {
padding: 2rem;
background-color: #fff;
border-radius: 0.8rem;
border: 1px solid var(--bs-gray-200);
}

.keyWrapper {
height: 72px;
width: 72px;
transform: rotate(180deg);
position: relative;
overflow: hidden;
display: block;
display: flex;
justify-content: center;
align-items: center;
border-radius: 50%;
margin: 1rem auto;
}

.keyWrapper .themeOverlay {
position: absolute;
background-color: var(--bs-primary);
height: 100%;
width: 100%;
opacity: 0.15;
}

.keyWrapper .keyLogo {
height: 42px;
width: 42px;
-webkit-animation: zoomIn 0.3s ease-in-out;
animation: zoomIn 0.3s ease-in-out;
}

@media (min-width: 576px) {
.settingsDropdown {
display: none;
Expand Down Expand Up @@ -713,3 +757,31 @@ hr {
transform: rotate(360deg);
}
}

@-webkit-keyframes zoomIn {
0% {
opacity: 0;
-webkit-transform: scale(0.5);
transform: scale(0.5);
}

100% {
opacity: 1;
-webkit-transform: scale(1);
transform: scale(1);
}
}

@keyframes zoomIn {
0% {
opacity: 0;
-webkit-transform: scale(0.5);
transform: scale(0.5);
}

100% {
opacity: 1;
-webkit-transform: scale(1);
transform: scale(1);
}
}

0 comments on commit 9f5af7f

Please sign in to comment.