Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김건희
/
OSSW_Weather_Briefing
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
손수민
2022-05-31 20:56:24 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0471c48c03ae6756adef490ffd308b10699c670e
0471c48c
1 parent
343da1a9
[UPDATE] SelectPage Files
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
36 deletions
weather_briefing/src/component/views/SelectPage/SelectPage.js
weather_briefing/src/component/views/SelectPage/SelectPage.js
View file @
0471c48
...
...
@@ -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
>
...
...
Please
register
or
login
to post a comment