Skip to content

Commit

Permalink
link edits
Browse files Browse the repository at this point in the history
  • Loading branch information
jogeshgupta963 committed Oct 19, 2022
1 parent a70a88a commit 3b4c67e
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 31 deletions.
2 changes: 2 additions & 0 deletions acm-member-dashboard/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import Certificates from "./pages/certificates/Certificates";
import Register from "./pages/register/Register";
import Password from "./pages/ResetLink/Password";
import ForgotPass from "./pages/ForgotPassword/ForgotPass";
import Settings from "./pages/Settings/Settings";

function Nav() {
return (
Expand Down Expand Up @@ -46,6 +47,7 @@ function App() {
<Route path="/badges" element={<Badges />} />
<Route path="/announcements" element={<Announcements />} />
<Route path="/projects" element={<Projects />} />
<Route path="/settings" element={<Settings />} />
</Route>
</Routes>
</>
Expand Down
28 changes: 15 additions & 13 deletions acm-member-dashboard/src/components/Cards/Cards.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,22 @@ const Cards = () => {
user.bootcamps.map((card, id) => {
return (
<div className="parentContainer" key={id}>
<Card
// title={card.title}
// color={card.color}
// barValue={card.barValue}
// value={card.value}
// png={card.png}
// time={card.time}
// series={card.series}
<a href={card.url} target="__blank">
<Card
// title={card.title}
// color={card.color}
// barValue={card.barValue}
// value={card.value}
// png={card.png}
// time={card.time}
// series={card.series}

color={{ backGround: "#1e1f25" }}
barValue={70}
value={card.enrolled}
png={AiFillGithub}
/>
color={{ backGround: "#1e1f25" }}
barValue={70}
value={card.enrolled}
png={AiFillGithub}
/>
</a>
</div>
);
})}
Expand Down
20 changes: 9 additions & 11 deletions acm-member-dashboard/src/components/Contribution/Contribution.jsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
import React from 'react'
import React from "react";
import Tilt from "react-parallax-tilt";
import './Contribution.css'
import "./Contribution.css";

const Contribution = () => {
return (
<a href="https://github.com/ACM-Thapar/CS_COURSE_GUIDE">
<Tilt>
<div className="cscourseguide">
CS_COURSE_GUIDE
</div>
</Tilt>
<a href="https://github.com/ACM-Thapar/CS_COURSE_GUIDE" target="__blank">
<Tilt>
<div className="cscourseguide">CS_COURSE_GUIDE</div>
</Tilt>
</a>
)
}
);
};

export default Contribution
export default Contribution;
7 changes: 7 additions & 0 deletions acm-member-dashboard/src/pages/Settings/Settings.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from "react";

function Settings() {
return <div></div>;
}

export default Settings;
16 changes: 9 additions & 7 deletions acm-member-dashboard/src/pages/register/Register.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ function Register() {
const handleSubmit = async (e) => {
e.preventDefault();
try {
const { data } = await axios.post("/auth/", {
name: name.current.value,
email: email.current.value,
});
console.log(data);
// dispatch(getUser(data));
navigate("/");
if (email.current.value.includes("@thapar.edu")) {
const { data } = await axios.post("/auth/", {
name: name.current.value,
email: email.current.value,
});
console.log(data);
dispatch(getUser(data));
navigate("/");
}
} catch (err) {
console.log(err);
}
Expand Down

0 comments on commit 3b4c67e

Please sign in to comment.