diff --git a/src/Components/PDFDocument.js b/src/Components/PDFDocument.js index 3dc0b65..4f51980 100644 --- a/src/Components/PDFDocument.js +++ b/src/Components/PDFDocument.js @@ -21,7 +21,7 @@ const options = { pdfjs.GlobalWorkerOptions.workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.js`; // Create Document Component -export default function PDFDocument() { +export default function PDFDocument({file}) { const [numPages, setNumPages] = React.useState(1); function onDocumentLoadSuccess({ numPages }) { @@ -30,7 +30,7 @@ export default function PDFDocument() { return (
- - {data === null ? "BITS P" : team1} + + {data === "" ? "BITS P" : team1} {data !== null && data.team_scores.length === 2 && ( <> VS - {team2} + {team2} )}
diff --git a/src/Styles/Articles.module.css b/src/Styles/Articles.module.css index ab2eb54..7754752 100644 --- a/src/Styles/Articles.module.css +++ b/src/Styles/Articles.module.css @@ -33,6 +33,8 @@ scale: 0.7; width: 10%; /* margin-right: auto; */ + + display: none; } .title { @@ -67,7 +69,7 @@ } .slide { - background-color: white; + /* background-color: white; */ overflow: scroll; } @@ -84,6 +86,8 @@ display: grid; justify-items: center; + + background-color: transparent !important; } .pdfpage > canvas { @@ -125,6 +129,21 @@ cursor: pointer; } +.noArticles{ + color: black; + font-family: Montserrat; + font-size: 1.8rem; + font-style: normal; + font-weight: 600; + line-height: normal; + letter-spacing: 2.4px; + text-align: center; + + height: 100%; + display: grid; + place-items: center; +} + @media screen and (max-width: 768px) { .heading { height: 7vh; @@ -151,16 +170,15 @@ .heading { height: 7vh; } - .carouselWrapper { - /* height: 90%; */ - } .heading h1 { font-size: 1.3rem; } - .carousel { - /* height: 85%; */ - } .articleAuthor p { font-size: 1rem; } + + .noArticles{ + font-size: 1.2rem; + } + } diff --git a/src/Styles/Sponsors.module.css b/src/Styles/Sponsors.module.css index b14e929..f3cafd2 100644 --- a/src/Styles/Sponsors.module.css +++ b/src/Styles/Sponsors.module.css @@ -5,6 +5,7 @@ width: 100vw; height: 100vh; background: url('../images/contact_bg.png') no-repeat center center fixed; + background-size: cover; overflow: scroll; background-size: cover; } @@ -87,4 +88,4 @@ .sponsor p{ font-size: 1rem; } -} \ No newline at end of file +} diff --git a/src/images/EPC Day 1.pdf b/src/images/EPC Day 1.pdf new file mode 100644 index 0000000..feeb4ee Binary files /dev/null and b/src/images/EPC Day 1.pdf differ diff --git a/src/images/EPC Day 2.pdf b/src/images/EPC Day 2.pdf new file mode 100644 index 0000000..ae5333e Binary files /dev/null and b/src/images/EPC Day 2.pdf differ diff --git a/src/images/EPC Day 3.pdf b/src/images/EPC Day 3.pdf new file mode 100644 index 0000000..ff77ee3 Binary files /dev/null and b/src/images/EPC Day 3.pdf differ diff --git a/src/images/EPC Day 4.pdf b/src/images/EPC Day 4.pdf new file mode 100644 index 0000000..df631b9 Binary files /dev/null and b/src/images/EPC Day 4.pdf differ diff --git a/src/images/HPC Day 1.pdf b/src/images/HPC Day 1.pdf new file mode 100644 index 0000000..98cd000 Binary files /dev/null and b/src/images/HPC Day 1.pdf differ diff --git a/src/images/HPC Day 2.pdf b/src/images/HPC Day 2.pdf new file mode 100644 index 0000000..f2db7bb Binary files /dev/null and b/src/images/HPC Day 2.pdf differ diff --git a/src/images/HPC Day 3.pdf b/src/images/HPC Day 3.pdf new file mode 100644 index 0000000..ad55ba7 Binary files /dev/null and b/src/images/HPC Day 3.pdf differ diff --git a/src/images/HPC Day 4.pdf b/src/images/HPC Day 4.pdf new file mode 100644 index 0000000..b1899a5 Binary files /dev/null and b/src/images/HPC Day 4.pdf differ diff --git a/src/images/Shreyas.png b/src/images/Shreyas.png deleted file mode 100644 index c04b006..0000000 Binary files a/src/images/Shreyas.png and /dev/null differ diff --git a/src/images/shreyas.jpg b/src/images/shreyas.jpg deleted file mode 100644 index ca96f58..0000000 Binary files a/src/images/shreyas.jpg and /dev/null differ diff --git a/src/images/shreyas.png b/src/images/shreyas.png deleted file mode 100644 index c04b006..0000000 Binary files a/src/images/shreyas.png and /dev/null differ diff --git a/src/pages/EPC.js b/src/pages/EPC.js index 0698d46..72d4367 100644 --- a/src/pages/EPC.js +++ b/src/pages/EPC.js @@ -15,6 +15,12 @@ import { Navigation, Mousewheel } from "swiper/modules"; // PDF Compoenent import PDFDocument from "../Components/PDFDocument"; +// Importing all pdfs +import day1 from "../images/EPC Day 1.pdf" +import day2 from "../images/EPC Day 2.pdf" +import day3 from "../images/EPC Day 3.pdf" +import day4 from "../images/EPC Day 4.pdf" + export default function EPC() { return (
@@ -27,7 +33,7 @@ export default function EPC() { content="width=device-width, user-scalable=no" > */}
- + {/* - + */}

Articles

@@ -81,10 +87,16 @@ export default function EPC() { modules={[Navigation, Mousewheel]} > - + - + + + + + + + {/* diff --git a/src/pages/HPC.js b/src/pages/HPC.js index 333c624..5e201f5 100644 --- a/src/pages/HPC.js +++ b/src/pages/HPC.js @@ -15,7 +15,14 @@ import { Navigation, Mousewheel } from "swiper/modules"; // PDF Compoenent import PDFDocument from "../Components/PDFDocument"; -export default function EPC() { +// Import pdf files +import day1 from "../images/HPC Day 1.pdf" +import day2 from "../images/HPC Day 2.pdf" +import day3 from "../images/HPC Day 3.pdf" +import day4 from "../images/HPC Day 4.pdf" + +export default function HPC() { + return (
- + + + + + + + - + - {/* - - */} +
-

Hindi Press Club

-
+
); diff --git a/src/pages/developers.js b/src/pages/developers.js index e3ba26e..c00d681 100644 --- a/src/pages/developers.js +++ b/src/pages/developers.js @@ -44,6 +44,7 @@ const Developers = () => { jersey: "07", hostel: "SK", }, + { id: 2, name: "Shreyas Gantayet", @@ -68,6 +69,18 @@ const Developers = () => { jersey: "09", hostel: "RM", }, + { + id: 3, + name: "Shreyas Gantayet", + desc: "git touch grass", + image: shreyasDVM, + linkedin: "https://www.linkedin.com/in/shreyas-gantayet-4b5993280/", + github: "https://github.com/Y0shicon", + instagram: "https://www.instagram.com/shreyyas.04/", + behance: "", + jersey: "18", + hostel: "VY", + }, { id: 4, name: "Bharat Raj Singal", @@ -102,7 +115,6 @@ const Developers = () => { linkedin: "https://www.linkedin.com/in/shirsh-jain-5a5b751b9", github: "", instagram: "", - behance: "", jersey: "00", hostel: "AK", }, @@ -120,7 +132,7 @@ const Developers = () => { }, { id: 3, - name: "RaCl", + name: "Raj Clerk", desc: "only person in back who has a gf", image: raj, linkedin: "https://www.linkedin.com/in/rajclerk", @@ -142,18 +154,6 @@ const Developers = () => { jersey: "18", hostel: "AK", }, - { - id: 5, - name: "", - desc: "", - image: "", - linkedin: "", - github: "", - instagram: "", - behance: "", - jersey: "", - hostel: "", - }, ] const DesignTeam = [ { @@ -204,18 +204,6 @@ const Developers = () => { jersey: "36", hostel: "RM", }, - { - id: 5, - name: "", - desc: "", - image: "", - linkedin: "", - github: "", - instagram: "", - behance: "", - jersey: "", - hostel: "", - }, ] // const FrontTeam = [ diff --git a/src/pages/scoreboard.js b/src/pages/scoreboard.js index 6cfa3e8..db35aa7 100644 --- a/src/pages/scoreboard.js +++ b/src/pages/scoreboard.js @@ -21,16 +21,14 @@ export default function Index() { const marqueeRef = React.useRef(null); React.useEffect(() => { - // fetch("https://test.bitsbosm.org/2023/live-score/send-data") - // .then((res) => res.json()) - // .then((data) => { - // // setData([...JSON.parse(data), ...JSON.parse(data), ...JSON.parse(data), ...JSON.parse(data)]); - // setData(JSON.parse(data).slice(0, -1)); - // console.log(JSON.parse(data).at(-1)); - // setAnnouncement(JSON.parse(data).at(-1).text); - // }); - - const socket = new WebSocket("wss://test.bitsbosm.org/2023/ws/live_score/"); + fetch("https://bitsbosm.org/2023/live-score/send-data") + .then((res) => res.json()) + .then((data) => { + // setData([...JSON.parse(data), ...JSON.parse(data), ...JSON.parse(data), ...JSON.parse(data)]); + setData(JSON.parse(data)); + }); + + const socket = new WebSocket("wss://bitsbosm.org/2023/ws/live_score/"); socket.onopen = (e) => { console.log("connected"); // console.log(e.data) @@ -70,11 +68,11 @@ export default function Index() { } // temp for testing - setAllScoreCards( - [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map((item, index) => { - return ; - }) - ); + // setAllScoreCards( + // [1, 2, 3, 4, 5, 6, 7, 8, 9, 10].map((item, index) => { + // return ; + // }) + // ); // console.log(data); // console.log(announcement); @@ -112,7 +110,7 @@ export default function Index() {

SCOREBOARD

- {typeof window !== "undefined" && + {/* {typeof window !== "undefined" && announcement !== null && window.innerWidth > 768 && isPlaying ? ( @@ -131,12 +129,16 @@ export default function Index() { announcement !== null && window.innerWidth > 768 && !isPlaying ? ( -
+

{announcement}

) : ( <> - )} + )} */}