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
4 changes: 2 additions & 2 deletions src/app/(main)/main/builder/_components/NewGameButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function NewGameButton() {
const router = useRouter();
return (
<div
className="fixed bottom-[88px] flex w-[136px] h-[52px] items-center justify-center
className="fixed bottom-[88px] flex w-[132px] h-[52px] items-center justify-center
gap-1
rounded-[58px] bg-green-500 text-black"
onClick={() => {
Expand All @@ -21,7 +21,7 @@ export default function NewGameButton() {
options={{ size: { width: 24, height: 24 }, color: "black" }}
/>
</div>
<div>새 게임</div>
<div className="title2-sb">새 게임</div>
</div>
);
}
83 changes: 37 additions & 46 deletions src/app/(main)/main/builder/new-game/_components/Thumbnail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function Thumbnail({
<div className="flex flex-row items-center">
<div className="headline-sb text-white">썸네일 (5장 중 1장 선택)</div>
</div>
<div className="flex mt-[12px] h-[75px] border border-gray-600 rounded-[8px]">
<div className="flex mt-[12px] h-[75px] border border-gray-800 rounded-[8px]">
<div className="flex flex-1 flex-col justify-center items-center">
<input
type="file"
Expand All @@ -88,12 +88,12 @@ export default function Thumbnail({
options={{
size: { width: 24, height: 24 },

color: isMaxThumbnail() ? "gray-600" : "white",
color: isMaxThumbnail() ? "gray-600" : "gray-100",
}}
/>
<div
className={`body-md ${
isMaxThumbnail() ? "text-gray-600" : "text-white"
isMaxThumbnail() ? "text-gray-600" : "text-gray-100"
} mt-[2px]`}
>
사진추가
Expand All @@ -113,57 +113,48 @@ export default function Thumbnail({
<div className="body-md text-gray-600 mt-[2px]">AI 생성</div>
</div>
</div>
<Swiper
className="mt-[12px] "
modules={[Navigation]}
navigation
loop
spaceBetween={10}
slidesPerView={1}
>
<div className="flex flex-row gap-[10px] mt-[12px] overflow-x-auto">
{currentThumbnails.map((thumbnail, index) => (
<SwiperSlide key={index}>
<div className="w-full aspect-square relative">
<Image
src={URL.createObjectURL(thumbnail)}
alt="thumbnail"
className=" object-cover rounded-[8px]"
fill
<div className="min-w-[140px] aspect-square relative" key={index}>
<Image
src={URL.createObjectURL(thumbnail)}
alt="thumbnail"
className=" object-cover rounded-[8px]"
fill
/>
<div
className="absolute top-3 right-3 w-[24px] h-[24px] bg-gray-800 rounded-full flex items-center justify-center"
onClick={() => handleDeleteThumbnail(index)}
>
<Svg
icon="xIcon"
options={{
size: { width: 16, height: 16 },
color: "white",
}}
/>
<div
className="absolute top-3 right-3 w-[24px] h-[24px] bg-gray-800 rounded-full flex items-center justify-center"
onClick={() => handleDeleteThumbnail(index)}
>
</div>
{isThumbnailIdx === index ? (
<div className="absolute bottom-3 left-3 w-[28px] h-[28px] rounded-full flex items-center justify-center">
<Svg
icon="xIcon"
icon="checkThumbnailIcon"
options={{
size: { width: 16, height: 16 },
color: "white",
size: { width: 28, height: 28 },
viewBox: "0 0 28 28",
}}
/>
</div>
{isThumbnailIdx === index ? (
<div className="absolute bottom-3 left-3 w-[28px] h-[28px] rounded-full flex items-center justify-center">
<Svg
icon="checkThumbnailIcon"
options={{
size: { width: 28, height: 28 },
viewBox: "0 0 28 28",
}}
/>
</div>
) : (
<div
onClick={() => handleThumbnailClick(index)}
className="absolute bottom-3 left-3 w-[28px] h-[28px] border border-white rounded-full flex items-center justify-center"
>
<div className="w-full h-full bg-black opacity-10 rounded-full"></div>
</div>
)}
</div>
</SwiperSlide>
) : (
<div
onClick={() => handleThumbnailClick(index)}
className="absolute bottom-3 left-3 w-[28px] h-[28px] border border-white rounded-full flex items-center justify-center"
>
<div className="w-full h-full bg-black opacity-10 rounded-full"></div>
</div>
)}
</div>
))}
</Swiper>
</div>
</div>
);
}
2 changes: 1 addition & 1 deletion src/app/(main)/main/builder/new-game/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default function NewGameBuilder() {
bottomSheetData={{
textColor: "white",
bgColor: "gray-800",
borderColor: "gray-600",
borderColor: "gray-800",
}}
currentValue={
GenresKorean[newGame.genre as keyof typeof GenresKorean]
Expand Down
4 changes: 2 additions & 2 deletions src/app/(main)/main/my/profile/_components/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export default function ProfileInput({
title="닉네임"
placeholder="닉네임을 입력해주세요."
value={userData.nickname}
regExp={/^[가-힣ㄱ-ㅎㅏ-ㅣa-zA-Z0-9]{2,30}$/}
maxLength={30}
regExp={/^[가-힣ㄱ-ㅎㅏ-ㅣa-zA-Z0-9]{2,20}$/}
maxLength={20}
onChange={(e: any) => handleInputChange("nickname", e)}
/>
);
Expand Down
2 changes: 1 addition & 1 deletion src/common/DropDown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function DropDown({ values, onChange }: DropDownProps) {
return (
<div
className="
border-[1px] border-gray-700
border-[1px] border-gray-800
w-[116px] rounded-[6px] bg-gray-800
flex absolute justify-center items-center flex-col
py-1
Expand Down
2 changes: 1 addition & 1 deletion src/common/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default function Input({
className={`w-full mt-[12px] bg-transparent
border rounded-[6px]

${isError ? "border-red-500" : "border-gray-600"}
${isError ? "border-red-500" : "border-gray-800"}
outline-none text-white

placeholder:text-body-md
Expand Down
Loading