-
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.
Merge pull request #182 from Andres2D/skeletons-layout
Skeletons layout
- Loading branch information
Showing
16 changed files
with
326 additions
and
9 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 |
---|---|---|
@@ -1,3 +1,7 @@ | ||
.navbarSpacing { | ||
height: 80px; | ||
} | ||
|
||
.container { | ||
display: flex; | ||
padding: 1rem; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@import '../../styles/colors'; | ||
|
||
.stat { | ||
margin-bottom: 10px; | ||
|
||
|
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,96 @@ | ||
@import '../../styles/breakpoints'; | ||
@import '../../styles/colors'; | ||
|
||
.match { | ||
display: flex; | ||
justify-content: space-evenly; | ||
align-items: center; | ||
margin: 0 auto; | ||
width: 100%; | ||
|
||
.container { | ||
width: 40%; | ||
|
||
.header { | ||
margin: 0 auto; | ||
display: flex; | ||
flex-wrap: wrap; | ||
align-items: center; | ||
justify-content: space-around; | ||
height: 100px; | ||
width: 50%; | ||
|
||
.shield { | ||
border-radius: 8px; | ||
background: $skeleton; | ||
height: 80px; | ||
width: 40%; | ||
} | ||
|
||
.name { | ||
border-radius: 8px; | ||
background: $skeleton; | ||
height: 40px; | ||
width: 40%; | ||
} | ||
|
||
.stars { | ||
border-radius: 8px; | ||
background: $skeleton; | ||
height: 30px; | ||
margin-top: 10px; | ||
width: 100%; | ||
} | ||
} | ||
|
||
.field { | ||
border-radius: 8px; | ||
background: $skeleton; | ||
margin-top: 30px; | ||
width: 100%; | ||
height: 400px; | ||
} | ||
|
||
.options { | ||
border-radius: 8px; | ||
background: $skeleton; | ||
margin: 20px auto; | ||
height: 60px; | ||
width: 60%; | ||
} | ||
} | ||
} | ||
|
||
@media (max-width: $large-device) { | ||
.match { | ||
flex-direction: column; | ||
|
||
.container { | ||
width: 500px; | ||
margin-bottom: 40px; | ||
} | ||
} | ||
} | ||
|
||
@media (max-width: $medium-device) { | ||
.match { | ||
flex-direction: column; | ||
|
||
.container { | ||
width: 70%; | ||
|
||
.header { | ||
width: 100%; | ||
} | ||
|
||
.field { | ||
height: 300px; | ||
|
||
.options { | ||
height: 100px; | ||
width: 100%; | ||
} | ||
} | ||
} | ||
} | ||
} |
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,25 @@ | ||
import type { NextPage } from 'next'; | ||
import styles from './match-details-skeleton.module.scss'; | ||
|
||
const MatchDetailsSkeleton: NextPage = () => { | ||
|
||
const fieldSkeletons = Array.from({length: 2}).map((skeleton, i) => ( | ||
<div key={`${skeleton}${i}`} className={styles.container}> | ||
<div className={styles.header}> | ||
<div className={styles.shield} /> | ||
<div className={styles.name} /> | ||
<div className={styles.stars} /> | ||
</div> | ||
<div className={styles.field} /> | ||
<div className={styles.options} /> | ||
</div> | ||
)); | ||
|
||
return ( | ||
<section className={styles.match}> | ||
{fieldSkeletons} | ||
</section> | ||
); | ||
}; | ||
|
||
export default MatchDetailsSkeleton; |
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,96 @@ | ||
@import '../../styles/breakpoints'; | ||
@import '../../styles/colors'; | ||
|
||
.cardSkeleton { | ||
width: 400px; | ||
height: 500px; | ||
background-color: #D9D9D9; | ||
border-radius: 20px; | ||
|
||
.header { | ||
display: flex; | ||
width: 100%; | ||
justify-content: space-evenly; | ||
margin-top: 40px; | ||
|
||
.left { | ||
width: 95px; | ||
height: 150px; | ||
background: $skeleton; | ||
border-radius: 8px; | ||
} | ||
|
||
.right { | ||
width: 130px; | ||
height: 130px; | ||
border-radius: 50%; | ||
background: $skeleton; | ||
} | ||
} | ||
|
||
.body { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
|
||
.top { | ||
width: 70%; | ||
height: 60px; | ||
background: $skeleton; | ||
margin-top: 40px; | ||
border-radius: 8px; | ||
} | ||
|
||
.bottom { | ||
display: flex; | ||
width: 70%; | ||
align-items: center; | ||
justify-content: space-between; | ||
|
||
.barr { | ||
width: 48%; | ||
height: 180px; | ||
border-radius: 8px; | ||
background: $skeleton; | ||
margin-top: 10px; | ||
} | ||
} | ||
} | ||
} | ||
|
||
@media (max-width: $medium-small-device) { | ||
.cardSkeleton { | ||
width: 85%; | ||
} | ||
} | ||
|
||
|
||
@media (max-width: $small-device) { | ||
.cardSkeleton { | ||
height: 440px; | ||
|
||
.body { | ||
.bottom { | ||
.barr { | ||
height: 100px; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
||
@media (max-width: $extra-small-device) { | ||
.cardSkeleton { | ||
height: 580px; | ||
|
||
.header { | ||
align-items: center; | ||
flex-direction: column; | ||
|
||
.left { | ||
margin-bottom: 10px; | ||
} | ||
} | ||
} | ||
} |
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,23 @@ | ||
import type { NextPage } from 'next'; | ||
import styles from './player-card-skeleton.module.scss'; | ||
|
||
const PlayerCardSkeleton: NextPage = () => { | ||
|
||
return ( | ||
<div className={styles.cardSkeleton}> | ||
<div className={styles.header}> | ||
<div className={styles.left} /> | ||
<div className={styles.right} /> | ||
</div> | ||
<div className={styles.body}> | ||
<div className={styles.top} /> | ||
<div className={styles.bottom}> | ||
<div className={styles.barr} /> | ||
<div className={styles.barr} /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PlayerCardSkeleton; |
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,34 @@ | ||
@import '../../styles/breakpoints'; | ||
@import '../../styles/colors'; | ||
|
||
.statsSkeleton { | ||
display: flex; | ||
flex-direction: column; | ||
height: 500px; | ||
width: 400px; | ||
|
||
.label, | ||
.value { | ||
background-color: $skeleton; | ||
margin: 10px; | ||
border-radius: 5px; | ||
} | ||
|
||
.label { | ||
height: 25px; | ||
width: 30%; | ||
} | ||
|
||
.value { | ||
height: 20px; | ||
width: 90%; | ||
margin-bottom: 20px; | ||
} | ||
} | ||
|
||
@media (max-width: $medium-small-device) { | ||
.statsSkeleton { | ||
width: 85%; | ||
} | ||
} | ||
|
Oops, something went wrong.
1dc5262
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
cotejoapp – ./
cotejoapp-git-main-andres2d.vercel.app
cotejoapp.vercel.app
cotejoapp-andres2d.vercel.app