diff --git a/src/index.css b/src/index.css index 4b7d0568..74959ef8 100644 --- a/src/index.css +++ b/src/index.css @@ -19,4 +19,10 @@ font-weight: normal; font-style: normal; } - \ No newline at end of file + +@layer utilities{ + .bg-myGradient { + background: linear-gradient(45deg, #96d8bf 0 30%, #D4EBE2 0 100% ); + background-size: 400% 400%; + } +} diff --git a/src/pages/MainPage/GameRoomList.tsx b/src/pages/MainPage/GameRoomList.tsx index b4c2ad2f..8a2d8bd4 100644 --- a/src/pages/MainPage/GameRoomList.tsx +++ b/src/pages/MainPage/GameRoomList.tsx @@ -7,7 +7,7 @@ import PrivateRoomModal from './PrivateRoomModal'; const GAME_ROOM_LIST_CATEGORY = ['방 번호', '방 제목', '게임 모드', '인원수']; -interface GameRoomListProps { +interface GameRoomListProps extends React.HTMLAttributes { data: I_ChangeGameRoomData[]; selectedGameMode: FilteredGameModeType; } @@ -42,7 +42,7 @@ const GameRoomList = ({ data, selectedGameMode }: GameRoomListProps) => {
  • -
      +
        {filteredRoomList.map((roomData) => ( setIsOpen(true) - : () => mutateEnterGameRoom({ roomId: id }) - } - className='h-[5rem] flex items-center shrink-0 w-full py-[1rem] bg-gray-10 hover:bg-coral-50 cursor-pointer'> - {`No.${id}`} - -
        - {isPrivate && } - - {title} +
        +
      • setIsOpen(true) + : () => mutateEnterGameRoom({ roomId: id }) + } + className='h-[5rem] flex items-center shrink-0 w-full py-[1rem] bg-gray-10 cursor-pointer + [clip-path:polygon(97%_0%,100%_50%,97%_100%,0%_100%,0%_0%)] + hover:bg-myGradient hover:animate-gameRoomList'> + {`No.${id}`} + +
        + {isPrivate && } + + {title} + +
        + + + {MODE_TYPE[gameMode]} -
      • - - {MODE_TYPE[gameMode]} - - {`${currentPlayer}/${maxPlayer}`} - + + {`${currentPlayer}/${maxPlayer}`} + +
        ); }; diff --git a/src/pages/MainPage/MainPage.tsx b/src/pages/MainPage/MainPage.tsx index 4cc3f7a2..c2694cf6 100644 --- a/src/pages/MainPage/MainPage.tsx +++ b/src/pages/MainPage/MainPage.tsx @@ -51,7 +51,7 @@ const MainPage = () => { return (
        -
        +
        { />
        -
        +
        {gameModeList.map((el) => ( setSelectedGameMode(el)}> {mappedGameModeList[el]} @@ -82,7 +82,7 @@ const MainPage = () => { ))}
        -
        +
        방 만들기
        @@ -92,6 +92,7 @@ const MainPage = () => { )} diff --git a/src/pages/MainPage/UserCard.tsx b/src/pages/MainPage/UserCard.tsx index 26db7f3f..730326bc 100644 --- a/src/pages/MainPage/UserCard.tsx +++ b/src/pages/MainPage/UserCard.tsx @@ -14,7 +14,7 @@ interface UserCardProps { const UserCard = ({ //테스트용으로 기본값 추가해두었습니다. nickname, - userImage = 'https://images.unsplash.com/photo-1492633423870-43d1cd2775eb?&w=128&h=128&dpr=2&q=80', + userImage = 'https://cdn.pixabay.com/photo/2019/10/24/19/51/dino-4575130_1280.png', userImageFallbackDelay = 6000, rank, isGuest, diff --git a/tailwind.config.js b/tailwind.config.js index 8571306e..3ea4dcd9 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -33,6 +33,14 @@ export default { opacity: 1, }, }, + gameRoomList: { + '0%': { + backgroundPosition: '100% 50%', + }, + '100%': { + backgroundPosition: '0 50%', + }, + }, blinkTimer: { '50%': { color: 'red' }, }, @@ -75,6 +83,7 @@ export default { neonRight: 'neonRight 1s linear infinite 0.25s', neonBottom: 'neonBottom 1s linear infinite 0.5s', neonLeft: 'neonLeft 1s linear infinite 0.75s', + gameRoomList: 'gameRoomList ease-in 0.5s forwards', }, backgroundImage: { 'gradient-radial':