Skip to content
Merged

Dev #33

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
import SobreNos from "./pages/SobreNos";
import AddArtigos from "./pages/AddArtigos";
import Configuracoes from "./pages/Configuracoes";
import ListaClientes from "./pages/ListaClientes";
import Prontuario from "./pages/Prontuario";
import TermosCondicoes from "./pages/TermosCondicoes";
import VideoChamada from "./pages/VideoChamada";
import Cadastro from "./pages/Cadastro";
Expand Down Expand Up @@ -73,6 +75,22 @@
<Configuracoes />
</ProtectedRoute>
}
/>
<Route
path=':tipo/perfil/:id/clientes/:idProntuario'
element={
<ProtectedRoute>
<Prontuario />
</ProtectedRoute>
}
/>
<Route
path=':tipo/perfil/:id/clientes'
element={
<ProtectedRoute>
<ListaClientes />
</ProtectedRoute>
}
/>
<Route
path='videochamada/:agendamentoId'
Expand Down
12 changes: 8 additions & 4 deletions frontend/src/assets/styles/configuracoes/configuracoes.css
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,23 @@ section.config h1 {
flex-direction: column;
gap: 10px;
padding: 10px;
border: 1px solid black;
border: 1px solid var(--white-800);
border-radius: 12px;
}

.atalhos li {
color: black;
color: var(--white-800);
padding: 5px;
border-bottom: 1px solid black;
border-bottom: 1px solid var(--white-800);
cursor: pointer;
}

.atalhos li:last-child{
border-bottom: none;
};

#Deletar {
color: red;
color: var(--accent-mid-orange-950);
}

.atalhos li:hover {
Expand Down
81 changes: 58 additions & 23 deletions frontend/src/assets/styles/home/filtros-home.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,35 +24,68 @@ section.section-filter{
;
}

/*-----------SEARCH-------------- */

.search-boxes {
grid-area: search;
flex-direction: row;
justify-items: space-between;
width: 100%;
display: flex;
align-items: center;
}

/* Search section */
.search-form {
display: flex;
flex-direction: row;
width: 100%;
}

.search-boxes input {
width: 100%;
padding: 11px;
padding: var(--spacing-xs);
border-radius: 10px 0px 0px 10px;
border: 1px solid var(--white-600);
border-right: none;
}
.search-boxes input:focus{

.search-boxes input:focus {
outline: none;
border: 1px solid var(--accent-dark-green-700);
border-right: none;
}

.search-boxes input::placeholder {
color: var(--white-700);
font-size: 1rem;
}

.button-search{
border-radius: 0 10px 10px 0 !important;
transform: translateY(-1px)
.search-button {
display: flex;
align-items: center;
justify-content: center;
padding: 0 16px;
background: none;
border: 1px solid var(--white-600);
border-left: none;
border-radius: 0 10px 10px 0;
cursor: pointer;
transition: background-color 0.3s;
}

.search-button:hover {
background-color: rgba(0,0,0,0.03);
}

.button-search {
padding: var(--spacing-xs) !important;
padding-top: 8px !important;
border-radius:
0
var(--border-radius-md)
var(--border-radius-md)
0 !important;
}

.button-search .icon-ui-button-search{
font-size: 1.5rem;
}

/*-----------FILTER------------ */
Expand Down Expand Up @@ -94,8 +127,8 @@ button.btn-searchbox{
display: flex;
align-items: center;
justify-content: space-between;
background: var(--accent-dark-green-700);
color: var(--white-200);
background: var(--tertiary-light-green-700);
color: var(--black-950);
border: none;
border-radius: 8px;
padding: 10px 14px;
Expand All @@ -106,7 +139,7 @@ button.btn-searchbox{
}

.btn-searchbox:hover {
background: var(--tertiary-light-green-700);
background: var(--tertiary-light-green-800);
}

.seta-filtro {
Expand All @@ -121,7 +154,7 @@ button.btn-searchbox{
left: 0;
display: flex;
flex-direction: column;
background: var(--accent-dark-green-700);
background: var(--tertiary-light-green-700);
border-radius: var(--border-radius-md);
gap: 8px;
padding: 10px 12px;
Expand All @@ -130,6 +163,7 @@ button.btn-searchbox{
opacity: 0;
transition: transform 0.3s ease, opacity 0.3s ease;
overflow: hidden;
width: 100%;
}

.filtro .checkbox-filter {
Expand All @@ -155,33 +189,28 @@ button.btn-searchbox{
width: 16px;
height: 16px;
border-radius: 50%;
border: 2px solid var(--tertiary-light-green-700);
border: 2px solid var(--tertiary-light-green-800);
margin-right: 6px;
vertical-align: middle;
transition: background 0.2s ease;
}

.checkbox-input input:checked + span::before {
background-color: var(--tertiary-light-green-700);
background-color: var(--tertiary-light-green-800);
}

.titulo-checkbox {
font-size: 0.8rem;
color: var(--white-200);
font-size: 0.9rem;
color: var(--black-950);
font-family: "Poppins", sans-serif;
font-weight: 600;
font-weight: 500;
cursor: pointer;
background: transparent;
white-space: nowrap;
width: 100%;
transition: color 0.15s ease;
}

.titulo-checkbox:hover {
color: var(--tertiary-light-green-700);
}


/*-------VISUALIZACAO---------- */

.search-visualizacao{
Expand Down Expand Up @@ -209,6 +238,12 @@ button.btn-searchbox{
gap: var(--spacing-xs);
}

.button-col,
.button-row{
padding: 5px !important;
font-size: 1.5rem !important;
}

.button-col:not(.active),
.button-row:not(.active){
background-color: var(--white-700);
Expand Down
141 changes: 141 additions & 0 deletions frontend/src/assets/styles/listaclientes/listaclientes.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
.container-search-clientes{
display: flex;
align-items: center;
width: 100%;
padding-inline: 5%;
flex-direction: column;
gap: var(--spacing-xs)
}

section.search-boxes,
main.list-clientes{
background-color: var(--white-400);
border-radius: var(--border-radius-md);
width: 100%;
padding: var(--spacing-xs);
position: relative;
}

section.search-boxes{
display: flex;
flex-direction: row;
gap: var(--spacing-xs);
justify-content: space-between;
align-items: center;
}

main.list-clientes{
gap: var(--spacing-xs);
margin-bottom: var(--spacing-md);
max-height: 500px;
overflow-y:auto
}

.cabecalho-lista-clientes{
position: sticky;
top: 0;
width: 100%;
background-color: var(--white-50);
font-size: 0.9rem;
font-weight: 600;
z-index: 6;
display: grid;
grid-template-columns: repeat(5, 1fr);
align-items: center;
justify-items: center;
padding: var(--spacing-xs);
border-radius: var(--border-radius-md);
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
margin-bottom: var(--spacing-xs)
}

/* Area de estilo de cards */

.clientes-container{
display: flex;
flex-direction: column;
gap: var(--spacing-xs);
}

.card-cliente{
width: 100%;
padding: var(--spacing-xs);
border-radius: var(--border-radius-md);
background-color: var(--white-50);
display: grid;
justify-items: center;
align-items: center;
grid-template-columns: repeat(5, 1fr);
}

.card-cliente-name{
width: 100%;
display: flex;
align-items: center;
justify-items: left;
gap: var(--spacing-xs);
}

.card-cliente-name h3{
font-weight: 600;
font-size: 1rem;
}

.card-cliente-name img{
width: 40px;
height: 40px;
border-radius: 50%;
}

p.status-tag{
padding: 5px 20px;
border-radius: 50px;
font-size: 0.8rem;
font-weight: 500;
height: fit-content;
color: var(--black-950);
width: fit-content;
}

.status-tag.status-ativo{
background-color: var(--tertiary-light-green-700);
}
.status-tag.status-pendente{
background-color: var(--primary-orange-700);
}
.status-tag.status-inativo{
background-color: var(--accent-mid-orange-600);
}

.button-prontuario{
padding: 5px !important;
font-size: 1.5rem !important;
}

@media(max-width: 1160px){
.container-search-clientes{
padding-inline: var(--spacing-xs);
}
}
@media(max-width: 950px){
main.list-clientes{
overflow-x: auto;
}
.card-cliente,
.cabecalho-lista-clientes{
width: 1100px
}
}
@media(max-width: 500px){
section.search-boxes{
display: flex;
flex-direction: column;
gap: var(--spacing-xs)
}
section.search-boxes .button-confirm{
width: auto;
}
section.search-boxes .filtro {
width: 100%;
}
}
3 changes: 0 additions & 3 deletions frontend/src/assets/styles/perfil/section.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,4 @@
.container-sair{
order: 3;
}
}
@media (max-width:768px){

}
Loading
Loading