Skip to content

Commit a401689

Browse files
author
Arun Jangra
committed
Added New Images
0 parents  commit a401689

File tree

125 files changed

+38129
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+38129
-0
lines changed

README.md

Lines changed: 2176 additions & 0 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 31990 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"name": "dscommunity-client",
3+
"version": "0.1.0",
4+
"private": true,
5+
"dependencies": {
6+
"@fortawesome/fontawesome-svg-core": "^1.2.28",
7+
"@fortawesome/free-brands-svg-icons": "^5.13.0",
8+
"@fortawesome/free-solid-svg-icons": "^5.13.0",
9+
"@fortawesome/react-fontawesome": "^0.1.10",
10+
"aos": "^3.0.0-beta.6",
11+
"axios": "^0.19.2",
12+
"bootstrap": "^4.5.0",
13+
"formik": "^2.1.4",
14+
"react": "^16.13.1",
15+
"react-bootstrap": "^1.6.3",
16+
"react-dom": "^16.13.1",
17+
"react-responsive-carousel": "^3.2.7",
18+
"react-router": "^5.2.0",
19+
"react-router-dom": "^5.2.0",
20+
"react-scripts": "^3.4.1",
21+
"reactstrap": "^8.4.1",
22+
"yup": "^0.29.1"
23+
},
24+
"scripts": {
25+
"start": "react-scripts start",
26+
"build": "react-scripts build",
27+
"test": "react-scripts test --env=jsdom",
28+
"eject": "react-scripts eject"
29+
},
30+
"proxy": "http://localhost:4220",
31+
"browserslist": {
32+
"production": [
33+
">0.2%",
34+
"not dead",
35+
"not op_mini all"
36+
],
37+
"development": [
38+
"last 1 chrome version",
39+
"last 1 firefox version",
40+
"last 1 safari version"
41+
]
42+
}
43+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
importScripts('https://cdn.onesignal.com/sdks/OneSignalSDKWorker.js');

public/OneSignalSDKWorker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
importScripts('https://cdn.onesignal.com/sdks/OneSignalSDKWorker.js');

public/favicon.ico

107 KB
Binary file not shown.

public/index.html

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
7+
<meta name="theme-color" content="#000000">
8+
<!--
9+
manifest.json provides metadata used when your web app is added to the
10+
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
11+
-->
12+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
13+
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
14+
<link href="https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;700&display=swap" rel="stylesheet">
15+
<link href="https://fonts.googleapis.com/css2?family=Barlow:wght@400;700&display=swap" rel="stylesheet">
16+
17+
<!-- Global site tag (gtag.js) - Google Analytics -->
18+
19+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-165410200-1"></script>
20+
<script>
21+
window.dataLayer = window.dataLayer || [];
22+
23+
function gtag() {
24+
dataLayer.push(arguments);
25+
}
26+
gtag('js', new Date());
27+
28+
gtag('config', 'UA-165410200-1');
29+
</script>
30+
31+
<!-- Global site tag (gtag.js) - Google Analytics End-->
32+
33+
<!--Push Notifications-->
34+
35+
<script src="https://cdn.onesignal.com/sdks/OneSignalSDK.js" async=""></script>
36+
<script>
37+
var OneSignal = window.OneSignal || [];
38+
OneSignal.push(function () {
39+
OneSignal.init({
40+
appId: "f9fba904-172f-42b7-89de-fa1bf8c4fcb2",
41+
});
42+
});
43+
</script>
44+
45+
<!--Push Notifications End-->
46+
47+
<!--
48+
Notice the use of %PUBLIC_URL% in the tags above.
49+
It will be replaced with the URL of the `public` folder during the build.
50+
Only files inside the `public` folder can be referenced from the HTML.
51+
52+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
53+
work correctly both with client-side routing and a non-root public URL.
54+
Learn how to configure a non-root public URL by running `npm run build`.
55+
-->
56+
<title>Data Science Community</title>
57+
</head>
58+
59+
<body>
60+
<noscript>
61+
We are a technology-driven Data Science-based student-led innovation community at SRM IST. Our aim is to foster development and entrepreneurial skills among
62+
students and work as a community that inspires thousands.
63+
</noscript>
64+
<div id="root"></div>
65+
<!--
66+
This HTML file is a template.
67+
If you open it directly in the browser, you will see an empty page.
68+
69+
You can add webfonts, meta tags, or analytics to this file.
70+
The build step will place the bundled scripts into the <body> tag.
71+
72+
To begin the development, run `npm start` or `yarn start`.
73+
To create a production bundle, use `npm run build` or `yarn build`.
74+
-->
75+
76+
<!-- Medium Article Related Scripts -->
77+
<script src="https://medium-widget.pixelpoint.io/widget.js"></script>
78+
<script type="text/javascript">
79+
function mediumWidget() {
80+
let postsPer = 3;
81+
if (window.innerWidth < 991) {
82+
postsPer = 1;
83+
}
84+
MediumWidget.Init({
85+
renderTo: '#medium-widget',
86+
params: {
87+
"resource": "https://medium.com/data-science-community-srm",
88+
"postsPerLine": postsPer,
89+
"limit": 20,
90+
"picture": "big",
91+
"fields": ["description", "author", "publishAt"],
92+
"ratio": "landscape"
93+
}
94+
});
95+
}
96+
</script>
97+
98+
<script type="text/javascript">
99+
(function (d, m) {
100+
var kommunicateSettings =
101+
{ "appId": "308e53723df0a38e41ace0c4e5fe04844", "popupWidget": true, "automaticChatOpenOnNavigation": true };
102+
var s = document.createElement("script"); s.type = "text/javascript"; s.async = true;
103+
s.src = "https://widget.kommunicate.io/v2/kommunicate.app";
104+
var h = document.getElementsByTagName("head")[0]; h.appendChild(s);
105+
window.kommunicate = m; m._globals = kommunicateSettings;
106+
})(document, window.kommunicate || {});
107+
</script>
108+
109+
<body>
110+
111+
</html>

public/manifest.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"short_name": "React App",
3+
"name": "Create React App Sample",
4+
"icons": [
5+
{
6+
"src": "favicon.ico",
7+
"sizes": "64x64 32x32 24x24 16x16",
8+
"type": "image/x-icon"
9+
}
10+
],
11+
"start_url": "./index.html",
12+
"display": "standalone",
13+
"theme_color": "#000000",
14+
"background_color": "#ffffff"
15+
}

src/App.css

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
* {
2+
scroll-behavior: smooth !important;
3+
}
4+
5+
body {
6+
font-family: "Ubuntu", sans-serif !important;
7+
overflow-x: hidden !important;
8+
margin: 80px 0px 0px 0px !important;
9+
}
10+
11+
p {
12+
font-family: "Barlow", sans-serif;
13+
}
14+
15+
hr {
16+
border-top: 2px solid #fafafa;
17+
margin: 50px auto;
18+
width: 80%;
19+
}
20+
21+
@media (min-width: 992px) {
22+
hr {
23+
margin: 100px auto !important;
24+
}
25+
}
26+
@media screen and (max-width: 375px) {
27+
body {
28+
overflow-x: hidden !important;
29+
}
30+
}
31+
32+
@media screen and (max-width: 768px) {
33+
body {
34+
overflow-x: hidden !important;
35+
}
36+
}

src/App.js

Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
import React, { Suspense, useContext, useEffect } from "react";
2+
import { Route, Switch } from "react-router-dom";
3+
import AOS from "aos";
4+
5+
import "./App.css";
6+
import Home from "./pages/Home/Home";
7+
import Spinner from "./components/UI/Spinner/Spinner";
8+
import NotFound from "./components/Notfound/NotFound";
9+
import Redirecting from "./components/Redirecting/Redirecting";
10+
import { ThemeContext } from "./context/theme-context.js";
11+
const Events = React.lazy(() => import("./pages/Events/Events"));
12+
const Blog = React.lazy(() => import("./pages/Blog/Blog"));
13+
const People = React.lazy(() => import("./pages/People/People"));
14+
const ContactUs = React.lazy(() => import("./pages/ContactUs/ContactUs"));
15+
const Projects = React.lazy(() => import("./pages/Projects/Projects"));
16+
17+
const App = () => {
18+
useEffect(() => {
19+
AOS.init();
20+
});
21+
22+
const themeContext = useContext(ThemeContext);
23+
24+
if (themeContext.isDark) {
25+
document.querySelector("body").classList.remove("lightMode");
26+
} else {
27+
document.querySelector("body").classList.add("lightMode");
28+
}
29+
30+
let redirects = (
31+
<>
32+
<Route
33+
exact
34+
path="/blogs"
35+
render={() => {
36+
window.location = "https://medium.com/data-science-community-srm";
37+
return <Redirecting />;
38+
}}
39+
/>
40+
<Route
41+
exact
42+
path="/git"
43+
render={() => {
44+
window.location =
45+
"https://forms.gle/8JRgXYTqLHtSJusL8";
46+
return <Redirecting />;
47+
}}
48+
/>
49+
<Route
50+
exact
51+
path="/flutterdoctor"
52+
render={() => {
53+
window.location =
54+
"https://play.google.com/store/apps/details?id=com.ojasgupta.helper";
55+
return <Redirecting />;
56+
}}
57+
/>
58+
<Route
59+
exact
60+
path="/resourceify"
61+
render={() => {
62+
window.location =
63+
"https://github.com/Data-Science-Community-SRM/Resourceify";
64+
return <Redirecting />;
65+
}}
66+
/>
67+
<Route
68+
exact
69+
path="/conjexure"
70+
render={() => {
71+
window.location =
72+
"https://github.com/Data-Science-Community-SRM/Conjexure-A-Web-App-for-Stock-Market-Forecasting";
73+
return <Redirecting />;
74+
}}
75+
/>
76+
<Route
77+
exact
78+
path="/rockpaperscissor"
79+
render={() => {
80+
window.location =
81+
"https://github.com/Data-Science-Community-SRM/Hand-Gesture-Recognition-Rock-Paper-Scissor";
82+
return <Redirecting />;
83+
}}
84+
/>
85+
<Route
86+
exact
87+
path="/uselections"
88+
render={() => {
89+
window.location =
90+
"https://github.com/Data-Science-Community-SRM/Forecasting-US-Elections";
91+
return <Redirecting />;
92+
}}
93+
/>
94+
<Route
95+
exact
96+
path="/Docgen"
97+
render={() => {
98+
window.location =
99+
"https://github.com/Data-Science-Community-SRM/DocGen";
100+
return <Redirecting />;
101+
}}
102+
/>
103+
<Route
104+
exact
105+
path="/Handwriting-gen"
106+
render={() => {
107+
window.location =
108+
"https://github.com/Data-Science-Community-SRM/Handwriting-Generation";
109+
return <Redirecting />;
110+
}}
111+
/>
112+
</>
113+
);
114+
115+
return (
116+
<React.Fragment>
117+
<div style={{ position: "relative", minHeight: "100vh" }}>
118+
{redirects}
119+
<Switch>
120+
<Route
121+
path="/contact-us"
122+
render={() => (
123+
<Suspense fallback={<Spinner />}>
124+
<ContactUs />
125+
</Suspense>
126+
)}
127+
/>
128+
<Route
129+
path="/people"
130+
render={() => (
131+
<Suspense fallback={<Spinner />}>
132+
<People />
133+
</Suspense>
134+
)}
135+
/>
136+
<Route
137+
path="/blog"
138+
render={() => (
139+
<Suspense fallback={<Spinner />}>
140+
<Blog />
141+
</Suspense>
142+
)}
143+
/>
144+
<Route
145+
path="/projects"
146+
render={() => (
147+
<Suspense fallback={<Spinner />}>
148+
<Projects />
149+
</Suspense>
150+
)}
151+
/>
152+
<Route
153+
path="/events"
154+
render={() => (
155+
<Suspense fallback={<Spinner />}>{<Events />}</Suspense>
156+
)}
157+
/>
158+
<Route path="/" exact component={Home} />
159+
<Route
160+
path="*"
161+
render={() => (
162+
<Suspense fallback={<Spinner />}>
163+
<NotFound />
164+
</Suspense>
165+
)}
166+
/>
167+
</Switch>
168+
</div>
169+
</React.Fragment>
170+
);
171+
};
172+
173+
export default App;

0 commit comments

Comments
 (0)