From 806946cefe08e47d8255363f1b13a8b1735520c5 Mon Sep 17 00:00:00 2001 From: Yasmim Rosa Date: Wed, 13 Dec 2023 10:34:10 -0300 Subject: [PATCH] =?UTF-8?q?nova=20homepara=20cada=20tipo=20de=20usu=C3=A1r?= =?UTF-8?q?io=20usu=C3=A1rio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/App.js | 2 +- frontend/src/contexts/auth.js | 1 + frontend/src/pages/Home/index.js | 58 ++++++++++++++++-------- frontend/src/pages/Home/styles.js | 10 ++++ frontend/src/pages/Signin/index.js | 12 +++-- frontend/src/pages/StudentHome/index.js | 51 +++++++++++++++++++++ frontend/src/pages/StudentHome/styles.js | 10 ++++ frontend/src/routes/index.js | 36 ++++----------- 8 files changed, 130 insertions(+), 50 deletions(-) create mode 100644 frontend/src/pages/StudentHome/index.js create mode 100644 frontend/src/pages/StudentHome/styles.js diff --git a/frontend/src/App.js b/frontend/src/App.js index 5054036e..e47c615a 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -6,7 +6,7 @@ import GlobalStyle from "./styles/global"; const App = () => ( - + {/* */} ); diff --git a/frontend/src/contexts/auth.js b/frontend/src/contexts/auth.js index 6f6dafd5..27f57317 100644 --- a/frontend/src/contexts/auth.js +++ b/frontend/src/contexts/auth.js @@ -27,6 +27,7 @@ export const AuthProvider = ({ children }) => { const isSuperUser = () => { const userType = sessionStorage.getItem("superuser"); + console.log(userType) return userType } diff --git a/frontend/src/pages/Home/index.js b/frontend/src/pages/Home/index.js index 880825d4..661b3b03 100644 --- a/frontend/src/pages/Home/index.js +++ b/frontend/src/pages/Home/index.js @@ -1,9 +1,9 @@ import React from "react"; -import { Container, Flex, Stack, Box, Wrap, WrapItem, Button, Center } from "@chakra-ui/react"; +import { Container, Flex, Text, HStack, Wrap, WrapItem, Button, Center } from "@chakra-ui/react"; import Header from "../../components/Header/index.js"; import Footer from "../../components/Footer/index.js"; import { ChakraProvider } from "@chakra-ui/react"; - +import * as C from "./styles"; import { Link } from "react-router-dom"; const Home = () => { @@ -11,25 +11,47 @@ const Home = () => {
- + +
+ + + Bem vindo, administrador! + + +
- - - - - + + + +
+ +
+ + + + +
+
+ + +