Skip to content

Commit

Permalink
Merge pull request #36 from softeerbootcamp4th/fix/backtohome
Browse files Browse the repository at this point in the history
[Fix] 이벤트로 돌아가기 버튼 활성화 및 Mainpage path 변경
  • Loading branch information
minani-0621 authored Aug 13, 2024
2 parents 4322369 + bfe08ef commit fbdf736
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
9 changes: 6 additions & 3 deletions Caecae/src/components/FindingGame/FindingGameResult.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
initFindingGameState,
} from "../../jobs/FindingGame/FindingGameWork";
import { useExistState, store } from "../../shared/Hyundux/index";
import { Link } from "../../shared/Hyunouter";

const FindingGameResult = () => {
const state = useExistState(initFindingGameState);
Expand Down Expand Up @@ -51,9 +52,11 @@ const FindingGameResult = () => {
</div>
<div className="flex-grow"></div>
<div className="bg-[#002C5F] flex justify-center items-center w-10/12 py-[14px] mb-[40px]">
<p className="text-[white] font-bold text-[18px]">
이벤트 홈으로 돌아가기
</p>
<Link to="/findcasper">
<p className="text-[white] font-bold text-[18px]">
이벤트 홈으로 돌아가기
</p>
</Link>
</div>
</div>
</>
Expand Down
8 changes: 4 additions & 4 deletions Caecae/src/components/common/Navigation/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const Navigation: React.FC = () => {
} relative bg-navigation flex justify-center items-center h-16 border-b-4 border-navigationUnderline header`}
>
<div className="absolute left-0 ml-10 logo">
<Link to="/mainpage">
<Link to="/">
<img src="/assets/casperLogo.svg" alt="casperLogo" />
</Link>
</div>
Expand All @@ -43,17 +43,17 @@ const Navigation: React.FC = () => {
before:absolute before:bottom-0 before:left-0 before:w-full before:h-0.5 before:bg-white
before:transform before:transition-transform before:duration-300 before:ease-in-out
${
isActive("/mainpage")
isActive("/")
? "before:scale-x-100"
: "before:scale-x-0 hover:before:scale-x-50"
}
`}
>
<div className="h-full flex items-center">
<Link to="/mainpage">
<Link to="/">
<span
className={`font-bold ${
isActive("/mainpage")
isActive("/")
? "text-white"
: "text-navigationText hover:text-white transition-colors duration-300"
}`}
Expand Down
2 changes: 1 addition & 1 deletion Caecae/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const App = () => {
<div>
<Router>
<Routes>
<Route path="/mainpage" element={<EventInfoLandingPage />} />
<Route path="/" element={<EventInfoLandingPage />} />
<Route path="/findcasper" element={<FindingGameLandingPage />} />
<Route path="/racecasper" element={<RacingGameLandingPage />} />
<Route
Expand Down

0 comments on commit fbdf736

Please sign in to comment.