File tree Expand file tree Collapse file tree 1 file changed +44
-2
lines changed
Expand file tree Collapse file tree 1 file changed +44
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import BrowseScreen from "./screens/browse";
33import Dashboard from "./screens/dashboard" ;
44import LandingPage from "./screens/landing" ;
55import LoadingPage from "./loading.jsx" ;
6- import MobilePage from "./mobile.jsx" ;
76import { BrowserRouter as Router , Routes , Route , useNavigate } from "react-router-dom" ;
87import PrivateRoutes from "./router_utils/PrivateRoutes" ;
98import 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
You can’t perform that action at this time.
0 commit comments