diff --git a/src/App.js b/src/App.js index 02046c8..98be1df 100644 --- a/src/App.js +++ b/src/App.js @@ -1,15 +1,19 @@ // src/App.js +//import PerfilSecretaria from "./perfis/perfil_secretaria/PerfilSecretaria"; +import { BrowserRouter as Router, Routes, Route } from "react-router-dom"; +import { useState } from "react"; -import React, { useState } from 'react'; +import Login from "./pages/Login"; +import Register from "./pages/Register"; +import Forgot from "./pages/ForgotPassword"; import PerfilSecretaria from "./perfis/perfil_secretaria/PerfilSecretaria"; -import LandingPage from './pages/LandingPage'; +import LandingPage from './pages/LandingPage'; // Mantenha todas as importações de CSS globais aqui se houver! -// import './App.css'; -// import './index.css'; function App() { // O estado controla qual view mostrar: false = Landing Page, true = Dashboard const [isInternalView, setIsInternalView] = useState(false); + // const [isSecretaria, setIsSecretaria] = useState(false); const handleEnterSystem = () => { setIsInternalView(true); @@ -18,10 +22,25 @@ function App() { const handleExitSystem = () => { setIsInternalView(false); }; + + // if (isSecretaria) { + // return setIsSecretaria(false)} />; + // } // Se não estiver na visualização interna, retorna a LandingPage. if (!isInternalView) { - return ; + return ( + + + } /> + } /> + } /> + } /> + } /> + Página não encontrada} /> + + + ) } // Se estiver na visualização interna, retorna o PerfilSecretaria diff --git a/src/assets/scss/components/_card.scss b/src/assets/scss/components/_card.scss index 12a6515..2372c49 100644 --- a/src/assets/scss/components/_card.scss +++ b/src/assets/scss/components/_card.scss @@ -1,3 +1,9 @@ +.card-position { + padding-top: 1rem; + display: flex; + align-items: center; + justify-content: center; +} .card { margin-bottom: 2.2rem; border: none; diff --git a/src/data/sidebar-items.json b/src/data/sidebar-items.json index 81762b6..f6e1519 100644 --- a/src/data/sidebar-items.json +++ b/src/data/sidebar-items.json @@ -6,43 +6,43 @@ { "name":"Início", - "url": "/", + "url": "/secretaria/inicio", "icon": "house" }, { "name": "Cadastro de Pacientes", - "url": "/pacientes/cadastro", + "url": "/secretaria/pacientes/cadastro", "icon": "heart-pulse-fill" }, { "name": "Cadastro do Médico", - "url": "/medicos/cadastro", + "url": "/secretaria/medicos/cadastro", "icon": "capsule" }, { "name": "Lista de Pacientes", "icon": "clipboard-heart-fill", - "url": "/pacientes" + "url": "/secretaria/pacientes" }, { "name": "Lista de Médico", "icon": "hospital-fill", - "url": "/medicos" + "url": "/secretaria/medicos" }, { "name": "Agendar consulta", "icon": "calendar-plus-fill", - "url": "/agendamento" + "url": "/secretaria/agendamento" }, { "name": "Laudo do Paciente", "icon": "table", - "url": "/laudo" + "url": "/secretaria/laudo" } ] \ No newline at end of file diff --git a/src/pages/ForgotPassword.jsx b/src/pages/ForgotPassword.jsx new file mode 100644 index 0000000..aef0050 --- /dev/null +++ b/src/pages/ForgotPassword.jsx @@ -0,0 +1,56 @@ +import React from 'react'; +import { Link } from "react-router-dom"; + +function ForgotPassword() { +return ( + <> +
+
+
+
+
+
+ +

MediConnect

+ +
+

Esqueci minha senha

+

+ Informe seu e-mail e enviaremos um link para redefinir sua senha. +

+
+
+ +
+ +
+
+ + +
+

+ Lembrou da sua senha? + + Entrar + + . +

+
+
+
+
+
+
+
+
+ + ); +} + +export default ForgotPassword; \ No newline at end of file diff --git a/src/pages/LandingPage.jsx b/src/pages/LandingPage.jsx index bd3a16d..2551aa9 100644 --- a/src/pages/LandingPage.jsx +++ b/src/pages/LandingPage.jsx @@ -1,9 +1,9 @@ -// src/pages/LandingPage.jsx - import React from 'react'; +import { useNavigate } from "react-router-dom"; import './style/LandingPage.css'; -const LandingPage = ({ onEnterSystem }) => { +const LandingPage = () => { + const navigate = useNavigate(); return ( // Usa a classe de isolamento CSS
@@ -18,7 +18,7 @@ const LandingPage = ({ onEnterSystem }) => { Serviços Contato {/* Botão para entrar no sistema interno */} - @@ -35,7 +35,7 @@ const LandingPage = ({ onEnterSystem }) => { Somos focados em oferecer a melhor experiência para pacientes e a gestão mais eficiente para a clínica.

{/* Botão de ação principal: "Acessar Sistema" */} -
diff --git a/src/pages/Login.jsx b/src/pages/Login.jsx new file mode 100644 index 0000000..9d31b70 --- /dev/null +++ b/src/pages/Login.jsx @@ -0,0 +1,93 @@ +import React from 'react'; +import { Link, useNavigate } from "react-router-dom"; + +function Login() { + const navigate = useNavigate(); + const handleLogin = (e) => { + e.preventDefault(); + // ...login logic... + navigate('/secretaria/inicio'); + }; + return ( + <> +
+
+
+
+
+
+ +

MediConnect

+ +
+

Entrar

+

+ Entre com os dados que você inseriu durante o registro. +

+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ + +
+ + +
+

+ Não tem uma conta? + + Cadastre-se + + . +

+

+ + Esqueceu a senha? + + . +

+
+
+
+
+
+
+
+
+ + ); +} + +export default Login; \ No newline at end of file diff --git a/src/pages/Register.jsx b/src/pages/Register.jsx new file mode 100644 index 0000000..004cb99 --- /dev/null +++ b/src/pages/Register.jsx @@ -0,0 +1,93 @@ +import React from 'react'; +import { Link, useNavigate } from "react-router-dom"; + +function Register() { + const navigate = useNavigate(); + const handleLogin = (e) => { + e.preventDefault(); + // ...login logic... + navigate('/secretaria/inicio'); + }; +return ( + <> +
+
+
+
+
+
+ +

MediConnect

+ +
+

Cadastre-se

+

+ Insira seus dados para se registrar em nosso site. +

+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+ + +
+

+ Já tem uma conta? + + Entrar + + . +

+
+
+
+
+
+
+
+
+ + ); +} + +export default Register; \ No newline at end of file diff --git a/src/pages/style/LandingPage.css b/src/pages/style/LandingPage.css index 31e9595..078ec5d 100644 --- a/src/pages/style/LandingPage.css +++ b/src/pages/style/LandingPage.css @@ -2,7 +2,6 @@ /* O seletor .landing-page-public-view ajuda a isolar os estilos */ .landing-page-public-view { - font-family: Arial, sans-serif; min-height: 100vh; background-color: #f0f2f5; } @@ -25,7 +24,7 @@ /* Estilo para a logo DENTRO do cabeçalho da Landing Page */ .landing-header .logo h1 { font-size: 1.8em; - color: #5b56f8; + color: #25396f; font-weight: 700; margin: 0; /* Remove margem que pode quebrar o layout */ padding: 0; /* Remove padding */ @@ -42,6 +41,9 @@ .nav-menu a:hover { color: #5b56f8; } +.nav-menu button:hover { + background-color: #4540d6; +} .access-button { background-color: #5b56f8; diff --git a/src/perfis/perfil_secretaria/PerfilSecretaria.jsx b/src/perfis/perfil_secretaria/PerfilSecretaria.jsx index df37652..a6f455e 100644 --- a/src/perfis/perfil_secretaria/PerfilSecretaria.jsx +++ b/src/perfis/perfil_secretaria/PerfilSecretaria.jsx @@ -1,6 +1,5 @@ -// src/perfis/perfil_secretaria/PerfilSecretaria.jsx - -import { BrowserRouter as Router, Routes, Route } from "react-router-dom"; +//import { BrowserRouter as Router, Routes, Route } from "react-router-dom"; +import { Routes, Route } from "react-router-dom"; import Sidebar from "../../components/Sidebar"; import Inicio from "../../pages/Inicio"; @@ -15,15 +14,14 @@ import EditPage from "../../pages/EditPage"; import DoctorDetails from "../../pages/DoctorDetails"; import DoctorEditPage from "../../pages/DoctorEditPage"; -function PerfilSecretaria({ onLogout }) { +function PerfilSecretaria() { return ( - + //
- {/* Passamos onLogout para que o botão Sair funcione no menu */} - +
- } /> + } /> } /> } /> } /> @@ -38,8 +36,8 @@ function PerfilSecretaria({ onLogout }) {
-
+ //
); } -export default PerfilSecretaria; \ No newline at end of file +export default PerfilSecretaria;