Here is the App.js file which will include the main page in which i have a single button of continue. The continue button will led a user to the home page but unfortunately instead of directing a user to the home page it is opening the homepage just after the Continue button
function App() {
return (
<div className="App" >
<MainPage/>
<Routes>
<Route path="home" element={<Home />} />
<Route path="discover" element={<Discover />} />
<Route path="shop/skincare" element={<SkinCare />} />
<Route path="shop/fragnance" element={<Fragnance />} />
<Route path="shop/makeup" element={<Makeup />} />
<Route path="shop/hair" element={<Hair />} />
<Route path="details" element={<DetailsPage />} />
<Route path="bucket" element={<Bucket />} />
</Routes>
</div>
);
}
export default App;
It is the MainPage component which just contain a background image and a conitnue button export default function MainPage() { return (
<div>
<div class="text-center" style={{padding:"22%"}}>
<button type="button" class="btn btn-secondary" style={{backgroundColor:"black"}}><Link to="home" style={{color:"white",textDecoration:"none"}}>Conitnue</Link></button>
</div>
</div>
)
}