fix adaptive

This commit is contained in:
2022-11-29 22:36:58 +03:00
parent 43ca37d817
commit 37f6f1bdd8
7 changed files with 71 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
import React, {useState, useCallback, useRef, useMemo} from 'react';
import { getFeatures } from '@ijl/cli';
import logo from '../assets/logo-white.svg';
import logo from '../assets/logo.svg';
import arrow from '../assets/36-arrow-right.svg';
import { Keyboard } from '../components/keyboard';
@@ -34,7 +34,7 @@ const fullScreenFeature = getFeatures('hub-video-start')?.fullScreen;
const Input = ({ onStart }) => {
const [value, setValue] = useState('');
const [inFocuse, setInfocuse] = useState(false);
const [inFocuse, setInfocuse] = useState(true);
const handleChange = useCallback(event => {
setValue(event.target.value.toUpperCase())
}, [setValue]);

View File

@@ -13,6 +13,10 @@ export const InputWrapper = styled.div`
padding: 12px;
display: flex;
align-items: center;
@media screen and (max-width: 600px) {
flex-direction: column;
}
`;
export const InputLabel = styled.label`
position: absolute;
@@ -26,6 +30,7 @@ export const InputElement = styled.input`
font-size: 24px;
border-radius: 8px;
color: #117623;
max-width: 90vw;
`;
export const LogoImg = styled.img`