augment desactivate 2fa size + blur OK + Friend list css OK Invite button suppress comment spectate button

This commit is contained in:
Lara REALI 2023-06-25 21:51:21 +02:00
parent 007dbe1832
commit 1e9946859c
5 changed files with 27 additions and 24 deletions

View File

@ -23,9 +23,9 @@ import React from "react";
const MeStyleP = styled.p` const MeStyleP = styled.p`
background-color: #5843e4; background-color: #5843e4;
padding 10px 20px; padding 10px 20px;
border-radius 10px 0px 10px 10px; border-radius 10px;
color: white; color: white;
margin-right: 20px; margin: 10px;
` `
interface MessageMeProps { interface MessageMeProps {

View File

@ -99,18 +99,18 @@ export default function Friend({currentUser}: UserProps)
) : ( ) : (
<img className="pic-user" src={DefaultPicture} alt="Default Profile Picture" /> <img className="pic-user" src={DefaultPicture} alt="Default Profile Picture" />
)} )}
<div className="infoSideBar"> <div className="end">
<span onClick={() => handleButtonClick(currentUser)}>{currentUser.nickname}</span> <span onClick={() => handleButtonClick(currentUser)}>{currentUser.nickname}</span>
<RxCircle color={getStatus(currentUser)} /> <div className="end">
<button onClick={() => handleSpectate(currentUser)} >Invite</button> <RxCircle className="friendRequest" color={getStatus(currentUser)} />
{getStatus(currentUser) !== 'blue' ? ( </div>
<></> </div>
) : (
<button onClick={() => handleSpectate(currentUser)} >Spectate</button>
)}
</div>
</UserChat> </UserChat>
) )
} }
// spectate visible
// {getStatus(currentUser) !== 'blue' ? (
// <></>
// ) : (
// <button className="friendRequest" onClick={() => handleSpectate(currentUser)} >Spectate</button>
// )}

View File

@ -21,13 +21,14 @@ input.qr{
} }
.desactivate { .desactivate {
margin: 40vh; margin: 20%;
color: ghostwhite; color: ghostwhite;
outline: 0; outline: 0;
border-radius: 20px; border-radius: 100px;
padding: 20px; padding: 2%;
background-image: linear-gradient(90deg, #5843e4, #5a0760); background-image: linear-gradient(90deg, #5843e4, #5a0760);
border: 0; border: 0;
font-size: x-large;
} }
.App-logo { .App-logo {
height: 40vmin; height: 40vmin;

View File

@ -127,4 +127,5 @@ span {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
z-index: 1;
} }

View File

@ -173,6 +173,7 @@ input{
width: 40px; width: 40px;
height: 40px; height: 40px;
border-radius: 50%; border-radius: 50%;
margin: 10px;
} }
.messageContent{ .messageContent{