Login:Components:GreetingContainer: change styles

This commit is contained in:
Darya Umrikhina 2024-08-22 12:12:03 +04:00
parent c78ea39947
commit 9603f60379
3 changed files with 11 additions and 25 deletions

View File

@ -36,42 +36,28 @@ export const GreetingContainer = styled.div`
height: 100%; height: 100%;
width: ${DESKTOP_WIDTH}px; width: ${DESKTOP_WIDTH}px;
margin-bottom: 32px;
@media ${tablet} { @media ${tablet} {
width: 100%; width: 100%;
max-width: ${TABLET_WIDTH}px; max-width: ${TABLET_WIDTH}px;
} }
.portal-logo{
padding-bottom: 40px;
}
.tooltip { .tooltip {
.invitation-text { margin-bottom: 40px;
display: flex;
flex-direction: column; p {
align-items: center;
text-align: center; text-align: center;
} }
@media ${mobile} { @media ${mobile} {
margin-top: 0;
padding: 0 25px; padding: 0 25px;
} }
} }
.portal-logo {
width: 100%;
max-width: 386px;
height: 44px;
margin: 0 auto;
padding-bottom: 16px;
display: flex;
align-items: center;
justify-content: center;
.injected-svg {
height: 26.56px;
}
@media ${mobile} {
display: none;
}
} }
`; `;

View File

@ -65,7 +65,7 @@ export const GreetingCreateUserContainer = ({
<img src={logoUrl} className="portal-logo" alt="greeting-logo" /> <img src={logoUrl} className="portal-logo" alt="greeting-logo" />
{type === "LinkInvite" && ( {type === "LinkInvite" && (
<div className="tooltip"> <div className="tooltip">
<Text fontSize="16px" as="div" className="invitation-text"> <Text fontSize="16px">
{roomData.title ? ( {roomData.title ? (
<Trans <Trans
t={t} t={t}

View File

@ -98,7 +98,7 @@ export const GreetingLoginContainer = ({
{type === "invitation" && ( {type === "invitation" && (
<div className="greeting-container"> <div className="greeting-container">
<Text fontSize="16px" as="div" className="invitation-text"> <Text fontSize="16px">
<Trans <Trans
t={t} t={t}
i18nKey={roomName ? "InvitationToRoom" : "InvitationToPortal"} i18nKey={roomName ? "InvitationToRoom" : "InvitationToPortal"}