-
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 #19 from kdt-8-4/develop
[Feat]weather_req(#10)
- Loading branch information
Showing
11 changed files
with
210 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"use client"; | ||
import Menubar from "@/component/MenuBar" | ||
import WeatherBar from "@/component/WeatherBar" | ||
|
||
export default function Feed(){ | ||
|
||
|
||
|
||
return(<> | ||
<div className="container"> | ||
<div id="search"></div> | ||
<WeatherBar /> | ||
<div id="category"></div> | ||
<div id="feed_img"> | ||
|
||
</div> | ||
|
||
</div> | ||
</>) | ||
} |
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,25 @@ | ||
"use client"; | ||
import Menubar from "@/component/MenuBar"; | ||
import WeatherBar from "@/component/WeatherBar"; | ||
import CloseIcon from "@mui/icons-material/Close"; | ||
import "../../style/upload.scss"; | ||
|
||
export default function Upload(): JSX.Element { | ||
return ( | ||
<div className="container"> | ||
<header> | ||
<div className="top"> | ||
<CloseIcon id="x" /> | ||
<h3>등록하기</h3> | ||
<span>완료</span> | ||
</div> | ||
<WeatherBar /> | ||
</header> | ||
<section className="main"></section> | ||
|
||
<footer> | ||
<Menubar /> | ||
</footer> | ||
</div> | ||
); | ||
} |
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,30 +1,42 @@ | ||
import { useRouter } from "next/navigation"; | ||
import "../style/menubar.scss"; | ||
import HomeOutlinedIcon from "@mui/icons-material/HomeOutlined"; | ||
import AddBoxOutlinedIcon from "@mui/icons-material/AddBoxOutlined"; | ||
import CheckroomOutlinedIcon from "@mui/icons-material/CheckroomOutlined"; | ||
import PersonOutlineOutlinedIcon from "@mui/icons-material/PersonOutlineOutlined"; | ||
|
||
export default function Menubar() { | ||
const router = useRouter(); // useRouter 훅을 사용하여 router 객체 가져오기 | ||
const goto_home = () => { | ||
router.push("/"); // '/'로 페이지 이동 | ||
}; | ||
const goto_feed = () => { | ||
router.push("/feed"); // '/feed'로 페이지 이동 | ||
}; | ||
const goto_upload = () => { | ||
router.push("/upload"); // '/upload'로 페이지 이동 | ||
}; | ||
const goto_myPage = () => { | ||
router.push("/mypage"); // '/mypage'로 페이지 이동 | ||
}; | ||
return ( | ||
<> | ||
<footer> | ||
<div className="menu_box"> | ||
<HomeOutlinedIcon className="menu_icon" /> | ||
<span>홈</span> | ||
</div> | ||
<div className="menu_box"> | ||
<CheckroomOutlinedIcon className="menu_icon" /> | ||
<span>구경</span> | ||
</div> | ||
<div className="menu_box"> | ||
<AddBoxOutlinedIcon className="menu_icon" /> | ||
<span>업로드</span> | ||
</div> | ||
<div className="menu_box"> | ||
<PersonOutlineOutlinedIcon className="menu_icon" /> | ||
<span>마이페이지</span> | ||
</div> | ||
</footer> | ||
</> | ||
<div className="menubar"> | ||
<div className="menu_box" onClick={goto_home}> | ||
<HomeOutlinedIcon className="menu_icon" /> | ||
<span>홈</span> | ||
</div> | ||
<div className="menu_box" onClick={goto_feed}> | ||
<CheckroomOutlinedIcon className="menu_icon" /> | ||
<span>구경</span> | ||
</div> | ||
<div className="menu_box" onClick={goto_upload}> | ||
<AddBoxOutlinedIcon className="menu_icon" /> | ||
<span>업로드</span> | ||
</div> | ||
<div className="menu_box" onClick={goto_myPage}> | ||
<PersonOutlineOutlinedIcon className="menu_icon" /> | ||
<span>마이페이지</span> | ||
</div> | ||
</div> | ||
); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@import "_util.scss"; | ||
|
||
.container { | ||
font-family: "EASTARJET-Medium"; | ||
font-weight: 600; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
align-items: center; | ||
} | ||
|
||
header { | ||
width: 100%; | ||
} | ||
.top { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
footer { | ||
width: 100%; | ||
} | ||
|
||
@media only screen and (min-width: 320px) and (max-width: 768px) { | ||
.container { | ||
width: 100%; | ||
} | ||
} |
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