generated from 202306-NEA-DZ-FEW/capstone-template
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #110 from 202306-NEA-DZ-FEW/109-skeleton-ui-and-fi…
…nal-touches feat(project): add skeleton UI
- Loading branch information
Showing
39 changed files
with
500 additions
and
95 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
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 @@ | ||
function AddItemFormPlaceholder() { | ||
return ( | ||
<div className='md:max-w-lg flex flex-col items-center gap-4 mx-auto'> | ||
<div className='w-[80%] h-[30px] rounded-full bg-gray-300 animate-pulse mb-6' /> | ||
<div className='w-[100%] h-[50px] rounded-full bg-gray-300 animate-pulse' /> | ||
<div className='w-[100%] h-[50px] rounded-full bg-gray-300 animate-pulse' /> | ||
<div className='w-[100%] h-[50px] rounded-full bg-gray-300 animate-pulse' /> | ||
<div className='w-[100%] h-[120px] rounded-md bg-gray-300 animate-pulse' /> | ||
|
||
<div className='w-full flex flex-col md:flex-row gap-4'> | ||
<div className='w-[100%] h-[40px] rounded-md bg-gray-300 animate-pulse' /> | ||
<div className='w-[100%] h-[40px] rounded-md bg-gray-300 animate-pulse' /> | ||
<div className='w-[100%] h-[40px] rounded-md bg-gray-300 animate-pulse' /> | ||
</div> | ||
<div className='w-full flex flex-col md:flex-row gap-4'> | ||
<div className='w-[100%] h-[50px] rounded-md bg-gray-300 animate-pulse' /> | ||
<div className='w-[100%] h-[50px] rounded-md bg-gray-300 animate-pulse' /> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default AddItemFormPlaceholder; |
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 @@ | ||
function CarouselPlaceholder() { | ||
return ( | ||
<div className='w-full h-full flex items-center justify-center'> | ||
<div className='w-[95%] p-8 flex flex-col lg:flex-row justify-between h-[90%] bg-gray-300 animate-pulse mx-auto rounded-2xl'> | ||
<div className='lg:w-[40%] w-full mt-20'> | ||
<div className='w-[80%] h-[50px] bg-base-100 animate-pulse rounded-full mt-20'></div> | ||
<div className='w-[100px] h-[40px] bg-base-100 animate-pulse rounded-full mt-4'></div> | ||
</div> | ||
<div className='flex gap-4 mt-auto lg:w-[60%] w-full items-center justify-center'> | ||
<div className='lg:w-[50%] lg:h-[320px] w-[50px] h-[50px] bg-base-100 animate-pulse rounded-xl mt-4'></div> | ||
<div className='lg:w-[50%] lg:h-[320px] w-[50px] h-[50px] bg-base-100 animate-pulse rounded-xl mt-4'></div> | ||
<div className='lg:w-[50%] lg:h-[320px] w-[50px] h-[50px] bg-base-100 animate-pulse rounded-xl mt-4'></div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default CarouselPlaceholder; |
16 changes: 16 additions & 0 deletions
16
src/components/ItemDetailsCard/ItemDetailsCardPlaceholder.jsx
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,16 @@ | ||
function ItemDetailsCardPlaceholder() { | ||
return ( | ||
<div className='lg:w-[850px] flex w-[100%] mx-auto h-[400px] lg:rounded-2xl animate-pulse'> | ||
<div className='w-[40%] lg:block hidden h-full bg-gray-300 animate-pulse lg:rounded-2xl'></div> | ||
<div className='w-[60%] p-4 lg:flex lg:ml-4 hidden h-full lg:rounded-2xl flex-col gap-4'> | ||
<div className='w-[50%] mt-4 h-[20px] rounded-full bg-gray-300 animate-pulse'></div> | ||
<div className='w-[60%] mt-4 h-[15px] rounded-full bg-gray-300 animate-pulse'></div> | ||
<div className='w-[60%] mt-10 h-[10px] rounded-full bg-gray-300 animate-pulse'></div> | ||
<div className='w-[60%] mt-4 h-[10px] rounded-full bg-gray-300 animate-pulse'></div> | ||
<div className='w-[60%] mt-4 h-[10px] rounded-full bg-gray-300 animate-pulse'></div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default ItemDetailsCardPlaceholder; |
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,18 @@ | ||
function ItemsPlaceholder() { | ||
return ( | ||
<div className='flex flex-col lg:flex-row py-24 px-8 gap-8 items-start min-h-screen'> | ||
<div className='lg:w-[30%] h-[350px] w-full rounded-xl bg-gray-300 animate-pulse'></div> | ||
<div className='flex flex-col gap-8 flex-1 w-full'> | ||
<div className='rounded-xl h-[80px] w-[full] bg-gray-300 animate-pulse'></div> | ||
<div className='rounded-xl w-[full] flex flex-wrap p-4 gap-4'> | ||
<div className='w-[200px] h-[250px] rounded-xl bg-gray-300 animate-pulse'></div> | ||
<div className='w-[200px] h-[250px] rounded-xl bg-gray-300 animate-pulse'></div> | ||
<div className='w-[200px] h-[250px] rounded-xl bg-gray-300 animate-pulse'></div> | ||
<div className='w-[200px] h-[250px] rounded-xl bg-gray-300 animate-pulse'></div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default ItemsPlaceholder; |
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,11 @@ | ||
function ItemsCarouselPlaceholder() { | ||
return ( | ||
<div className='flex gap-6'> | ||
<div className='w-[200px] h-[250px] rounded-xl bg-gray-300 animate-pulse'></div> | ||
<div className='w-[200px] h-[250px] rounded-xl bg-gray-300 animate-pulse'></div> | ||
<div className='w-[200px] h-[250px] rounded-xl bg-gray-300 animate-pulse'></div> | ||
</div> | ||
); | ||
} | ||
|
||
export default ItemsCarouselPlaceholder; |
22 changes: 22 additions & 0 deletions
22
src/components/LandingPage/BlogsSection/BlogsSectionPlaceholder.jsx
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,22 @@ | ||
function BlogsSectionPlaceholder() { | ||
return ( | ||
<div className='flex max-w-6xl flex-col flex-wrap gap-8 justify-center items-center mx-auto w-full min-h-screen p-8'> | ||
<div className='flex justify-between w-full'> | ||
<div className='w-[300px] h-[35px] rounded-full bg-gray-300 animate-pulse mb-8'></div> | ||
<div className='w-[120px] h-[40px] rounded-full bg-gray-300 animate-pulse mb-8'></div> | ||
</div> | ||
<div className='w-full flex flex-wrap justify-center items-center gap-6 text-center'> | ||
<div className='flex-1 min-w-full flex-grow-0 h-80 bg-gray-300 animate-pulse rounded-2xl'></div> | ||
|
||
{[2, 3].map((i) => ( | ||
<div | ||
key={i} | ||
className='flex-1 min-w-[300px] h-80 bg-gray-300 animate-pulse rounded-2xl' | ||
></div> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default BlogsSectionPlaceholder; |
2 changes: 1 addition & 1 deletion
2
src/components/LandingPage/BlogsSection/__test__/BlogsSection.test.js
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
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
src/components/LandingPage/CausesSection/CausesSectionPlaceholder.jsx
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,17 @@ | ||
function CausesSectionPlaceholder() { | ||
return ( | ||
<div className='flex flex-col flex-wrap gap-8 justify-center items-center bg-base-100 w-full min-h-screen p-8'> | ||
<div className='w-[300px] h-[30px] rounded-full bg-gray-300 animate-pulse mb-8'></div> | ||
<div className='w-full flex flex-wrap justify-center items-center gap-6 text-center'> | ||
{[1, 2, 3].map((i) => ( | ||
<div | ||
key={i} | ||
className='flex-1 min-w-[300px] h-96 flex-grow bg-gray-300 animate-pulse rounded-2xl' | ||
></div> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default CausesSectionPlaceholder; |
17 changes: 17 additions & 0 deletions
17
src/components/LandingPage/HeroSection/HeroSectionPlaceholder.jsx
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,17 @@ | ||
function HeroSectionPlaceholder() { | ||
return ( | ||
<div className='h-screen w-full items-center gap-2 p-10 flex'> | ||
<div className='w-[40%] flex flex-col gap-4'> | ||
<div className='bg-gray-300 animate-pulse w-[80%] h-[40px] rounded-full'></div> | ||
<div className='bg-gray-300 animate-pulse w-[60%] h-[40px] rounded-full'></div> | ||
<div className='bg-gray-300 animate-pulse w-[90%] h-[10px] rounded-full'></div> | ||
<div className='bg-gray-300 animate-pulse w-[80%] h-[10px] rounded-full'></div> | ||
<div className='bg-gray-300 animate-pulse w-[60%] h-[10px] rounded-full'></div> | ||
<div className='bg-gray-300 animate-pulse w-[150px] h-[48px] rounded-full mt-2'></div> | ||
</div> | ||
<div className='w-[60%] rounded-xl bg-gray-300 animate-pulse h-full'></div> | ||
</div> | ||
); | ||
} | ||
|
||
export default HeroSectionPlaceholder; |
29 changes: 29 additions & 0 deletions
29
src/components/LandingPage/OurPartnersSection/OurPartnersSectionPlaceholder.jsx
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,29 @@ | ||
import Container from "@/components/container"; | ||
|
||
function OurPartnersSectionPlaceholder() { | ||
const arrayOne = [1, 2, 3, 4, 5, 6]; | ||
|
||
return ( | ||
<Container className='text-center mt-24 flex flex-col items-center justify-center gap-10'> | ||
<div className='w-[300px] h-[35px] rounded-full bg-gray-300 animate-pulse mb-8'></div> | ||
<div className='flex gap-4 max-w-4xl overflow-hidden'> | ||
{arrayOne.map((i) => ( | ||
<div | ||
key={i} | ||
className='w-[180px] h-[75px] rounded-md bg-gray-300 animate-pulse' | ||
></div> | ||
))} | ||
</div> | ||
<div className='flex gap-4 max-w-4xl overflow-hidden'> | ||
{arrayOne.map((i) => ( | ||
<div | ||
key={i} | ||
className='w-[180px] h-[75px] rounded-md bg-gray-300 animate-pulse' | ||
></div> | ||
))} | ||
</div> | ||
</Container> | ||
); | ||
} | ||
|
||
export default OurPartnersSectionPlaceholder; |
17 changes: 17 additions & 0 deletions
17
src/components/LandingPage/PopularItemsSection/PopularItemsSectionPlaceholder.jsx
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,17 @@ | ||
function PopularItemsSectionPlaceholder() { | ||
return ( | ||
<div className='flex max-w-6xl flex-col flex-wrap gap-8 justify-center items-center mx-auto w-full min-h-screen p-8'> | ||
<div className='w-[300px] h-[30px] rounded-full bg-gray-300 animate-pulse mb-8'></div> | ||
<div className='w-full flex flex-wrap justify-center items-center gap-6 text-center'> | ||
{[1, 2, 3, 4].map((i) => ( | ||
<div | ||
key={i} | ||
className='flex-1 min-w-[250px] flex-grow-0 h-80 bg-gray-300 animate-pulse rounded-2xl' | ||
></div> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default PopularItemsSectionPlaceholder; |
12 changes: 12 additions & 0 deletions
12
src/components/LandingPage/StatisticsSection/StatisticsSectionPlaceholder.jsx
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 @@ | ||
function StatisticsSectionPlaceholder() { | ||
return ( | ||
<div className='h-[70vh] w-[90vw] gap-8 items-center justify-center mx-auto rounded-3xl my-10 bg-gray-300 animate-pulse flex flex-col lg:flex-row flex-wrap'> | ||
<div className='w-72 h-80 bg-base-200 rounded-3xl animate-pulse'></div> | ||
<div className='w-72 h-80 bg-base-200 rounded-3xl animate-pulse'></div> | ||
<div className='w-72 h-80 bg-base-200 rounded-3xl animate-pulse'></div> | ||
<div className='w-72 h-80 bg-base-200 rounded-3xl animate-pulse'></div> | ||
</div> | ||
); | ||
} | ||
|
||
export default StatisticsSectionPlaceholder; |
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,17 @@ | ||
function MapPlaceholder() { | ||
return ( | ||
<div className='h-screen flex gap-10 max-w-5xl mx-auto items-center'> | ||
<div className='w-[50%] flex flex-col gap-4 items-center'> | ||
<div className='w-[80%] h-[25px] rounded-full bg-gray-300 animate-pulse' /> | ||
<div className='w-[30%] h-[30px] rounded-full bg-gray-300 animate-pulse' /> | ||
<div className='w-[80%] h-[25px] rounded-full bg-gray-300 animate-pulse' /> | ||
<div className='w-[30%] h-[30px] rounded-full bg-gray-300 animate-pulse' /> | ||
<div className='w-[80%] h-[25px] rounded-full bg-gray-300 animate-pulse' /> | ||
<div className='w-[30%] h-[30px] rounded-full bg-gray-300 animate-pulse' /> | ||
</div> | ||
<div className='w-[40%] h-[450px] rounded-3xl bg-gray-300 animate-pulse' /> | ||
</div> | ||
); | ||
} | ||
|
||
export default MapPlaceholder; |
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,22 @@ | ||
function PageCoverPlaceholder() { | ||
return ( | ||
<div className='w-screen h-screen flex items-center justify-center'> | ||
<div className='w-[50%] flex flex-col gap-8'> | ||
<div className='w-[50%] h-[30px] mx-auto rounded-full bg-gray-300 animate-pulse' /> | ||
<div className='flex flex-col gap-2 items-center'> | ||
<div className='w-[70%] h-[10px] rounded-full bg-gray-300 animate-pulse' /> | ||
<div className='w-[78%] h-[10px] rounded-full bg-gray-300 animate-pulse' /> | ||
<div className='w-[68%] h-[10px] rounded-full bg-gray-300 animate-pulse' /> | ||
<div className='w-[72%] h-[10px] rounded-full bg-gray-300 animate-pulse' /> | ||
<div className='w-[75%] h-[10px] rounded-full bg-gray-300 animate-pulse' /> | ||
<div className='w-[65%] h-[10px] rounded-full bg-gray-300 animate-pulse' /> | ||
<div className='w-[72%] h-[10px] rounded-full bg-gray-300 animate-pulse' /> | ||
<div className='w-[68%] h-[10px] rounded-full bg-gray-300 animate-pulse' /> | ||
<div className='w-[20%] h-[10px] rounded-full bg-gray-300 animate-pulse' /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default PageCoverPlaceholder; |
Oops, something went wrong.