Skip to content

Commit

Permalink
added links in Footer, remove Slack links
Browse files Browse the repository at this point in the history
  • Loading branch information
harshit-jain52 committed Nov 14, 2024
1 parent f7ce811 commit 1414c11
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 21 deletions.
15 changes: 7 additions & 8 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "../styles/Footer.css";
import { ROUTER_PATHS } from "../util/constants";
import { ROUTER_PATHS, DISCORD_INVITE, KOSS_CONTACT_EMAIL, KOSS_LINKEDIN_URL, KOSS_TWITTER_URL, KOSS_WEBSITE_URL } from "../util/constants";

const Footer = () => {
return (
Expand All @@ -8,10 +8,9 @@ const Footer = () => {
<div className="footer-columns">
<div className="footer-column">
<h2>Social Groups</h2>
<p><a href="https://discord.gg/efFwh6fnjk">Discord</a></p>
<p><a href="https://kwoc-koss.slack.com/join/shared_invite/zt-wlftnk75-VoQHEEB9WpkHfza6~GGpWQ#/shared-invite/email">Slack</a></p>
<p><a href="https://www.linkedin.com/company/kharagpur-open-source-society/mycompany/">LinkedIn</a></p>
<p><a href="https://x.com/kossiitkgp">Twitter</a></p>
<p><a href={DISCORD_INVITE}>Discord</a></p>
<p><a href={KOSS_LINKEDIN_URL}>LinkedIn</a></p>
<p><a href={KOSS_TWITTER_URL}>Twitter</a></p>
</div>
<div className="footer-column">
<h2>Quick Links</h2>
Expand All @@ -21,9 +20,9 @@ const Footer = () => {
</div>
<div className="footer-column">
<h2>Other</h2>
<p><a href="https://kossiitkgp.org/">About KOSS</a></p>
<p><a href="">Past Programs</a></p>
<p><a href="">contact@kossiitkgp.org</a></p>
<p><a href={KOSS_WEBSITE_URL}>About KOSS</a></p>
<p><a href="https://kwoc23.kossiitkgp.org/">Past Programs</a></p>
<p><a href={KOSS_CONTACT_EMAIL}>contact@kossiitkgp.org</a></p>
</div>
</div>
</div>
Expand Down
5 changes: 3 additions & 2 deletions src/components/Hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import hook from '../assets/igloo-scroll-hook-edit.png';
import sign from '../assets/sign-post.png';
import "../styles/Hero.css";
import "../styles/App.css";
import { MENTOR_MANUAL_LINK, STUDENT_MANUAL_LINK } from '../util/constants';

export const HeroComponent = () => {
return (
Expand All @@ -15,8 +16,8 @@ export const HeroComponent = () => {
<h1>Kharagpur <span className='yellow-text'>Winter<br />of Code</span> 2024</h1>
</div>
<div className="hero-button-container">
<button className="hero-button"> <a href="https://drive.google.com/file/d/1gc2NWeMDA3ZFzH4RWVspuerduRdfY9yu/view?usp=drive_link" target="_blank">Student Manual </a></button>
<button className="hero-button"> <a href="https://drive.google.com/file/d/1XUGfHygE3_KYX_qhcpvw8jhKLlcRkzHP/view?usp=drive_link" target="_blank">Mentor Manual </a></button>
<button className="hero-button"> <a href={STUDENT_MANUAL_LINK} target="_blank">Student Manual </a></button>
<button className="hero-button"> <a href={MENTOR_MANUAL_LINK} target="_blank">Mentor Manual </a></button>
</div>
</div>
<div className="hero-images">
Expand Down
7 changes: 0 additions & 7 deletions src/pages/StudentDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
MID_EVALS_ENDED,
REPORT_SUBMISSION_OPEN,
ROUTER_PATHS,
SLACK_INVITE,
STUDENT_MANUAL_LINK,
} from "../util/constants";
import { useAuthContext } from "../util/auth";
Expand Down Expand Up @@ -246,12 +245,6 @@ function StudentDashboard() {
announcements.
</p>
<div className="flex justify-center gap-4 mx-auto">
<Link
to={SLACK_INVITE}
className="text-white w-fit mx-auto focus:outline-none focus:ring-4 font-medium rounded-lg text-sm px-5 py-2.5 bg-primary-700 hover:bg-primary-600 focus:ring-primary-600 border-primary-600"
>
Slack Workspace
</Link>
<Link
to={DISCORD_INVITE}
className="text-white w-fit mx-auto focus:outline-none focus:ring-4 font-medium rounded-lg text-sm px-5 py-2.5 bg-primary-700 hover:bg-primary-600 focus:ring-primary-600 border-primary-600"
Expand Down
6 changes: 2 additions & 4 deletions src/util/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ export enum ROUTER_PATHS {
ONE_PROJECT_STATS = "/stats/project/:id",
}
export const DISCORD_INVITE = "https://discord.gg/efFwh6fnjk";
export const SLACK_INVITE =
"https://join.slack.com/t/kwoc-koss/shared_invite/zt-wlftnk75-VoQHEEB9WpkHfza6~GGpWQ";
export const KOSS_WEBSITE_URL = "https://kossiitkgp.org";
export const KOSS_CONTACT_EMAIL = "contact@kossiitkgp.org";
export const KOSS_LINKEDIN_URL =
Expand All @@ -45,9 +43,9 @@ export const KOSS_TWITTER_URL = "https://twitter.com/kossiitkgp";
export const FOSSU_WEBSITE_URL = "https://fossunited.org";

export const MENTOR_MANUAL_LINK =
"https://drive.google.com/file/d/1qNl6RGQ6dnkFu20L3LwC4bcBFOOpd_vV/view?usp=drive_link";
"https://drive.google.com/file/d/1XUGfHygE3_KYX_qhcpvw8jhKLlcRkzHP/view?usp=drive_link";
export const STUDENT_MANUAL_LINK =
"https://drive.google.com/file/d/18RqKEQnyS9YDKyaVQB8rvnqJtbxejf0M/view?usp=drive_link";
"https://drive.google.com/file/d/1gc2NWeMDA3ZFzH4RWVspuerduRdfY9yu/view?usp=drive_link";

export const GH_OAUTH_CLIENT_ID = import.meta.env.VITE_GH_OAUTH_CLIENT_ID;
export const GH_OAUTH_URL = `https://github.com/login/oauth/authorize?client_id=${GH_OAUTH_CLIENT_ID}&state=replacethiswithrandomtextlater`;

0 comments on commit 1414c11

Please sign in to comment.