Skip to content

Commit 675cdff

Browse files
Merge pull request #24 from Aksh-Bansal-dev/patch-6
update social media links
2 parents 5352cb0 + 4c7d665 commit 675cdff

7 files changed

Lines changed: 1736 additions & 31 deletions

File tree

frontend/public/index.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@
33
<head>
44
<meta charset="utf-8" />
55
<link rel="icon" href="./bitbyte.png" />
6-
<link rel="preconnect" href="https://fonts.gstatic.com">
7-
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;900&display=swap" rel="stylesheet">
6+
<link rel="preconnect" href="https://fonts.gstatic.com" />
7+
<link
8+
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;900&display=swap"
9+
rel="stylesheet"
10+
/>
811
<meta name="viewport" content="width=device-width, initial-scale=1" />
912
<meta name="theme-color" content="#000000" />
1013
<meta
@@ -29,6 +32,14 @@
2932
<title>The Programming Club IIITDMJ</title>
3033
</head>
3134
<body>
35+
<script>
36+
if (
37+
window.location.host === "www.webix.iiitdmj.ac.in" ||
38+
window.location.host === "webix.iiitdmj.ac.in"
39+
) {
40+
window.location.href = "https://www.iiitdmj.ac.in/webix.iiitdmj.ac.in";
41+
}
42+
</script>
3243
<noscript>You need to enable JavaScript to run this app.</noscript>
3344
<div id="root"></div>
3445
<!--

frontend/src/components/Navs/homeNav/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const HomeNav: React.FC = () => {
1010
<span className={styles.navBtn}>About Us</span>
1111
</a>
1212
<a href="#contact">
13-
<span className={styles.navBtn}>Contact Us</span>
13+
<span className={styles.navBtn}>Meet the Team</span>
1414
</a>
1515
</div>
1616
<ul className={styles.nav}>

frontend/src/components/aboutUs/ContactUs.tsx

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
import React from "react";
22
import { createStyles, makeStyles } from "@material-ui/core/styles";
33
import { Container, Link, Typography, Theme } from "@material-ui/core";
4-
import { Email, Facebook, GitHub, Instagram } from "@material-ui/icons";
4+
import {
5+
Email,
6+
Facebook,
7+
GitHub,
8+
Instagram,
9+
LinkedIn,
10+
} from "@material-ui/icons";
511

612
const useStyles = makeStyles((theme: Theme) =>
713
createStyles({
@@ -70,12 +76,26 @@ const ContactUs: React.FC = () => {
7076
BitByte
7177
</Typography>
7278
</a>
73-
<a href="#" target="_blank" className={classes.atag}>
79+
<a
80+
href="https://www.instagram.com/bitbyte.tpc/"
81+
target="_blank"
82+
className={classes.atag}
83+
>
7484
<Instagram className={classes.icon} fontSize="small" />
7585
<Typography className={classes.text} component="span">
7686
BitByte
7787
</Typography>
7888
</a>
89+
<a
90+
href="https://www.linkedin.com/company/bitbyte-tpc/about/"
91+
target="_blank"
92+
className={classes.atag}
93+
>
94+
<LinkedIn className={classes.icon} fontSize="small" />
95+
<Typography className={classes.text} component="span">
96+
BitByte
97+
</Typography>
98+
</a>
7999
<span className={classes.atag}>
80100
<Typography className={classes.text} component="span">
81101
Contribute to the website{" "}

frontend/src/components/shortcuts/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ const Shortcuts: React.FC = () => {
2727
alt="facebook"
2828
/>
2929
</a>
30-
<a href="https://www.instagram.com" target="_blank" rel="noreferrer">
30+
<a
31+
href="https://www.instagram.com/bitbyte.tpc/"
32+
target="_blank"
33+
rel="noreferrer"
34+
>
3135
<img
3236
className={styles.logo}
3337
src="/images/other/ComponentTMP_0-image4.png"

frontend/src/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ ReactDOM.render(
99
<MuiThemeProvider theme={Theme}>
1010
<BrowserRouter
1111
basename={
12-
window.location.hostname === "iiitdmj.ac.in"
12+
window.location.hostname === "iiitdmj.ac.in" ||
13+
window.location.hostname === "www.iiitdmj.ac.in"
1314
? "/webix.iiitdmj.ac.in"
1415
: ""
1516
}

frontend/tools/imgRelativePath.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import os, fnmatch
2+
def findReplace(directory, find, replace, filePattern):
3+
for path, dirs, files in os.walk(os.path.abspath(directory)):
4+
for filename in fnmatch.filter(files, filePattern):
5+
filepath = os.path.join(path, filename)
6+
with open(filepath) as f:
7+
s = f.read()
8+
s = s.replace(find, replace)
9+
with open(filepath, "w") as f:
10+
f.write(s)
11+
12+
13+
loc = os.path.join(os.getcwd(), "..", "src")
14+
findReplace(
15+
loc,
16+
"src=\"/images", "src=\"/webix.iiitdmj.ac.in/images"
17+
,"*.tsx"
18+
)
19+
findReplace(
20+
loc,
21+
"\"/images", "\"/webix.iiitdmj.ac.in/images"
22+
,"*.ts"
23+
)
24+
findReplace(
25+
loc,
26+
"image=\"/images", "image=\"/webix.iiitdmj.ac.in/images"
27+
,"*.tsx"
28+
)
29+
print("Done!")
30+

0 commit comments

Comments
 (0)