diff --git a/package-lock.json b/package-lock.json index 909c32f..aa79e97 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@emotion/styled": "^11.10.4", "@mui/icons-material": "^5.10.3", "@mui/material": "^5.10.4", - "add-to-calendar-button": "^2.1.2", + "add-to-calendar-button": "^2.5.10", "gatsby": "^4.22.1", "gatsby-plugin-image": "^2.22.0", "gatsby-plugin-sharp": "^4.23.0", @@ -4752,15 +4752,15 @@ } }, "node_modules/add-to-calendar-button": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/add-to-calendar-button/-/add-to-calendar-button-2.1.2.tgz", - "integrity": "sha512-0bOB2YTJX6/ZGhHLtVZTfJG42TLJ7NFg0dTUYsuBQkHwvT+kPPuI5adt2xpH4bACymaclqCLfFAUGSIupoWKkQ==", + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/add-to-calendar-button/-/add-to-calendar-button-2.5.10.tgz", + "integrity": "sha512-CVRt2vCM3Ps8CTO7sbB+NwX8gdoaQer+IG5w0kfm/45eKtW+PSRlzZm38BevbCuLIhzpokFCGjhoGsVHCPQnpQ==", "dependencies": { - "timezones-ical-library": "^1.6.1" + "timezones-ical-library": "^1.8.0" }, "engines": { - "node": ">=16.18.1", - "npm": ">=8.19.2" + "node": ">=18.17.0", + "npm": ">=9.6.7" } }, "node_modules/address": { @@ -16215,9 +16215,9 @@ } }, "node_modules/timezones-ical-library": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/timezones-ical-library/-/timezones-ical-library-1.6.1.tgz", - "integrity": "sha512-KlYe1VeyaXlcfXM5rDqUJ8Xv1C80P3ek9A50r3MaOsFpt3YCoymPkAR2SB/wNYOk7hJjl0MoUrJC8B+IaDUtNg==", + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/timezones-ical-library/-/timezones-ical-library-1.8.0.tgz", + "integrity": "sha512-+ztqRJ6OnynNzj6cI+1JAJx+duI7KugHmEb7WTcIKoHKKp3ANkyLr5aonlYsIgBQFlVecvmcVLp5ejo2/hAdvQ==", "engines": { "node": ">=14.20.0" } @@ -20908,11 +20908,11 @@ "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==" }, "add-to-calendar-button": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/add-to-calendar-button/-/add-to-calendar-button-2.1.2.tgz", - "integrity": "sha512-0bOB2YTJX6/ZGhHLtVZTfJG42TLJ7NFg0dTUYsuBQkHwvT+kPPuI5adt2xpH4bACymaclqCLfFAUGSIupoWKkQ==", + "version": "2.5.10", + "resolved": "https://registry.npmjs.org/add-to-calendar-button/-/add-to-calendar-button-2.5.10.tgz", + "integrity": "sha512-CVRt2vCM3Ps8CTO7sbB+NwX8gdoaQer+IG5w0kfm/45eKtW+PSRlzZm38BevbCuLIhzpokFCGjhoGsVHCPQnpQ==", "requires": { - "timezones-ical-library": "^1.6.1" + "timezones-ical-library": "^1.8.0" } }, "address": { @@ -29300,9 +29300,9 @@ } }, "timezones-ical-library": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/timezones-ical-library/-/timezones-ical-library-1.6.1.tgz", - "integrity": "sha512-KlYe1VeyaXlcfXM5rDqUJ8Xv1C80P3ek9A50r3MaOsFpt3YCoymPkAR2SB/wNYOk7hJjl0MoUrJC8B+IaDUtNg==" + "version": "1.8.0", + "resolved": "https://registry.npmjs.org/timezones-ical-library/-/timezones-ical-library-1.8.0.tgz", + "integrity": "sha512-+ztqRJ6OnynNzj6cI+1JAJx+duI7KugHmEb7WTcIKoHKKp3ANkyLr5aonlYsIgBQFlVecvmcVLp5ejo2/hAdvQ==" }, "title-case": { "version": "3.0.3", diff --git a/package.json b/package.json index 9f9c13a..4df5ae8 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "@emotion/styled": "^11.10.4", "@mui/icons-material": "^5.10.3", "@mui/material": "^5.10.4", - "add-to-calendar-button": "^2.1.2", + "add-to-calendar-button": "^2.5.10", "gatsby": "^4.22.1", "gatsby-plugin-image": "^2.22.0", "gatsby-plugin-sharp": "^4.23.0", diff --git a/src/assets/images/sponsors24/canauzOverseas.jpg b/src/assets/images/sponsors24/canauzOverseas.jpg new file mode 100644 index 0000000..a6e37cd Binary files /dev/null and b/src/assets/images/sponsors24/canauzOverseas.jpg differ diff --git a/src/assets/images/sponsors24/stTribe.png b/src/assets/images/sponsors24/stTribe.png new file mode 100644 index 0000000..abb21be Binary files /dev/null and b/src/assets/images/sponsors24/stTribe.png differ diff --git a/src/assets/sponsors24.json b/src/assets/sponsors24.json new file mode 100644 index 0000000..0b845ab --- /dev/null +++ b/src/assets/sponsors24.json @@ -0,0 +1,17 @@ +{ + "sponsors": [ + { + "name": " CanAuz Overseas Careers", + "image": "canauzOverseas.png", + "details": "Canauz Overseas is a visa assistance and immigration consultancy company in Hyderabad, India. They offer a range of services, including visa processing.", + "link": "https://canauzoverseas.com/" + }, + { + "name": "Student Tribe", + "image": "stTribe.png", + "details": "Student Tribe is a vibrant community of undergraduate students from across India, fostering collaboration, innovation, and academic excellence.", + "link": "https://studenttribe.in/" + } + ] + } + \ No newline at end of file diff --git a/src/components/TuringCup/LandingPage.js b/src/components/TuringCup/LandingPage.js index a1c0b45..4fb9cf9 100644 --- a/src/components/TuringCup/LandingPage.js +++ b/src/components/TuringCup/LandingPage.js @@ -47,6 +47,7 @@ function LandingPage() { borderRadius={2} padding={1} style={styles.backDrop} + > EDITION 2K22 diff --git a/src/components/TuringCup/Landingpage2.js b/src/components/TuringCup/Landingpage2.js index b78ec2c..f6bace4 100644 --- a/src/components/TuringCup/Landingpage2.js +++ b/src/components/TuringCup/Landingpage2.js @@ -1,11 +1,12 @@ import { Button, Grid, Stack } from "@mui/material"; import HowToRegRoundedIcon from "@mui/icons-material/HowToRegRounded"; -// import InsertInvitationRoundedIcon from "@mui/icons-material/InsertInvitationRounded"; +import InsertInvitationRoundedIcon from "@mui/icons-material/InsertInvitationRounded"; // npm install add-to-calendar-button to avail features of add to calendar. import { atcb_action } from "add-to-calendar-button"; import React from "react"; import "./LandingPage2.css"; +import TuringCupSponsors from "./TuringCupSponsors"; function Landingpage2() { const config = { name: "[Reminder] Turing Cup 2K23 Round - 1", @@ -17,9 +18,9 @@ function Landingpage2() { timeZone: "Asia/Calcutta" }; - // const handleClick = () => { - // atcb_action(config, document.getElementById("add-to-calendar-btn")); - // }; + const handleClick = () => { + atcb_action(config, document.getElementById("add-to-calendar-btn")); + }; return ( - {/* */} + + + ); } -export default Landingpage2; +export default Landingpage2; diff --git a/src/components/TuringCup/OurSponsors.js b/src/components/TuringCup/OurSponsors.js index 5fcaa19..4f4313a 100644 --- a/src/components/TuringCup/OurSponsors.js +++ b/src/components/TuringCup/OurSponsors.js @@ -7,10 +7,10 @@ import { GatsbyImage } from "gatsby-plugin-image"; import "./SponsorsCard.css"; function OurSponsors({ name, img, desc, link }) { - // const [isFlipped, setIsFlipped] = useState(true); - // const [open, setOpen] = React.useState(false); - // const handleOpen = () => setOpen(true); - // const handleClose = () => setOpen(false); + const [isFlipped, setIsFlipped] = useState(true); + const [open, setOpen] = React.useState(false); + const handleOpen = () => setOpen(true); + const handleClose = () => setOpen(false); return (
{/* + */} - +

{name}

-
*/} +
@@ -81,7 +81,7 @@ function OurSponsors({ name, img, desc, link }) { image={img} style={{ maxWidth: "100%", - maxHeight: "100%", + height: "100%", borderRadius: "30px" // border: "2px solid #F2AA4CFF", // padding: "5px" diff --git a/src/components/TuringCup/PastContests.js b/src/components/TuringCup/PastContests.js index e1a22d9..087bed1 100644 --- a/src/components/TuringCup/PastContests.js +++ b/src/components/TuringCup/PastContests.js @@ -143,7 +143,7 @@ function PastContests() { return ( <>

PREVIOUS EDITIONS

diff --git a/src/components/TuringCup/TuringCupSponsors.js b/src/components/TuringCup/TuringCupSponsors.js index add06c1..e253d23 100644 --- a/src/components/TuringCup/TuringCupSponsors.js +++ b/src/components/TuringCup/TuringCupSponsors.js @@ -6,9 +6,8 @@ import { styled } from "@mui/material/styles"; // import { GatsbyImage, getImage } from "gatsby-plugin-image"; import { graphql, useStaticQuery } from "gatsby"; // /turingcupSponsors -import sponsordata from "../../assets/sponsors23.json"; +import sponsordata from "../../assets/sponsors24.json"; import SponsorCard from "../../components/TuringCup/OurSponsors"; - // import Logo from "../components/TuringCupPrizePool" const Item = styled(Paper)(({ theme }) => ({ @@ -18,14 +17,14 @@ const Item = styled(Paper)(({ theme }) => ({ export default function TuringCupSponsors() { const data = useStaticQuery(graphql` - query SponsorQuery { - allFile(filter: { relativeDirectory: { eq: "sponsors23" } }) { + query SponsorQuery { + allFile(filter: { relativeDirectory: { eq: "sponsors24" } }) { edges { node { childImageSharp { gatsbyImageData( - width: 300 - height: 300 + width: 1000 + height: 1000 blurredOptions: { width: 100 } placeholder: BLURRED transformOptions: { fit: COVER } @@ -37,13 +36,14 @@ export default function TuringCupSponsors() { } `); const nodes = data.allFile.edges; + console.log("nodes :",nodes); return ( -

OUR SPONSORS

+

OUR SPONSORS

{sponsordata["sponsors"].map((sponsor, i) => { - console.log(nodes); const result = nodes.filter(item => { const src = - item.node?.childImageSharp?.gatsbyImageData.images.fallback.src; + item?.node?.childImageSharp?.gatsbyImageData.images.fallback.src; var filepath = /[^/]*$/.exec(src)[0]; // console.log(src, filepath, sponsor.image); return filepath === sponsor.image; }); - // console.log(result); + // console.log('result :',result); let image; if (result.length === 1) { image = result[0].node.childImageSharp.gatsbyImageData; + // console.log(image) } else { - console.log("Something is wrong"); + console.log("Something is wrong in TurinCupSponsors.js"); } return ( diff --git a/src/pages/turingcup.js b/src/pages/turingcup.js index 50a2ed9..d672d36 100644 --- a/src/pages/turingcup.js +++ b/src/pages/turingcup.js @@ -5,7 +5,7 @@ import "../components/TuringCup/turingcup.css"; import PastContests from "../components/TuringCup/PastContests"; // import Timers from "../components/TuringCup/Timers"; // import TuringCupPrizePool from "../components/TuringCup/TuringCupPrizePool"; -// import TuringCupSponsors from '../components/TuringCup/TuringCupSponsors'; +import TuringCupSponsors from '../components/TuringCup/TuringCupSponsors'; import { Box } from "@mui/material"; import { createTheme } from "@mui/material/styles"; import Landingpage2 from "../components/TuringCup/Landingpage2"; @@ -44,7 +44,7 @@ function turingcup() { {/* */} {/* */} {/* */} - {/* */} +