From 921359ad71b254989598b927154c2999540445da Mon Sep 17 00:00:00 2001 From: icurfer Date: Sun, 18 May 2025 01:58:01 +0900 Subject: [PATCH] =?UTF-8?q?=ED=9A=8C=EC=9B=90=EA=B0=80=EC=9E=85=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.js | 2 + src/components/Footer.js | 22 +++------ src/components/Navbar.js | 45 +++++++++++------- src/context/AuthContext.js | 13 +++++- src/pages/About.js | 24 +++++----- src/pages/Home.js | 4 +- src/pages/Login.js | 77 +++++++++++++++++------------- src/pages/Register.js | 95 ++++++++++++++++++++++++++++++++++++++ src/utils/jwt.js | 10 ++++ version | 2 +- 10 files changed, 211 insertions(+), 83 deletions(-) create mode 100644 src/pages/Register.js create mode 100644 src/utils/jwt.js diff --git a/src/App.js b/src/App.js index 6b14796..d4f5200 100644 --- a/src/App.js +++ b/src/App.js @@ -10,6 +10,7 @@ import PostCreate from "./pages/PostCreate"; import PostEdit from "./pages/PostEdit"; import PostCategory from "./pages/PostCategory"; import Login from "./pages/Login"; +import Register from './pages/Register'; import Profile from "./pages/Profile"; import { AuthProvider } from "./context/AuthContext"; @@ -29,6 +30,7 @@ function App() { } /> } /> } /> + } /> } /> diff --git a/src/components/Footer.js b/src/components/Footer.js index c160e81..4060be1 100644 --- a/src/components/Footer.js +++ b/src/components/Footer.js @@ -6,18 +6,10 @@ const Footer = () => { return (
-
+
-

TechEdu

-

최고의 IT 교육 플랫폼으로 당신의 커리어를 성장시키세요.

-
-
-

Quick Links

-
    -
  • -
  • -
  • -
+

System Management Portal

+

시스템 관리 포탈입니다.

Categories

@@ -30,14 +22,14 @@ const Footer = () => {

Contact

    -
  • contact@techedu.com
  • -
  • 02-1234-5678
  • -
  • 서울특별시 강남구 테헤란로 123
  • +
  • icurfer@gmail.com
  • +
  • -
  • +
  • -
-

© 2025 TechEdu. All rights reserved.

+

Copyright © icurfer 2025

diff --git a/src/components/Navbar.js b/src/components/Navbar.js index ff0b63b..eeb664f 100644 --- a/src/components/Navbar.js +++ b/src/components/Navbar.js @@ -1,24 +1,26 @@ -import React from 'react'; -import { Link, useNavigate } from 'react-router-dom'; -import { useAuth } from '../context/AuthContext'; +import React from "react"; +import { Link, useNavigate } from "react-router-dom"; +import { useAuth } from "../context/AuthContext"; const Navbar = () => { const navigate = useNavigate(); - const { isLoggedIn, logout } = useAuth(); + const { isLoggedIn, logout, user } = useAuth(); - const menuItems = ['home', 'about', 'posts', 'paas', 'infra']; + const menuItems = ["home", "about", "posts", "paas", "infra"]; return (