Skip to content

Commit fe3c5db

Browse files
authored
Merge pull request #114 from Coding-Club-IITG/aditya
Fixed Landing Page
2 parents ace79a8 + 2ef0853 commit fe3c5db

File tree

1 file changed

+44
-2
lines changed

1 file changed

+44
-2
lines changed

client/src/App.jsx

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import BrowseScreen from "./screens/browse";
33
import Dashboard from "./screens/dashboard";
44
import LandingPage from "./screens/landing";
55
import LoadingPage from "./loading.jsx";
6-
import MobilePage from "./mobile.jsx";
76
import { BrowserRouter as Router, Routes, Route, useNavigate } from "react-router-dom";
87
import PrivateRoutes from "./router_utils/PrivateRoutes";
98
import ProfilePage from "./screens/profile.js";
@@ -22,6 +21,7 @@ const App = () => {
2221
useEffect(() => {
2322
const params = new URLSearchParams(window.location.search);
2423
if (params.get("fresh")) {
24+
window.location.href = "/loading";
2525
return;
2626
}
2727

@@ -77,7 +77,49 @@ const App = () => {
7777
</Routes>
7878
</Router>
7979
</div>
80-
) : (<MobilePage></MobilePage> //for mobile view
80+
) : (
81+
<div
82+
style={{
83+
minHeight: "100vh",
84+
display: "flex",
85+
flexDirection: "column",
86+
alignItems: "center",
87+
justifyContent: "center",
88+
textAlign: "center",
89+
}}
90+
>
91+
<p
92+
style={{
93+
fontSize: "1.5rem",
94+
marginBottom: "16px",
95+
}}
96+
>
97+
Get CourseHub now!
98+
</p>
99+
<div>
100+
<a href="https://play.google.com/store/apps/details?id=com.codingclub.coursehub">
101+
<img
102+
src="google-play-badge.png"
103+
alt=""
104+
style={{
105+
width: "180px",
106+
height: "100%",
107+
}}
108+
/>
109+
</a>
110+
<br />
111+
<a href="itms-apps://apps.apple.com/us/app/coursehub/id6447286863">
112+
<img
113+
src="app-store-badge.png"
114+
alt=""
115+
style={{
116+
width: "159px",
117+
height: "100%",
118+
}}
119+
/>
120+
</a>
121+
</div>
122+
</div>
81123
);
82124
};
83125

0 commit comments

Comments
 (0)