Skip to content
Merged

Dev #32

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
409 changes: 205 additions & 204 deletions frontend/src/assets/styles/configuracoes/configuracoes.css

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions frontend/src/assets/styles/home/card-psicologo.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
border-radius: var(--border-radius-md);
padding: 10px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(max(180px, calc(25% - 22.5px)), 1fr));
gap: 30px;
grid-template-columns: repeat(auto-fit, minmax(200px, max-content));
gap: var(--spacing-xs);
justify-content: center;
width: 100%;
align-self: center;
Expand Down Expand Up @@ -51,7 +51,6 @@
var(--secondary-cream-700) 20%);
padding: 20px;
gap: 10px;

height: 350px;
margin: 0px 5px 15px 5px;
}
Expand Down Expand Up @@ -111,9 +110,11 @@
border-radius: 5px;
font-size: 10px;
font-weight: 500;
width: max-content;
height: max-content;
flex-shrink: 0;
max-width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: block;
}

.tags-more {
Expand Down
10 changes: 0 additions & 10 deletions frontend/src/assets/styles/landingpage/hero-apresentacao.css
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,6 @@ main.main p {
gap: var(--spacing-sm);
}

.btn-hero {
background-color: transparent !important;
}

.btn-hero:hover {
background-color: var(--tertiary-light-green-400) !important;
}



/* Apresentação Section-------------------- */

#apresentacao {
Expand Down
36 changes: 26 additions & 10 deletions frontend/src/assets/styles/perfil/calendario.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.container-calendario {
background-color: var(--secondary-cream-700);
border-radius: var(--border-radius-lg);
border-radius: var(--border-radius-md);
display: flex;
flex-direction: column;
width: 100%;
Expand All @@ -10,35 +10,35 @@
.container-calendario h1 {
background-color: var(--tertiary-light-green-500);
width: 100%;
padding: 10px;
padding: var(--spacing-xs);
border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
text-align: center;
font-size: 2rem;
font-size: 1.5rem;
font-weight: 600;
color: var(--black-950);
}

.wrapper-content-calendar {
padding: 15px;
padding: var(--spacing-xs) 0px ;
background-color: white;
margin: 15px;
margin: var(--spacing-xs);
border-radius: var(--border-radius-md);
display: flex;
flex-direction: column;
gap: 15px;
gap: var(--spacing-xs);
}

.header-calendario {
display: flex;
justify-content: center;
align-items: center;
gap: 15px;
gap: var(--spacing-xs);
margin-bottom: 20px;
}

.header-calendario h2 {
font-size: 1.4rem;
font-weight: 800;
font-weight: 600;
text-transform: capitalize;
text-align: center;
margin: 0;
Expand Down Expand Up @@ -74,7 +74,10 @@

.calendar-unified-grid {
display: grid;
grid-template-columns: 35px repeat(7, 1fr) 35px;
grid-template-columns:
30px
repeat(7, minmax(50px, 1fr))
30px;
gap: var(--spacing-xs);
width: 100%;
align-items: center;
Expand All @@ -87,7 +90,7 @@

.dia-semana {
text-align: center;
font-weight: 600;
font-weight: 700;
color: var(--black-950);
font-size: 1.1rem;
padding: 10px 0;
Expand Down Expand Up @@ -227,3 +230,16 @@
@keyframes ping {
75%, 100% { transform: scale(2.5); opacity: 0; }
}


/* Responsividade */
@media (max-width:950px){
.container-calendario,
.wrapper-content-calendar{
max-width: 100%;
}

.calendar-unified-grid{
grid-template-columns: 35px repeat(7, 1fr) 35px;
}
}
11 changes: 6 additions & 5 deletions frontend/src/assets/styles/perfil/section.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
border-radius: 12px;
justify-content: space-between;
margin-bottom: 2rem;
width: 50%;
gap: 1rem;
/* width: 50%; */
gap: var(--spacing-sm);
flex-direction: column;
height: 100%;
}
Expand All @@ -31,7 +31,7 @@
.sobre-info-container{
width: 100%;
}
@media (max-width:1024px){
@media (max-width:1046px){
.container-section-perfil{
padding-inline: 2%;

Expand All @@ -41,12 +41,13 @@
.container-section-perfil{
flex-direction: column;
}
}
@media (max-width:768px){
.perfil-container{
width: 100%;
}
.container-sair{
order: 3;
}
}
@media (max-width:768px){

}
5 changes: 3 additions & 2 deletions frontend/src/assets/styles/popups/verpsi.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
position: fixed;
background-color: var(--secondary-cream-700);
max-height: 90vh;
overflow-y: auto;
overflow-y: auto;
overflow-x: hidden;
padding: var(--spacing-xs);
display: flex;
flex-direction: column;
Expand All @@ -18,7 +19,7 @@
text-align: center;
gap: 10px;
z-index: 81;
width: 600px;
width: max-content;
}

.container-info-psi{
Expand Down
39 changes: 25 additions & 14 deletions frontend/src/assets/styles/ui/buttons.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,9 @@

/* Navbar button */
.nav-btn-login{
box-sizing: border-box;
background-color: var(--accent-dark-green-700);
color: var(--black-50);
padding: 9px 31px;
border: none;
font-weight: 600;
font-size: 1.2rem;
border-radius: var(--spacing-xs);
cursor: pointer;
transition: 200ms;
}

.nav-btn-login:hover{
background-color: var(--accent-dark-green-800);
padding: 9px 31px !important;
font-weight: 600 !important;
font-size: 1.2rem !important;
}

/* Button (confirmação) */
Expand Down Expand Up @@ -194,6 +183,28 @@
background-color: var(--accent-dark-green-600);
}

/* Botão de destaque (borda e fundo transparente) */

.btn-hero-section{
background-color: #a7e2938c;
color: var(--black-950);
padding: 7px 20px;
font-weight: 600;
font-size: 1rem;
border: 4px solid var(--accent-dark-green-700);
border-radius: var(--border-radius-md);
cursor: pointer;
display:flex;
justify-content: center;
align-items: center;
gap: var(--spacing-sm);
text-wrap: nowrap;
}

.btn-hero-section:hover{
background-color: var(--tertiary-light-green-700);
}

/* Botão Skip Navigation (Acessibilidade) */

.sr-only {
Expand Down
45 changes: 1 addition & 44 deletions frontend/src/components/common/NavbarDesktop.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
import { useState, useEffect, useRef } from 'react'
import { HiOutlineSearch, HiOutlineBell, HiOutlineUser } from "react-icons/hi";
import { useAuth } from '../../context/AuthContext';
import foto from '../../assets/img/perfil-default.png';

Check warning on line 6 in frontend/src/components/common/NavbarDesktop.jsx

View workflow job for this annotation

GitHub Actions / Frontend (React)

'foto' is defined but never used. Allowed unused vars must match /^[A-Z_]/u
import Notifications from './Notifications/notifications';
import { notificacaoService } from '../../services/notificacaoService';


export default function NavDesktop() {
const [isDropdownOpen, setDropdownOpen] = useState(false);

Check warning on line 12 in frontend/src/components/common/NavbarDesktop.jsx

View workflow job for this annotation

GitHub Actions / Frontend (React)

'isDropdownOpen' is assigned a value but never used. Allowed unused vars must match /^[A-Z_]/u
const dropdownRef = useRef(null); // referência para o dropdown

const { user, isAuthenticated, isPsicologo, logout } = useAuth();
const navigate = useNavigate();

const handleLogout = () => {

Check warning on line 18 in frontend/src/components/common/NavbarDesktop.jsx

View workflow job for this annotation

GitHub Actions / Frontend (React)

'handleLogout' is assigned a value but never used. Allowed unused vars must match /^[A-Z_]/u
logout();
navigate("/landing");
};
Expand Down Expand Up @@ -132,57 +132,14 @@
<Link to="login=0">
<button
type="button"
className="nav-btn-login"
className="button-confirm nav-btn-login"
onClick={() => setDropdownOpen(prev => !prev)}
>
Login
</button>
</Link>
</>
) : null}

<div className={`nav-login-drop-wrapper ${isAuthenticated && isDropdownOpen ? "show" : ""}`}>
<div className="nav-login-drop">
{isAuthenticated ? (
<>
{user && (
<Link
to={`/${user.tipo.toLowerCase()}/perfil/${user.id}`}
onClick={() => setDropdownOpen(false)}
>
<button type="button">Meu Perfil</button>
</Link>
)}
<Link
to={`/${user.tipo}/perfil/${user.id}/configuracoes`}
onClick={() => setDropdownOpen(false)}
>
<button type="button">Configurações</button>
</Link>
{user.tipo === "psicologo" && (
<Link
to="/adicionar-artigos"
onClick={() => setDropdownOpen(false)}
>
<button type="button">Adicionar Artigos</button>
</Link>
)}
<button
type="button"
onClick={() => {
handleLogout();
setDropdownOpen(false);
}}
>
Sair
</button>
</>
) : (
<>
</>
)}
</div>
</div>
</div>
</nav>
</>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/landingpage/Hero.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function Hero() {
{!isAuthenticated ? (<Link
to="/login=0"
>
<button className="nav-btn-login btn-hero" >Começar</button>
<button className="btn-hero-section" >Começar</button>
</Link>) : (<></>)}


Expand Down
Loading