손수민

[UPDATE] SelectPage Files

......@@ -3,6 +3,18 @@ import "../style/SelectPage.scss"
function SelectPage(props) {
const today = new Date();
const today_year = today.getFullYear();
const today_month = today.getMonth();
const today_date = today.getDate();
const tomorrow = new Date(today.setDate(today.getDate() + 1));
const tomorrow_year = tomorrow.getFullYear();
const tomorrow_month = tomorrow.getMonth();
const tomorrow_date = tomorrow.getDate();
const [Time, setTime] = useState("00:00:00");
const currentTime = () => {
......@@ -19,40 +31,6 @@ function SelectPage(props) {
startTimer()
const location = useCallback((event) => { //위치
});
const today_date = useCallback((event) => { //오늘 일자
});
const today_weather = useCallback((event) => { //오늘 날씨
});
const today_curtemp = useCallback((event) => { //오늘 현재 온도
});
const today_maxtemp = useCallback((event) => { //오늘 최고 온도
});
const today_mintemp = useCallback((event) => { //오늘 최저 온도
});
const tomorrow_date = useCallback((event) => { //내일 일자
});
const tomorrow_weather = useCallback((event) => { //내일 날씨
});
const tomorrow_curtemp = useCallback((event) => { //내일 현재 온도
});
const tomorrow_maxtemp = useCallback((event) => { //내일 최고 온도
});
const tomorrow_mintemp = useCallback((event) => { //내일 최저 온도
});
return (
<>
<dir id = "header">
......@@ -75,7 +53,7 @@ function SelectPage(props) {
<dir className="today_weather">
<dir className="days">
<h1 id="today">오늘의 날씨</h1>
<h2 id="day">2022 5 12</h2>
<h2 id="day">{today_year} {today_month + 1} {today_date}</h2>
</dir>
<dir className="weather">
<h1 id="present_do">14</h1>
......@@ -85,7 +63,7 @@ function SelectPage(props) {
<dir className="tomorrow_weather">
<dir className="days">
<h1 id="today">내일의 날씨</h1>
<h2 id="day">2022 5 13</h2>
<h2 id="day">{tomorrow_year} {tomorrow_month + 1} {tomorrow_date}</h2>
</dir>
<dir className="weather">
<h1 id="present_do">50</h1>
......