mirror of
https://github.com/spacebarchat/client.git
synced 2024-11-24 11:22:29 +01:00
fix hcaptcha page styling
This commit is contained in:
parent
533faf634b
commit
180c34e5f0
@ -1,36 +1,7 @@
|
||||
import HCaptchaLib from "@hcaptcha/react-hcaptcha";
|
||||
import React from "react";
|
||||
import styled from "styled-components";
|
||||
import Container from "./Container";
|
||||
|
||||
export const Wrapper = styled(Container)`
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
background-color: var(--background-secondary);
|
||||
`;
|
||||
|
||||
export const AuthBox = styled(Container)`
|
||||
background-color: var(--background-primary-alt);
|
||||
padding: 32px;
|
||||
font-size: 18px;
|
||||
color: var(--text-muted);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
|
||||
@media (max-width: 480px) {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@media (min-width: 480px) {
|
||||
width: 480px;
|
||||
border-radius: 18px;
|
||||
}
|
||||
`;
|
||||
import { AuthContainer, Wrapper } from "./AuthComponents";
|
||||
|
||||
export const HeaderContainer = styled.div`
|
||||
width: 100%;
|
||||
@ -63,7 +34,7 @@ interface Props {
|
||||
function HCaptcha(props: Props) {
|
||||
return (
|
||||
<Wrapper>
|
||||
<AuthBox>
|
||||
<AuthContainer>
|
||||
<HeaderContainer>
|
||||
<Header>Welcome Back!</Header>
|
||||
<SubHeader>Beep boop. Boop beep?</SubHeader>
|
||||
@ -79,7 +50,7 @@ function HCaptcha(props: Props) {
|
||||
onExpire={props.onExpire}
|
||||
/>
|
||||
</HeaderContainer>
|
||||
</AuthBox>
|
||||
</AuthContainer>
|
||||
</Wrapper>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user