diff --git a/components/sections/EventCard/EventCard.js b/components/sections/EventCard/EventCard.js
index 1c9aea2..63c2c37 100644
--- a/components/sections/EventCard/EventCard.js
+++ b/components/sections/EventCard/EventCard.js
@@ -16,6 +16,7 @@ const EventCard = ({ data }) => {
layout="fill"
objectFit="cover"
priority="true"
+ objectPosition="center"
/>
{data?.name}
diff --git a/components/sections/Module/Module.js b/components/sections/Module/Module.js
index 028a01e..f0e5a9a 100644
--- a/components/sections/Module/Module.js
+++ b/components/sections/Module/Module.js
@@ -39,6 +39,7 @@ const Module = ({ data, setSelectedItem, ind }) => {
threshold: 1,
})
+ console.log(data);
useEffect(() => {
if (inView) setSelectedItem(ind)
}, [inView, ind, setSelectedItem])
@@ -49,10 +50,11 @@ const Module = ({ data, setSelectedItem, ind }) => {
@@ -70,16 +72,22 @@ const Module = ({ data, setSelectedItem, ind }) => {
toggle(-1)
}}
>
-
+
{data?.events?.map((event, index) => {
return (
-
-
-
-
-
+
+
+
+
+
)
})}
diff --git a/components/sections/Module/Module.module.scss b/components/sections/Module/Module.module.scss
index f49c33b..04ad352 100644
--- a/components/sections/Module/Module.module.scss
+++ b/components/sections/Module/Module.module.scss
@@ -36,7 +36,7 @@
width: 3.35rem;
height: 3.8rem;
border-radius: 20px;
-
+ position: relative;
-webkit-clip-path: polygon(
50% 0%,
100% 25%,
@@ -53,7 +53,7 @@
0% 75%,
0% 25%
);
- background-color: black;
+ background-color: white;
}
}
}
diff --git a/components/sections/Modules/Modules.js b/components/sections/Modules/Modules.js
index 667026d..23eb003 100644
--- a/components/sections/Modules/Modules.js
+++ b/components/sections/Modules/Modules.js
@@ -32,7 +32,7 @@ const Modules = ({ setSelectedItem, setActive, active, modules }) => {
Modules
-
+
{modules.length === 0 && (
diff --git a/package-lock.json b/package-lock.json
index c16cac6..9da588a 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -744,16 +744,16 @@
"glob": "7.1.7"
}
},
- "node_modules/@next/swc-darwin-x64": {
+ "node_modules/@next/swc-win32-x64-msvc": {
"version": "12.2.4",
- "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-12.2.4.tgz",
- "integrity": "sha512-IUlFMqeLjdIzDorrGC2Dt+2Ae3DbKQbRzCzmDq4/CP1+jJGeDXo/2AHnlE+WYnwQAC4KtAz6pbVnd3KstZWsVA==",
+ "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.2.4.tgz",
+ "integrity": "sha512-5Pl1tdMJWLy4rvzU1ecx0nHWgDPqoYuvYoXE/5X0Clu9si/yOuBIj573F2kOTY7mu0LX2wgCJVSnyK0abHBxIw==",
"cpu": [
"x64"
],
"optional": true,
"os": [
- "darwin"
+ "win32"
],
"engines": {
"node": ">= 10"
@@ -2595,19 +2595,6 @@
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
"integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw=="
},
- "node_modules/fsevents": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
- "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
- "hasInstallScript": true,
- "optional": true,
- "os": [
- "darwin"
- ],
- "engines": {
- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"
- }
- },
"node_modules/function-bind": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
@@ -6074,6 +6061,21 @@
"node": ">= 10"
}
},
+ "node_modules/@next/swc-darwin-x64": {
+ "version": "12.2.4",
+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-12.2.4.tgz",
+ "integrity": "sha512-IUlFMqeLjdIzDorrGC2Dt+2Ae3DbKQbRzCzmDq4/CP1+jJGeDXo/2AHnlE+WYnwQAC4KtAz6pbVnd3KstZWsVA==",
+ "cpu": [
+ "x64"
+ ],
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ }
+ },
"node_modules/@next/swc-freebsd-x64": {
"version": "12.2.4",
"resolved": "https://registry.npmjs.org/@next/swc-freebsd-x64/-/swc-freebsd-x64-12.2.4.tgz",
@@ -6193,21 +6195,6 @@
"engines": {
"node": ">= 10"
}
- },
- "node_modules/@next/swc-win32-x64-msvc": {
- "version": "12.2.4",
- "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.2.4.tgz",
- "integrity": "sha512-5Pl1tdMJWLy4rvzU1ecx0nHWgDPqoYuvYoXE/5X0Clu9si/yOuBIj573F2kOTY7mu0LX2wgCJVSnyK0abHBxIw==",
- "cpu": [
- "x64"
- ],
- "optional": true,
- "os": [
- "win32"
- ],
- "engines": {
- "node": ">= 10"
- }
}
},
"dependencies": {
@@ -6788,10 +6775,10 @@
"glob": "7.1.7"
}
},
- "@next/swc-darwin-x64": {
+ "@next/swc-win32-x64-msvc": {
"version": "12.2.4",
- "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-12.2.4.tgz",
- "integrity": "sha512-IUlFMqeLjdIzDorrGC2Dt+2Ae3DbKQbRzCzmDq4/CP1+jJGeDXo/2AHnlE+WYnwQAC4KtAz6pbVnd3KstZWsVA==",
+ "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.2.4.tgz",
+ "integrity": "sha512-5Pl1tdMJWLy4rvzU1ecx0nHWgDPqoYuvYoXE/5X0Clu9si/yOuBIj573F2kOTY7mu0LX2wgCJVSnyK0abHBxIw==",
"optional": true
},
"@nodelib/fs.scandir": {
@@ -8164,12 +8151,6 @@
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
"integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw=="
},
- "fsevents": {
- "version": "2.3.2",
- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz",
- "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==",
- "optional": true
- },
"function-bind": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",
@@ -10479,6 +10460,12 @@
"integrity": "sha512-DcUO6MGBL9E3jj5o86MUnTOy4WawIJJhyCcFYO4f51sbl7+uPIYIx40eo98A6NwJEXazCqq1hLeqOaNTAIvDiQ==",
"optional": true
},
+ "@next/swc-darwin-x64": {
+ "version": "12.2.4",
+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-12.2.4.tgz",
+ "integrity": "sha512-IUlFMqeLjdIzDorrGC2Dt+2Ae3DbKQbRzCzmDq4/CP1+jJGeDXo/2AHnlE+WYnwQAC4KtAz6pbVnd3KstZWsVA==",
+ "optional": true
+ },
"@next/swc-freebsd-x64": {
"version": "12.2.4",
"resolved": "https://registry.npmjs.org/@next/swc-freebsd-x64/-/swc-freebsd-x64-12.2.4.tgz",
@@ -10526,12 +10513,6 @@
"resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-12.2.4.tgz",
"integrity": "sha512-hEyRieZKH9iw4AzvXaQ+Fyb98k0G/o9QcRGxA1/O/O/elf1+Qvuwb15phT8GbVtIeNziy66XTPOhKKfdr8KyUg==",
"optional": true
- },
- "@next/swc-win32-x64-msvc": {
- "version": "12.2.4",
- "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-12.2.4.tgz",
- "integrity": "sha512-5Pl1tdMJWLy4rvzU1ecx0nHWgDPqoYuvYoXE/5X0Clu9si/yOuBIj573F2kOTY7mu0LX2wgCJVSnyK0abHBxIw==",
- "optional": true
}
}
}