Skip to content

Commit

Permalink
Merge branch 'main' into Nayan-Desai
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalCodes authored Mar 11, 2024
2 parents 3614601 + 2c532f2 commit 056da57
Show file tree
Hide file tree
Showing 27 changed files with 2,234 additions and 160 deletions.
858 changes: 838 additions & 20 deletions package-lock.json

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,26 @@
"dependencies": {
"@commitlint/cli": "^18.4.2",
"@commitlint/config-conventional": "^17.6.1",
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
"@hookform/resolvers": "^3.3.4",
"@mui/icons-material": "^5.15.11",
"@mui/material": "^5.15.11",
"@mui/styled-engine-sc": "^6.0.0-alpha.17",
"@mui/x-date-pickers": "^6.19.5",
"@mui/x-date-pickers-pro": "^6.19.5",
"@reduxjs/toolkit": "^2.1.0",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/user-event": "^14.4.3",
"aos": "^2.3.4",
"axios": "^1.4.0",
"cypress": "^13.2.0",
"dayjs": "^1.11.10",
"dotenv": "^16.3.1",
"framer-motion": "^11.0.3",
"js-cookie": "^3.0.5",
"react": "^18.2.0",
"react-calendar": "^4.8.0",
"react-dom": "^18.2.0",
"react-fast-marquee": "^1.6.4",
"react-helmet-async": "^2.0.4",
Expand All @@ -46,8 +55,10 @@
"react-scripts": "^5.0.1",
"react-select": "^5.7.5",
"react-spinners": "^0.13.7",
"react-time-picker": "^6.6.0",
"react-toastify": "^9.1.1",
"redux-persist": "^6.0.0",
"styled-components": "^6.1.8",
"swiper": "^10.3.0",
"swr": "^2.1.0",
"url": "^0.11.0",
Expand Down
34 changes: 19 additions & 15 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { LocalizationProvider } from "@mui/x-date-pickers";
import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
import React from "react";
import { Route, BrowserRouter as Router, Routes } from "react-router-dom";
import { BacktoTop } from "./components/shared";
Expand All @@ -7,21 +9,23 @@ import routesConfig from "./utils/routesConfig.jsx";

const App = () => {
return (
<div className="app">
<Router>
<Routes>
{routesConfig.map((route, index) => (
<Route
key={index}
exact
path={route?.path}
element={route?.element}
/>
))}
</Routes>
</Router>
<BacktoTop />
</div>
<LocalizationProvider dateAdapter={AdapterDayjs}>
<div className="app">
<Router>
<Routes>
{routesConfig.map((route, index) => (
<Route
key={index}
exact
path={route?.path}
element={route?.element}
/>
))}
</Routes>
</Router>
<BacktoTop />
</div>
</LocalizationProvider>
);
};

Expand Down
73 changes: 73 additions & 0 deletions src/components/private/events/card/EventsCard.jsx
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;
165 changes: 165 additions & 0 deletions src/components/private/events/card/EventsCard.scss
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;
}
}
Loading

0 comments on commit 056da57

Please sign in to comment.