-
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 pull request #15 from junction-asia-2023/feat/home-preview
feat(home): Add home active
- Loading branch information
Showing
11 changed files
with
222 additions
and
29 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.
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { FunctionComponent } from 'react'; | ||
import { useNavigate } from 'react-router-dom'; | ||
|
||
import rightIcon from '/svg/right.svg'; | ||
import eventIcon from '/svg/event.svg'; | ||
|
||
import { URL } from '../../shared/constants/url'; | ||
|
||
const Event: FunctionComponent = () => { | ||
const navigate = useNavigate(); | ||
const handleEventClick = () => navigate(URL.event); | ||
|
||
return ( | ||
<section className="preview-box" onClick={handleEventClick}> | ||
<div className="icon-box"> | ||
<img className="icon" src={eventIcon} alt="event icon" /> | ||
</div> | ||
<div className="content"> | ||
<div className="title">Event</div> | ||
</div> | ||
<div> | ||
<img src={rightIcon} alt="next" /> | ||
</div> | ||
</section> | ||
); | ||
}; | ||
|
||
export default Event; |
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,17 @@ | ||
import { FunctionComponent } from 'react'; | ||
|
||
const Footer: FunctionComponent = () => { | ||
const handleDescriptionClick = () => { | ||
window.location.href = 'https://www.naver.com'; | ||
}; | ||
|
||
return ( | ||
<div className="footer-box"> | ||
<div className="description" onClick={handleDescriptionClick}> | ||
Do you need to modify information? | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Footer; |
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,28 @@ | ||
import { FunctionComponent } from 'react'; | ||
import { useNavigate } from 'react-router-dom'; | ||
|
||
import rightIcon from '/svg/right.svg'; | ||
import previewIcon from '/svg/preview.svg'; | ||
|
||
import { URL } from '../../shared/constants/url'; | ||
|
||
const Preview: FunctionComponent = () => { | ||
const navigate = useNavigate(); | ||
const handlePreviewClick = () => navigate(URL.preview); | ||
|
||
return ( | ||
<section className="preview-box" onClick={handlePreviewClick}> | ||
<div className="icon-box"> | ||
<img className="icon" src={previewIcon} alt="preview icon" /> | ||
</div> | ||
<div className="content"> | ||
<div className="title">CardMe Preview</div> | ||
</div> | ||
<div> | ||
<img src={rightIcon} alt="next" /> | ||
</div> | ||
</section> | ||
); | ||
}; | ||
|
||
export default Preview; |
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,28 @@ | ||
import { FunctionComponent } from 'react'; | ||
import { useNavigate } from 'react-router-dom'; | ||
|
||
import rightIcon from '/svg/right.svg'; | ||
import scheduleIcon from '/svg/schedule.svg'; | ||
|
||
import { URL } from '../../shared/constants/url'; | ||
|
||
const Schedule: FunctionComponent = () => { | ||
const navigate = useNavigate(); | ||
const handleScheduleClick = () => navigate(URL.schedule); | ||
|
||
return ( | ||
<section className="preview-box" onClick={handleScheduleClick}> | ||
<div className="icon-box"> | ||
<img className="icon" src={scheduleIcon} alt="schedule icon" /> | ||
</div> | ||
<div className="content"> | ||
<div className="title">Schedule</div> | ||
</div> | ||
<div> | ||
<img src={rightIcon} alt="next" /> | ||
</div> | ||
</section> | ||
); | ||
}; | ||
|
||
export default Schedule; |
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