-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from KTwizviz/WV-40-main-page-refactor
➕ [WV-40] refactor : main page refactor
- Loading branch information
Showing
18 changed files
with
311 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export const getKtwizRank = async (): Promise<GetKtwizRank> => { | ||
try { | ||
const response = await fetch("/api/game/ktwizteamrank"); | ||
|
||
if (!response.ok) { | ||
throw new Error("Network response was not ok"); | ||
} | ||
|
||
const result = await response.json(); | ||
return result.data.ktWizTeamRank; | ||
} catch (error) { | ||
console.error("API 요청 에러:", error); | ||
throw error; | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { useRouter } from "next/navigation"; | ||
import Image from "next/image"; | ||
import { parking_banner } from "@/assets/images/@index"; | ||
import { ChevronRight } from "lucide-react"; | ||
|
||
const Parking = () => { | ||
const router = useRouter(); | ||
|
||
return ( | ||
<div className="relative h-[280px] rounded-[20px] overflow-hidden"> | ||
<Image | ||
src={parking_banner} | ||
alt="parking reservaion" | ||
width={540} | ||
height={190} | ||
className="cursor-pointer block" | ||
onClick={() => { | ||
router.push("/wizpark/parking"); | ||
}} | ||
/> | ||
<div className="absolute w-[540px] h-[190px] inset-0 px-10 pt-4 flex flex-col justify-center mr-10"> | ||
<p className="text-l text-SYSTEM-main font-medium mb-2"> | ||
수원 케이터 워즈 파크 | ||
</p> | ||
<h1 className="text-2xl font-medium mb-6">사전 주차 예약제 안내</h1> | ||
<button | ||
onClick={() => router.push("/parking/reserve")} | ||
className="flex items-center gap-2 text-l hover:gap-4 transition-all w-fit" | ||
> | ||
사전주차 예약하기 | ||
<ChevronRight size={20} /> | ||
</button> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Parking; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.