Project Edits
Project Edits
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 56.25vw;
min-height: 100%;
min-width: 177.78vh;
}
.slogan {
position: fixed;
top: 50%; /* Position it 50% from the top */
left: 50%; /* Position it 50% from the left */
transform: translate(-50%, -50%); /* Center it both horizontally and vertically
*/
z-index: 2; /* Place it above the video (z-index: 1) */
color: white; /* Set the text color */
font-size: 50px; /* Adjust the font size as needed */
text-align: center; /* Center-align the text */
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add a shadow for readability
*/
font-family: Arial, sans-serif; /* Set the font to Arial */
}
return (
<div className="homePage">
<video src={videoBg} autoPlay loop muted/>
<h2 className="slogan">"Every Service at Your Fingertips."</h2>
</div>
)
}
function App() {
// return (
// <>
// <NavBar/>
// <div className="App">
// <Routes>
// <Route path="/" element={<MainPage />} />
// {/* <Route path="/watchlist" element={<Watchlist />} />
// <Route path="/history" element={<History />} /> */}
// </Routes>
// </div>
// </>
// );
import NavBar from "./components/NavBar";
import MainPage from "./pages/MainPage";
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";
import "./App.css";
function App() {
// return (
// <>
// <NavBar/>
// <div className="App">
// <Routes>
// <Route path="/" element={<MainPage />} />
// {/* <Route path="/watchlist" element={<Watchlist />} />
// <Route path="/history" element={<History />} /> */}
// </Routes>
// </div>
// </>
// );
return (
<div className="App">
<NavBar />
<Router>
<Routes>
<Route path="/" element={<MainPage />} />
</Routes>
</Router>
</div>
);
}