Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions components/PokedexJudgeMobile.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"use client";

import React from "react";
import React, { useState } from "react";
import Image from "next/image";

// SINGLE JUDGE DATA
Expand All @@ -10,7 +10,8 @@ const SINGLE_JUDGE = {
};

const PokedexJudgeMobile: React.FC = () => {
const currentJudge = SINGLE_JUDGE;
// Initialize state directly with default value (no useEffect required)
const [currentJudge] = useState<typeof SINGLE_JUDGE | null>(SINGLE_JUDGE);

return (
<div
Expand All @@ -32,17 +33,21 @@ const PokedexJudgeMobile: React.FC = () => {
<h1
style={{
fontWeight: 400,
fontSize: "128px",
lineHeight: "36px",
letterSpacing: "-0.02em",
color: "#DA0E2F",
width: "284px",
height: "36px",
}}
className="font-pixeboy mb-4 w-full select-none text-center text-[76px] leading-[80px]"
className="select-none text-center mb-4 font-pixeboy"
>
JUDGE
</h1>

{/* Mobile Judge SVG Asset Container (Relative Anchor) */}
<div className="relative w-full h-[580px] mt-6 drop-shadow-[0_15px_30px_rgba(0,0,0,0.5)]">

{/* Base SVG Frame */}
<Image
src="/mobilejudge.svg"
Expand All @@ -55,7 +60,7 @@ const PokedexJudgeMobile: React.FC = () => {
{currentJudge && (
<>
{/* 1. HER PICTURE (Positioned Relative to mobilejudge.svg) */}
<div
<div
className="absolute z-20 flex items-center justify-center pointer-events-none"
style={{
top: "24%", // Vertical alignment relative to SVG frame
Expand Down Expand Up @@ -95,6 +100,6 @@ const PokedexJudgeMobile: React.FC = () => {
</div>
</div>
);
};
}; //fix PR

export default PokedexJudgeMobile;
export default PokedexJudgeMobile;
Loading
Loading