Skip to content

Commit

Permalink
Merge branch 'old-dev' of https://github.com/gtech-mulearn/mulearn in…
Browse files Browse the repository at this point in the history
…to old-dev
  • Loading branch information
AswinAsok committed Dec 17, 2023
2 parents c8a638d + 456573f commit a488afb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 22 deletions.
1 change: 1 addition & 0 deletions src/Pages/CampusLogoGen/campusLogoGen.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
bottom: calc(6.3rem - 10px);
font-family: "Plus Jakarta Sans", sans-serif;
font-size: 1.7rem;
letter-spacing: 0.25px;
}

.campusCodeYip {
Expand Down
25 changes: 3 additions & 22 deletions src/Pages/Home/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,30 +29,15 @@ const MuLiveCounter = () => {
"wss://mulearn.org/ws/v1/public/landing-stats/"
);

socket.addEventListener("open", (event) => console.log("connected"));

socket.addEventListener("message", (event) => {
setCounts(JSON.parse(event.data));
console.log("Message from server ", event.data)
});

socket.addEventListener("error", (event) => {
console.error("WebSocket error: ", event);
});

return () => {
socket.close();
if (!counts) {
fetch("https://mulearn.org/api/v1/get-log/global-count/")
.then((response) => response.json())
.then((data) => {
setCounts(data.response);
})
.catch((error) => {
console.error("Error:", error);
});
}
};
}, [counts]);
}, []);

return (
<div className={styles.rightside}>
Expand Down Expand Up @@ -498,11 +483,7 @@ const Home = () => {
The Story of Aami <span>MuStory</span>
</p>
<p className={styles.jv_content}>
Tune into the story of Aami, a student who is passionate about
learning and is always looking for opportunities to upskill
herself, and see how she discovers the MuVerse and how it helps
her to upskill herself and become industry ready by forming a
learning circles and participating in various events.
Meet Aami, an eager learner hungry for growth! Join her voyage through the captivating µVerse, where she seizes opportunities, builds learning circles, and immerses herself in events, emerging industry-ready with newfound skills and confidence.
</p>
</div>
<div className={styles.mu_story}>
Expand Down

0 comments on commit a488afb

Please sign in to comment.