Commit c7ba1e48 authored by Jiwon Yoon's avatar Jiwon Yoon
Browse files

footer 넣어봄

parent c0c4f931
import React from "react"; import React from "react";
import { Outlet } from "react-router-dom"; import { Outlet } from "react-router-dom";
import { AuthProvider } from "./auth/auth.context"; import { AuthProvider } from "./auth/auth.context";
import { Header } from "./commons"; import { Footer, Header } from "./commons";
const App = () => ( const App = () => (
<AuthProvider> <AuthProvider>
<Header /> <Header />
<Outlet /> <div style={{ minHeight: "80vh" }}>
<Outlet />
</div>
<Footer />
</AuthProvider> </AuthProvider>
); );
......
...@@ -89,7 +89,7 @@ export const AnswerSurveyForm = () => { ...@@ -89,7 +89,7 @@ export const AnswerSurveyForm = () => {
const newAnswer: AnswerType = await answerApi.saveAnswers(formData); const newAnswer: AnswerType = await answerApi.saveAnswers(formData);
console.log(newAnswer); console.log(newAnswer);
sessionStorage.setItem(`survey_${surveyId}`, surveyId ?? ""); sessionStorage.setItem(`survey_${surveyId}`, surveyId ?? "");
navigate("/survey/complete"); navigate("/survey/complete", { replace: false });
setSuccess(true); setSuccess(true);
setError(""); setError("");
......
...@@ -36,7 +36,7 @@ export const Login = () => { ...@@ -36,7 +36,7 @@ export const Login = () => {
} }
return ( return (
<div className="flex flex-col items-center mt-5"> <div className="flex flex-col items-center">
<div className="text-2xl mt-20">로그인</div> <div className="text-2xl mt-20">로그인</div>
<form onSubmit={handleSubmit} className="flex flex-col mt-3 w-80"> <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"> <label className="block text-gray-700 text-sm font-bold mb-2 mt-3">
......
...@@ -68,7 +68,7 @@ export const SignUp = () => { ...@@ -68,7 +68,7 @@ export const SignUp = () => {
return ( return (
<div className="flex flex-col items-center"> <div className="flex flex-col items-center">
<div className="text-2xl mt-14">회원가입</div> <div className="text-2xl mt-10">회원가입</div>
<form onSubmit={handleSubmit} className="flex flex-col mt-3 w-80"> <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"> <label className="block text-gray-700 text-sm font-bold mb-2 mt-3">
이름 이름
......
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>
);
};
export { Header } from "./Header"; export { Header } from "./Header";
export { Footer } from "./Footer";
export { QUESTION_TYPES } from "./constants"; export { QUESTION_TYPES } from "./constants";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment