-
-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into Nayan-Desai
- Loading branch information
Showing
27 changed files
with
2,234 additions
and
160 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/* eslint-disable no-unused-vars */ | ||
import { CiCalendar, CiClock2, CiLocationOn } from "react-icons/ci"; | ||
import { IoShareSocialOutline } from "react-icons/io5"; | ||
import { Button } from "../../../shared"; | ||
import "./EventsCard.scss"; | ||
|
||
const EventsCard = ({ event }) => { | ||
return ( | ||
<div className="eventcard_container"> | ||
<div className="eventcard_parent"> | ||
<img | ||
src="https://earth5r.org/wp-content/uploads/2020/07/World-Environment-Day-Mumbai-India-Environmental-NGO-CSR-Earth5R-1230x767.jpg" | ||
alt="" | ||
/> | ||
|
||
<div className="eventcard_body"> | ||
<p>Heritage & Haunted places - whole night city tour</p> | ||
|
||
<div className="eventcard_datetime"> | ||
<span> | ||
<CiLocationOn | ||
style={{ | ||
opacity: "1", | ||
}} | ||
/>{" "} | ||
Kolkata Police Head Quarter Lalbazar | ||
</span> | ||
<span> | ||
<CiCalendar /> 12th Feb | ||
</span> | ||
<span> | ||
<CiClock2 /> 07:45 PM | ||
</span> | ||
</div> | ||
|
||
<div className="eventcard_datetime_mobile"> | ||
<div> | ||
<span> | ||
<CiLocationOn | ||
style={{ | ||
opacity: "1", | ||
}} | ||
/>{" "} | ||
Kolkata Police Head Quarter Lalbazar | ||
</span> | ||
</div> | ||
|
||
<div> | ||
<CiCalendar /> | ||
<span>Tues, 12th Feb at 07:45 PM</span> | ||
</div> | ||
</div> | ||
|
||
<div className="eventcard_ctadiv"> | ||
<Button>Attend</Button> | ||
<div className="eventcard_sharebutton"> | ||
<IoShareSocialOutline /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div className="eventcard_ctadiv_mobile"> | ||
<Button>Attend</Button> | ||
<div className="eventcard_sharebutton"> | ||
<IoShareSocialOutline /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default EventsCard; |
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,165 @@ | ||
.eventcard_container { | ||
width: 295px; | ||
border-radius: 10px; | ||
position: relative; | ||
height: 360px; | ||
transition: all 0.3s ease-in-out; | ||
box-shadow: 0px 4px 12px 0px rgba(0, 0, 0, 0.289); | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
|
||
&:hover { | ||
-webkit-box-shadow: 0px 0px 20px 7px rgba(226, 105, 89, 0.32); | ||
-moz-box-shadow: 0px 0px 20px 7px rgba(226, 105, 89, 0.32); | ||
box-shadow: 0px 0px 20px 7px rgba(226, 105, 89, 0.32); | ||
cursor: default; | ||
} | ||
|
||
@media screen and (max-width: 430px) { | ||
width: 100%; | ||
padding: 12px; | ||
height: fit-content; | ||
flex-direction: row; | ||
gap: 13px; | ||
flex-direction: column; | ||
} | ||
|
||
.eventcard_parent { | ||
@media screen and (max-width: 430px) { | ||
display: flex; | ||
width: 100%; | ||
flex-direction: row; | ||
gap: 10px; | ||
} | ||
|
||
img { | ||
border-radius: 10px 10px 0px 0px; | ||
object-fit: cover; | ||
max-width: 100%; | ||
height: 37%; | ||
width: 100%; | ||
|
||
@media screen and (max-width: 430px) { | ||
height: auto; | ||
width: 90px; | ||
border-radius: 6px; | ||
} | ||
} | ||
|
||
.eventcard_body { | ||
padding: 10px; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 13px; | ||
|
||
p { | ||
font-size: 17px; | ||
font-weight: 600; | ||
font-family: var(--poppins); | ||
margin: 0; | ||
display: -webkit-box; | ||
-webkit-line-clamp: 2; | ||
-webkit-box-orient: vertical; | ||
overflow: hidden; | ||
|
||
@media screen and (max-width: 430px) { | ||
font-size: 15px; | ||
word-break: break-all; | ||
} | ||
} | ||
|
||
@media screen and (max-width: 430px) { | ||
padding: 0; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.eventcard_datetime, | ||
.eventcard_datetime_mobile { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 3px; | ||
|
||
span { | ||
font-weight: 400; | ||
font-family: var(--outfit); | ||
font-size: 16px; | ||
display: flex; | ||
align-items: center; | ||
gap: 5px; | ||
|
||
&:nth-of-type(1) { | ||
display: -webkit-box; | ||
-webkit-line-clamp: 1; | ||
-webkit-box-orient: vertical; | ||
overflow: hidden; | ||
} | ||
} | ||
|
||
@media screen and (max-width: 430px) { | ||
display: none; | ||
} | ||
} | ||
|
||
.eventcard_datetime_mobile { | ||
@media screen and (max-width: 430px) { | ||
display: flex; | ||
} | ||
|
||
@media screen and (min-width: 430px) { | ||
display: none; | ||
} | ||
|
||
div { | ||
display: flex; | ||
align-items: center; | ||
gap: 5px; | ||
|
||
span { | ||
font-weight: 400; | ||
font-family: var(--outfit); | ||
font-size: 14px; | ||
} | ||
} | ||
} | ||
|
||
.eventcard_ctadiv, | ||
.eventcard_ctadiv_mobile { | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
gap: 1rem; | ||
|
||
button { | ||
width: 100%; | ||
font-size: 15px; | ||
border-radius: 4px; | ||
} | ||
|
||
.eventcard_sharebutton { | ||
width: 44px; | ||
aspect-ratio: 1/1; | ||
border-radius: 4px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
background-color: rgb(224, 223, 223); | ||
cursor: pointer; | ||
} | ||
|
||
@media screen and (max-width: 430px) { | ||
display: none; | ||
} | ||
} | ||
|
||
.eventcard_ctadiv_mobile { | ||
@media screen and (max-width: 430px) { | ||
display: flex; | ||
} | ||
|
||
@media screen and (min-width: 430px) { | ||
display: none; | ||
} | ||
} |
Oops, something went wrong.