-
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 #104 from GDG-Hackathon-77ia/feature#101
로고, 메인 캐릭터 추가
- Loading branch information
Showing
18 changed files
with
75 additions
and
27 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,17 +1,27 @@ | ||
import level1Gift from "@/assets/logo/level1.gif"; | ||
import level2Gift from "@/assets/logo/level2.gif"; | ||
import level3Gift from "@/assets/logo/level3.gif"; | ||
|
||
import * as Styles from "./index.style"; | ||
|
||
export interface CharacterBGProps { | ||
width: string; | ||
height: string; | ||
|
||
imageUrl: string; | ||
onClick?: () => void; | ||
level?: number; | ||
} | ||
|
||
export const CharacterBG = ({ width, height, imageUrl, onClick }: CharacterBGProps) => { | ||
export const CharacterBG = ({ width, height, onClick, level }: CharacterBGProps) => { | ||
const levelGifList: { [key: number]: string } = { | ||
1: level1Gift, | ||
2: level2Gift, | ||
3: level3Gift, | ||
}; | ||
|
||
return ( | ||
<Styles.Container width={width} height={height} onClick={onClick}> | ||
<Styles.Character src={imageUrl} alt="character" /> | ||
<Styles.Character src={levelGifList[level ?? 1]} alt="character" /> | ||
</Styles.Container> | ||
); | ||
}; |
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
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 |
---|---|---|
@@ -1,14 +1,25 @@ | ||
import level1Gift from "@/assets/logo/level1.gif"; | ||
import level2Gift from "@/assets/logo/level2.gif"; | ||
import level3Gift from "@/assets/logo/level3.gif"; | ||
|
||
import * as Styles from "./index.style"; | ||
|
||
export interface TempProps { | ||
width: string; | ||
height: string; | ||
level?: number; | ||
} | ||
|
||
export const Temp = (props: TempProps) => { | ||
const levelGifList: { [key: number]: string } = { | ||
1: level1Gift, | ||
2: level2Gift, | ||
3: level3Gift, | ||
}; | ||
|
||
return ( | ||
<Styles.TempElement width={props.width} height={props.height}> | ||
캐릭터 | ||
<Styles.TempImg src={levelGifList[props.level ?? 1]} alt="temp" /> | ||
</Styles.TempElement> | ||
); | ||
}; |
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
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