This repository has been archived by the owner on Oct 29, 2024. It is now read-only.
forked from sudo-puritin/diy-tutorial-video
-
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.
- Loading branch information
Thinh Nguyen D
committed
Sep 24, 2024
1 parent
58f15df
commit 0696d66
Showing
16 changed files
with
346 additions
and
284 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,33 +1 @@ | ||
.categoryCardWrapper { | ||
color: #fff; | ||
text-decoration: none !important; | ||
} | ||
.categoryCard { | ||
position: relative; | ||
background-color: rgba(31, 31, 31, 0.7); | ||
background-position: top; | ||
background-repeat: no-repeat; | ||
background-size: cover; | ||
padding-top: 160%; | ||
border-radius: 20px; | ||
margin-bottom: 1rem; | ||
} | ||
|
||
.categoryCard:hover { | ||
box-shadow: rgba(225, 0, 0, 0.25) 0px 14px 28px, | ||
rgba(0, 0, 0, 0.22) 0px 10px 10px; | ||
} | ||
|
||
.categoryCardWrapper:hover { | ||
filter: brightness(150%); | ||
} | ||
|
||
.categoryCard .btnCategoryCard { | ||
position: absolute; | ||
top: 50%; | ||
left: 50%; | ||
} | ||
|
||
.categoryCardTitle { | ||
font-size: 1.2rem; | ||
} |
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,3 @@ | ||
.categoryList { | ||
padding: 16px 32px 16px 32px; | ||
} |
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,40 @@ | ||
import React from "react"; | ||
import "./collectionCard.css"; | ||
|
||
import { | ||
Box, | ||
Card, | ||
CardActionArea, | ||
CardContent, | ||
CardMedia, | ||
Typography, | ||
} from "@mui/material"; | ||
|
||
function CollectionCard() { | ||
return ( | ||
<Box> | ||
<Card> | ||
<CardActionArea> | ||
<CardMedia | ||
component="img" | ||
width="240px" | ||
image="/images/art2.png" | ||
alt="green iguana" | ||
style={{ borderRadius: "50%" }} | ||
/> | ||
<CardContent> | ||
<Typography | ||
variant="h6" | ||
component="div" | ||
style={{ height: "35px", textAlign: "center", fontWeight: 700 }} | ||
> | ||
ART | ||
</Typography> | ||
</CardContent> | ||
</CardActionArea> | ||
</Card> | ||
</Box> | ||
); | ||
} | ||
|
||
export default CollectionCard; |
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,52 @@ | ||
import React from "react"; | ||
import "./collectionList.css"; | ||
import { Swiper, SwiperSlide } from "swiper/react"; | ||
import "swiper/css"; | ||
|
||
import CollectionCard from "./CollectionCard"; | ||
|
||
import { Typography } from "@mui/material"; | ||
|
||
function collectionList() { | ||
return ( | ||
<div className="collectionList"> | ||
<Typography | ||
variant="h3" | ||
noWrap | ||
sx={{ | ||
mr: 2, | ||
mb: 2, | ||
fontFamily: "sans-serif", | ||
fontWeight: 700, | ||
fontSize: "1.4rem", | ||
color: "#3B3B3B", | ||
textDecoration: "none", | ||
}} | ||
> | ||
Collection | ||
</Typography> | ||
<Swiper grabCursor={true} spaceBetween={24} slidesPerView={5.5}> | ||
<SwiperSlide> | ||
<CollectionCard /> | ||
</SwiperSlide> | ||
<SwiperSlide> | ||
<CollectionCard /> | ||
</SwiperSlide> | ||
<SwiperSlide> | ||
<CollectionCard /> | ||
</SwiperSlide> | ||
<SwiperSlide> | ||
<CollectionCard /> | ||
</SwiperSlide> | ||
<SwiperSlide> | ||
<CollectionCard /> | ||
</SwiperSlide> | ||
<SwiperSlide> | ||
<CollectionCard /> | ||
</SwiperSlide> | ||
</Swiper> | ||
</div> | ||
); | ||
} | ||
|
||
export default collectionList; |
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
.collectionList { | ||
padding: 16px 32px 16px 32px; | ||
} |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.