-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TP-1264-unify-loading-screens (#135)
* TP-1264-unify-loading-screens Add new loading screen to two forms to match new loading screen in Hosted Pages
- Loading branch information
1 parent
096ccc5
commit 6ca2d7f
Showing
8 changed files
with
74 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
src/hostedPages/layouts/HostedPageLayout/LoadActivityPlaceholder/LoadActivityPlaceholder.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import classes from './loadActivityPlaceholder.module.scss' | ||
import React, { FC } from 'react' | ||
|
||
export const LoadActivityPlaceholder: FC = (): JSX.Element => { | ||
return ( | ||
<div className={classes.loading_indicators}> | ||
<div className={classes.loading_indicator}></div> | ||
<div className={classes.loading_indicator}></div> | ||
<div className={classes.loading_indicator}></div> | ||
</div> | ||
) | ||
} |
1 change: 1 addition & 0 deletions
1
src/hostedPages/layouts/HostedPageLayout/LoadActivityPlaceholder/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { LoadActivityPlaceholder } from './LoadActivityPlaceholder' |
45 changes: 45 additions & 0 deletions
45
...ages/layouts/HostedPageLayout/LoadActivityPlaceholder/loadActivityPlaceholder.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
@use '../../../../globalStyles'; | ||
|
||
.loading_indicators { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
width: 100%; | ||
} | ||
|
||
.loading_indicator { | ||
width: 100%; | ||
height: 3.125rem; | ||
border-radius: var(--awell-border-radius-xl); | ||
margin: var(--awell-spacing-2) 0; | ||
background: linear-gradient(90deg, transparent, #EEEEEE, transparent); | ||
background-size: 200% 100%; | ||
background-position: -100% 0; | ||
animation: wave 1.2s infinite; | ||
} | ||
|
||
/* Styles for larger screens */ | ||
@media (min-width: 768px) { | ||
.loading_indicators { | ||
max-width: 570px; | ||
padding: var(--awell-spacing-8) 0; | ||
} | ||
} | ||
|
||
/* Styles for smaller screens (mobile) */ | ||
@media (max-width: 767px) { | ||
.loading_indicators { | ||
min-width: 336px; | ||
padding: var(--awell-spacing-8) var(--awell-spacing-4); | ||
} | ||
} | ||
|
||
@keyframes wave { | ||
0% { | ||
background-position: -100% 0; | ||
} | ||
100% { | ||
background-position: 100% 0; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
export { HostedPageLayout } from './HostedPageLayout' | ||
export { CloseButton } from './CloseButton' | ||
export { LoadActivityPlaceholder } from './LoadActivityPlaceholder' | ||
export { HostedPageFooter } from './HostedPageFooter' |