homepage fixed and merge
This commit is contained in:
parent
cc7652fafe
commit
1b2f4b10ba
4 changed files with 15 additions and 8 deletions
|
|
@ -6,10 +6,10 @@ function Hero() {
|
||||||
return (
|
return (
|
||||||
<section className="hero">
|
<section className="hero">
|
||||||
<div className="hero-text">
|
<div className="hero-text">
|
||||||
<p className="intro">Welcome to BattleSnake!!!</p>
|
<p className="intro">Welcome to Bytecamp!!!</p>
|
||||||
<h1>Play for Fun!</h1>
|
<h1>Play for Fun!</h1>
|
||||||
<p className="desc">
|
<p className="desc">
|
||||||
A competitive game where your code is the controller. All you need is
|
A competitive game where your code is the controller.<br /> All you need is
|
||||||
a web server that responds to the Battlesnake API.
|
a web server that responds to the Battlesnake API.
|
||||||
</p>
|
</p>
|
||||||
<button className="cta">Start Battle</button>
|
<button className="cta">Start Battle</button>
|
||||||
|
|
|
||||||
|
|
@ -22,17 +22,16 @@ const AppRouter = () => {
|
||||||
{/* <Header /> */}
|
{/* <Header /> */}
|
||||||
<Navbar />
|
<Navbar />
|
||||||
<Routes>
|
<Routes>
|
||||||
|
|
||||||
<Route
|
<Route
|
||||||
path="/"
|
path="/"
|
||||||
element={
|
element={
|
||||||
// <ProtectedRoute>
|
<>
|
||||||
|
|
||||||
<Hero />
|
<Hero />
|
||||||
|
<Services />
|
||||||
// </ProtectedRoute>
|
</>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
{/* <Services /> */}
|
|
||||||
<Route path="login" element={<LoginPage />} />
|
<Route path="login" element={<LoginPage />} />
|
||||||
<Route
|
<Route
|
||||||
path="editor"
|
path="editor"
|
||||||
|
|
@ -44,7 +43,7 @@ const AppRouter = () => {
|
||||||
/>
|
/>
|
||||||
<Route path="*" element={<PageNotFound />} />
|
<Route path="*" element={<PageNotFound />} />
|
||||||
</Routes>
|
</Routes>
|
||||||
<Services />
|
|
||||||
<Footer />
|
<Footer />
|
||||||
</div>
|
</div>
|
||||||
</BrowserRouter>
|
</BrowserRouter>
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,12 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding: 4rem 3rem;
|
padding: 4rem 3rem;
|
||||||
background-color: #f9f5f2;
|
background-color: #f9f5f2;
|
||||||
|
padding-top: 40rem;
|
||||||
|
|
||||||
|
|
||||||
.hero-text {
|
.hero-text {
|
||||||
max-width: 50%;
|
max-width: 50%;
|
||||||
|
margin-left: 3rem;
|
||||||
// font-family: "Limelight", sans-serif;
|
// font-family: "Limelight", sans-serif;
|
||||||
|
|
||||||
.intro {
|
.intro {
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,11 @@
|
||||||
padding: 1rem 2rem;
|
padding: 1rem 2rem;
|
||||||
color: white;
|
color: white;
|
||||||
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
|
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 1000;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
&__logo {
|
&__logo {
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue