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
c7ba1e48
Commit
c7ba1e48
authored
Jul 27, 2022
by
Jiwon Yoon
Browse files
footer 넣어봄
parent
c0c4f931
Changes
6
Hide whitespace changes
Inline
Side-by-side
frontend/src/App.tsx
View file @
c7ba1e48
import
React
from
"
react
"
;
import
{
Outlet
}
from
"
react-router-dom
"
;
import
{
AuthProvider
}
from
"
./auth/auth.context
"
;
import
{
Header
}
from
"
./commons
"
;
import
{
Footer
,
Header
}
from
"
./commons
"
;
const
App
=
()
=>
(
<
AuthProvider
>
<
Header
/>
<
Outlet
/>
<
div
style
=
{
{
minHeight
:
"
80vh
"
}
}
>
<
Outlet
/>
</
div
>
<
Footer
/>
</
AuthProvider
>
);
...
...
frontend/src/answers/AnswerSurveyForm.tsx
View file @
c7ba1e48
...
...
@@ -89,7 +89,7 @@ export const AnswerSurveyForm = () => {
const
newAnswer
:
AnswerType
=
await
answerApi
.
saveAnswers
(
formData
);
console
.
log
(
newAnswer
);
sessionStorage
.
setItem
(
`survey_
${
surveyId
}
`
,
surveyId
??
""
);
navigate
(
"
/survey/complete
"
);
navigate
(
"
/survey/complete
"
,
{
replace
:
false
}
);
setSuccess
(
true
);
setError
(
""
);
...
...
frontend/src/auth/Login.tsx
View file @
c7ba1e48
...
...
@@ -36,7 +36,7 @@ export const Login = () => {
}
return
(
<
div
className
=
"flex flex-col items-center
mt-5
"
>
<
div
className
=
"flex flex-col items-center"
>
<
div
className
=
"text-2xl mt-20"
>
로그인
</
div
>
<
form
onSubmit
=
{
handleSubmit
}
className
=
"flex flex-col mt-3 w-80"
>
<
label
className
=
"block text-gray-700 text-sm font-bold mb-2 mt-3"
>
...
...
frontend/src/auth/SignUp.tsx
View file @
c7ba1e48
...
...
@@ -68,7 +68,7 @@ export const SignUp = () => {
return
(
<
div
className
=
"flex flex-col items-center"
>
<
div
className
=
"text-2xl mt-1
4
"
>
회원가입
</
div
>
<
div
className
=
"text-2xl mt-1
0
"
>
회원가입
</
div
>
<
form
onSubmit
=
{
handleSubmit
}
className
=
"flex flex-col mt-3 w-80"
>
<
label
className
=
"block text-gray-700 text-sm font-bold mb-2 mt-3"
>
이름
...
...
frontend/src/commons/Footer.tsx
0 → 100644
View file @
c7ba1e48
import
React
from
"
react
"
;
export
const
Footer
=
()
=>
{
return
(
<
div
className
=
"flex justify-center mt-5 py-1 bg-gray-100"
>
<
p
className
=
"text-gray-500"
>
Copyright © 2022 Simple Survey Form. All rights reserved.
</
p
>
</
div
>
);
};
frontend/src/commons/index.tsx
View file @
c7ba1e48
export
{
Header
}
from
"
./Header
"
;
export
{
Footer
}
from
"
./Footer
"
;
export
{
QUESTION_TYPES
}
from
"
./constants
"
;
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