Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
survey
Commits
742c5abc
Commit
742c5abc
authored
Jun 24, 2022
by
jang dong hyeok
Browse files
Merge branch 'Jiwon' into JangDH
parents
b0c694bf
8232407d
Changes
4
Hide whitespace changes
Inline
Side-by-side
frontend/src/App.tsx
View file @
742c5abc
import
React
from
"
react
"
;
import
HomePage
from
"
./Pages/HomePage
"
;
// import LoginPage from "./Pages/LoginPage";
// import SignUpPage from "./Pages/SignUpPage";
import
{
BrowserRouter
,
Route
,
Routes
}
from
"
react-router-dom
"
;
import
"
tailwindcss/tailwind.css
"
;
export
const
App
=
()
=>
{
return
(
<
div
className
=
"text-slate-300 bg-red-600 text-3xl font-bold underline"
>
App 안녕하세요.
</
div
>
<
BrowserRouter
>
<
Routes
>
<
Route
path
=
"/"
element
=
{
<
HomePage
/>
}
>
{
/* <Route path="login" element={<LoginPage />} />
<Route path="signup" element={<SignUpPage />} /> */
}
</
Route
>
</
Routes
>
</
BrowserRouter
>
);
};
frontend/src/Pages/HomePage.tsx
0 → 100644
View file @
742c5abc
import
React
from
"
react
"
;
import
"
tailwindcss/tailwind.css
"
;
type
HomeProps
=
{
title
?:
string
;
};
const
HomePage
=
({
title
=
"
Simple Survey Form
"
}:
HomeProps
)
=>
(
<
div
className
=
"text-slate-300 text-3xl font-bold"
>
{
title
}
</
div
>
);
export
default
HomePage
;
\ No newline at end of file
frontend/src/Pages/LoginPage.tsx
0 → 100644
View file @
742c5abc
import
React
from
"
react
"
;
import
"
tailwindcss/tailwind.css
"
;
type
LoginProps
=
{
};
const
LoginPage
=
({
}:
LoginProps
)
=>
(
<
div
className
=
"text-slate-300 text-3xl font-bold"
>
로그인페이지
</
div
>
);
export
default
LoginPage
;
\ No newline at end of file
frontend/src/Pages/SignUpPage.tsx
0 → 100644
View file @
742c5abc
import
React
from
"
react
"
;
import
"
tailwindcss/tailwind.css
"
;
type
SignUpProps
=
{
};
const
SignUpPage
=
({
}:
SignUpProps
)
=>
(
<
div
className
=
"text-slate-300 text-3xl font-bold"
>
회원가입페이지
</
div
>
);
export
default
SignUpPage
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment