-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/schedule-page
- Loading branch information
Showing
17 changed files
with
414 additions
and
22 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
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.
File renamed without changes
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,31 @@ | ||
import { FunctionComponent } from 'react'; | ||
|
||
import useEventContainer from './hooks/useEventContainer'; | ||
|
||
import giftLogo from '/svg/gift1.svg'; | ||
import giftOpenLogo from '/svg/gift2.svg'; | ||
import './event.scss'; | ||
|
||
const EventContainer: FunctionComponent = () => { | ||
const { open, handleImageClick } = useEventContainer(); | ||
return ( | ||
<div className="event-container"> | ||
<div className="wrap"> | ||
<div className="content"> | ||
<span className="label">JUNCTION Event</span> | ||
<div className="title"> | ||
Who is the lucky one who got the winning gift? | ||
</div> | ||
</div> | ||
<div className="gift" onClick={handleImageClick}> | ||
<img src={open ? giftOpenLogo : giftLogo} alt="gift" /> | ||
</div> | ||
<div className="description"> | ||
Press the gift box and check the winning results | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default EventContainer; |
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,53 @@ | ||
.event-container { | ||
height: calc(100vh - 77px); | ||
|
||
.wrap { | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
.content { | ||
padding-top: 183px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
|
||
.label { | ||
color: #ffffff; | ||
background-color: #000000; | ||
padding: 3px 8px; | ||
font-size: 14px; | ||
font-weight: 500; | ||
line-height: 24px; | ||
letter-spacing: 0em; | ||
text-align: center; | ||
} | ||
.title { | ||
padding: 8px 0px 24px 0px; | ||
font-size: 24px; | ||
font-weight: 700; | ||
line-height: 36px; | ||
letter-spacing: 0em; | ||
text-align: center; | ||
} | ||
} | ||
.gift { | ||
cursor: pointer; | ||
|
||
:hover { | ||
// TODO: 좌우 애니메이션 | ||
} | ||
} | ||
.description { | ||
padding-top: 14px; | ||
color: #9797AE; | ||
font-size: 14px; | ||
font-weight: 400; | ||
line-height: 24px; | ||
letter-spacing: 0em; | ||
text-align: center; | ||
} | ||
} | ||
} |
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,24 @@ | ||
import { useAtom } from 'jotai'; | ||
import { useLayoutEffect, useState } from 'react'; | ||
|
||
import { titleAtom } from '../../shared/layout/atom'; | ||
|
||
const useEventContainer = () => { | ||
const [open, setOpen] = useState(false); | ||
const [, setTitle] = useAtom(titleAtom); | ||
|
||
useLayoutEffect(() => { | ||
setTitle({ back: true, title: 'Event' }); | ||
}, []); | ||
|
||
const handleImageClick = () => { | ||
setOpen(true); | ||
}; | ||
|
||
return { | ||
open, | ||
handleImageClick, | ||
}; | ||
}; | ||
|
||
export default useEventContainer; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
import { defineConfig } from 'vite' | ||
import react from '@vitejs/plugin-react' | ||
import { defineConfig } from 'vite'; | ||
import react from '@vitejs/plugin-react'; | ||
|
||
import { homepage } from './package.json'; | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: [react()], | ||
}) | ||
export default defineConfig(({ mode }) => { | ||
return { | ||
plugins: [react()], | ||
base: mode === 'production' ? homepage : '/', | ||
}; | ||
}); |
Oops, something went wrong.