From 9f32867b7c591eddfcda470f969e0393c50d19a4 Mon Sep 17 00:00:00 2001 From: jonny paulino Date: Wed, 18 Dec 2024 13:15:50 -0300 Subject: [PATCH] ajustes layout e nomeclatura --- .env | 4 +- src/Assets/css/styles.css | 9 +++ src/Components/Card/CardClassroom/index.tsx | 4 +- src/Components/ContentPage/index.tsx | 52 +++++++++++++----- src/Components/Layout/TopBar/Logout/index.tsx | 4 +- src/Components/Layout/TopBar/index.tsx | 2 +- src/Components/Menu/index.tsx | 2 +- .../BeneficiariesCreate/index.tsx | 6 +- .../ModalCreateRegisterClassroom/index.tsx | 4 +- .../Beneficiaries/BeneficiariesEdit/index.tsx | 2 +- .../Beneficiaries/BeneficiariesList/index.tsx | 31 +++++++---- src/Pages/Classroom/ClassroomCriar/index.tsx | 2 +- .../ModalChangeClaassroom/index.tsx | 4 +- src/Pages/Classroom/ListClassroom/index.tsx | 55 +++++++++++-------- src/Pages/Form/CreateForms/Config/index.tsx | 2 +- src/Pages/InitialPage/index.tsx | 2 +- src/Pages/Projects/CreateProjects/index.tsx | 12 ++-- src/Pages/Projects/ProjectOne/index.tsx | 18 +++--- src/Pages/Projects/ProjectsList/index.tsx | 46 ++++++++-------- .../Register/Wizard/Steps/Start/index.tsx | 6 +- src/Pages/Schedule/FormSchedule/index.tsx | 2 +- .../CreateTechnologySocial/index.tsx | 2 +- .../TecnologySocialList/index.tsx | 18 +----- src/Pages/Users/CreateUser/index.tsx | 2 +- src/Pages/Users/Inputs/index.tsx | 4 +- src/Pages/Users/ListUsers.tsx | 4 +- 26 files changed, 168 insertions(+), 131 deletions(-) diff --git a/.env b/.env index 77602a0..7c3a28b 100644 --- a/.env +++ b/.env @@ -1,2 +1,2 @@ -REACT_APP_API_PATH=http://localhost:3000/ -# REACT_APP_API_PATH=https://br-ipti-beneficiarios.azurewebsites.net/ \ No newline at end of file +# REACT_APP_API_PATH=http://localhost:3000/ +REACT_APP_API_PATH=https://br-ipti-beneficiarios.azurewebsites.net/ \ No newline at end of file diff --git a/src/Assets/css/styles.css b/src/Assets/css/styles.css index 2ee0ab8..bfbd3bb 100644 --- a/src/Assets/css/styles.css +++ b/src/Assets/css/styles.css @@ -25,6 +25,15 @@ h1 { font-family: "Poppins Regular"; text-transform: uppercase; + font-size: 24px; + } + + h2 { + font-size: 18px; + } + + h3 { + font-size: 14px; } @font-face { diff --git a/src/Components/Card/CardClassroom/index.tsx b/src/Components/Card/CardClassroom/index.tsx index 4a4eaac..9bbbfc1 100644 --- a/src/Components/Card/CardClassroom/index.tsx +++ b/src/Components/Card/CardClassroom/index.tsx @@ -80,7 +80,7 @@ const CardClassroom = ({ -

Participantes: {registrationCount}

+

Participantes: {registrationCount}

@@ -89,7 +89,7 @@ const CardClassroom = ({ alt="" style={{ height: 16, marginRight: 2 }} /> - + Status: {" "} {status === Status.PENDING ? (

Pendente

diff --git a/src/Components/ContentPage/index.tsx b/src/Components/ContentPage/index.tsx index 4d7fc97..b0bacf0 100644 --- a/src/Components/ContentPage/index.tsx +++ b/src/Components/ContentPage/index.tsx @@ -1,16 +1,40 @@ -import { ReactNode } from "react"; -import { Container, Padding } from "../../Styles/styles" +import { MouseEventHandler, ReactNode } from "react"; +import { Column, Container, Padding, Row } from "../../Styles/styles"; +import { Button } from "primereact/button"; -const ContentPage = ({ description, title, children }: { title: string, description: string, children: ReactNode }) => { - return ( - -

{title}

- -

{description}

- - {children} -
- ) -} +const ContentPage = ({ + description, + title, + children, + addButton, + onClick, labelButton, + permissionButton +}: { + title: string; + description: string; + children: ReactNode; + addButton?: boolean, + permissionButton?: boolean, + labelButton?: string, + onClick?: MouseEventHandler | undefined +}) => { + return ( + + + +

{title}

+ +

{description}

+
+ + {(addButton && permissionButton) &&