From 1b2f4b10ba90372d60d257b11d195d247b7e2634 Mon Sep 17 00:00:00 2001 From: Jae Young Ahn Date: Thu, 17 Apr 2025 14:08:33 -0700 Subject: [PATCH] homepage fixed and merge --- src/components/Hero.jsx | 4 ++-- src/routers/AppRouter.jsx | 11 +++++------ src/scss/components/Hero.scss | 3 +++ src/scss/components/_navbar.scss | 5 +++++ 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/components/Hero.jsx b/src/components/Hero.jsx index d23c456..8eb0022 100644 --- a/src/components/Hero.jsx +++ b/src/components/Hero.jsx @@ -6,10 +6,10 @@ function Hero() { return (
-

Welcome to BattleSnake!!!

+

Welcome to Bytecamp!!!

Play for Fun!

- A competitive game where your code is the controller. All you need is + A competitive game where your code is the controller.
All you need is a web server that responds to the Battlesnake API.

diff --git a/src/routers/AppRouter.jsx b/src/routers/AppRouter.jsx index cff1ce3..f1b5ffa 100644 --- a/src/routers/AppRouter.jsx +++ b/src/routers/AppRouter.jsx @@ -22,17 +22,16 @@ const AppRouter = () => { {/*
*/} + - + <> - - // + + } /> - {/* */} } /> { /> } /> - +
diff --git a/src/scss/components/Hero.scss b/src/scss/components/Hero.scss index b1cec79..3d2ab1c 100644 --- a/src/scss/components/Hero.scss +++ b/src/scss/components/Hero.scss @@ -4,9 +4,12 @@ align-items: center; padding: 4rem 3rem; background-color: #f9f5f2; + padding-top: 40rem; + .hero-text { max-width: 50%; + margin-left: 3rem; // font-family: "Limelight", sans-serif; .intro { diff --git a/src/scss/components/_navbar.scss b/src/scss/components/_navbar.scss index b68ac54..73679f9 100644 --- a/src/scss/components/_navbar.scss +++ b/src/scss/components/_navbar.scss @@ -6,6 +6,11 @@ padding: 1rem 2rem; color: white; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); + position: fixed; + top: 0; + left: 0; + z-index: 1000; + width: 100%; &__logo { font-size: 1.5rem;