Toggle navigation
Toggle navigation
This project
Loading...
Sign in
이수빈
/
Find_your_own_personal_color
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
이수빈
2020-12-04 17:58:26 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
785af214af1dea2ca0dd9ec076a412d8ecc30fa5
785af214
1 parent
91b0322e
autumn.js 결과 출력
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
3 deletions
front/.eslintcache
front/src/App.js
front/src/autumn.js
front/.eslintcache
View file @
785af21
This diff is collapsed. Click to expand it.
front/src/App.js
View file @
785af21
...
...
@@ -20,9 +20,9 @@ class App extends Component {
<
Route
path
=
"/test2"
exact
component
=
{
Test2
}
/>
<
Route
path
=
"/test3"
exact
component
=
{
Test3
}
/
>
<
Route
path
=
"/spring"
exact
component
=
{
Spring
}
/
>
<
Route
path
=
"/summer
?ver=0
"
exact
component
=
{
Summer
}
/
>
<
Route
path
=
"/autumn
?ver=0
"
exact
component
=
{
Autumn
}
/
>
<
Route
path
=
"/winter
?ver=0
"
exact
component
=
{
Winter
}
/
>
<
Route
path
=
"/summer"
exact
component
=
{
Summer
}
/
>
<
Route
path
=
"/autumn"
exact
component
=
{
Autumn
}
/
>
<
Route
path
=
"/winter"
exact
component
=
{
Winter
}
/
>
<
/BrowserRouter
>
<
/div
>
)
...
...
front/src/autumn.js
View file @
785af21
import
React
from
'react'
;
import
'./spring.css?ver=1.4'
;
import
autumn
from
'./season/autumn.png'
;
const
Autumn
=
(
{
history
}
)
=>
{
return
(
<
div
className
=
'autumn_class'
>
<
img
src
=
{
autumn
}
width
=
'1300'
height
=
'600'
alt
=
"autumn"
/>
<
div
id
=
"btn_back"
>
<
button
id
=
"back_btn"
onClick
=
{
()
=>
{
history
.
push
(
"/"
)}}
>
back
<
/button
>
<
/div
>
<
/div
>
);
}
export
default
Autumn
;
\ No newline at end of file
...
...
Please
register
or
login
to post a comment