-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#12] Rebase fix layout default conflict
- Loading branch information
1 parent
a2d1529
commit 4ba512d
Showing
8 changed files
with
119 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
.skeleton-loader { | ||
background: rgb(64, 64, 64); | ||
background: linear-gradient(90deg, rgba(64, 64, 64, 1) 40%, rgba(95, 95, 95, 1) 50%, rgba(64, 64, 64, 1) 60%); | ||
background-size: 500% 100%; | ||
border-radius: 12px; | ||
animation: pulse 1.5s infinite; | ||
} | ||
@keyframes pulse { | ||
0% { | ||
background-position: right; | ||
} | ||
100% { | ||
background-position: left; | ||
} | ||
} | ||
|
||
.date-loader { | ||
position: absolute; | ||
left: 25.56%; | ||
top: 13.5%; | ||
} | ||
.date-today-loader { | ||
position: absolute; | ||
left: 25.56%; | ||
top: 18.5%; | ||
} | ||
|
||
.survey-list-loader { | ||
position: absolute; | ||
left: 25.56%; | ||
top: 25.38%; | ||
} | ||
|
||
.survey-title-loader { | ||
position: absolute; | ||
left: 25.56%; | ||
top: 67.38%; | ||
} | ||
|
||
.survey-description-loader { | ||
position: absolute; | ||
left: 25.56%; | ||
top: 72.5%; | ||
} | ||
|
||
.survey-link-loader { | ||
position: absolute; | ||
right: 27.5%; | ||
top: 67.38%; | ||
border-radius: 50%; | ||
} | ||
|
||
.user-avatar-loader { | ||
position: absolute; | ||
right: 2.22%; | ||
top: 4%; | ||
border-radius: 50%; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
@import './survey_list'; | ||
@import './background-image'; | ||
@import './survey_title'; | ||
@import './skeleton-loader'; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React from 'react'; | ||
|
||
// import styles from './SkeletonLoader.module.css'; | ||
|
||
interface SkeletonLoaderProps { | ||
width: number | string; | ||
height: number; | ||
className?: string; | ||
} | ||
|
||
const SkeletonLoader = ({ width, height, className }: SkeletonLoaderProps) => { | ||
return ( | ||
<> | ||
<div className={`skeleton-loader ${className}`} style={{ width, height }} /> | ||
</> | ||
); | ||
}; | ||
|
||
export default SkeletonLoader; |
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,19 @@ | ||
import React from 'react'; | ||
|
||
import SkeletonLoader from 'components/SkeletonLoader'; | ||
|
||
const SurveyLoading = () => { | ||
return ( | ||
<div> | ||
<SkeletonLoader width={36} height={36} className="user-avatar-loader" /> | ||
<SkeletonLoader width={150} height={25} className="date-loader" /> | ||
<SkeletonLoader width={100} height={25} className="date-today-loader" /> | ||
<SkeletonLoader width={704} height={302} className="survey-list-loader" /> | ||
<SkeletonLoader width={318} height={25} className="survey-title-loader" /> | ||
<SkeletonLoader width={240} height={25} className="survey-description-loader" /> | ||
<SkeletonLoader width={56} height={56} className="survey-link-loader" /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default SurveyLoading; |
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