feat: feature/mvp-sprint-1

This commit is contained in:
Nikolaj Frey 2023-08-14 20:35:04 +10:00
parent 7c7a4f8677
commit 813b5cf68a

View File

@ -513,14 +513,58 @@ export const CommanderV1 = (props) => {
maxWidth={[mobileVW, "100%"]} maxWidth={[mobileVW, "100%"]}
height="100%" height="100%"
> >
<Rainbow {/* TODO: Fix duplicate code because of rainbow mode disabling hack */}
filter="blur(15px)" {props?.rainbow && (
opacity={commanderActive ? 0.25 : 0} <Rainbow
repeats={rainbowRepeats} filter="blur(15px)"
thickness={8} opacity={commanderActive ? 0.25 : 0}
opacityTransition="all 1000ms ease-out" repeats={rainbowRepeats}
overflow="visible" thickness={8}
> opacityTransition="all 1000ms ease-out"
overflow="visible"
>
<Center
position="relative"
overflow="hidden"
width={["100%", "400px"]}
maxWidth={[mobileVW, "100%"]}
height="100%"
padding="1px"
borderRadius="6px"
pointerEvents="all"
outline="none"
>
<Rainbow
opacity={commanderActive ? 0.6 : 0}
position="absolute"
repeats={rainbowRepeats}
opacityTransition="all 2500ms ease-out"
thickness={10}
></Rainbow>
<Input
// display='none'
// opacity={0}
ref={inputRef}
sx={{
"&::placeholder": {
color: "greys.dark",
},
}}
width="100%"
height="100%"
background="grey"
border="none"
borderRadius="5px"
outline="none"
onChange={onInputChange}
onFocus={openCommander}
placeholder="Imagine.."
value={inputValue}
></Input>
</Center>
</Rainbow>
)}
{!props?.rainbow && (
<Center <Center
position="relative" position="relative"
overflow="hidden" overflow="hidden"
@ -532,13 +576,6 @@ export const CommanderV1 = (props) => {
pointerEvents="all" pointerEvents="all"
outline="none" outline="none"
> >
<Rainbow
opacity={commanderActive ? 0.6 : 0}
position="absolute"
repeats={rainbowRepeats}
opacityTransition="all 2500ms ease-out"
thickness={10}
></Rainbow>
<Input <Input
// display='none' // display='none'
// opacity={0} // opacity={0}
@ -560,7 +597,7 @@ export const CommanderV1 = (props) => {
value={inputValue} value={inputValue}
></Input> ></Input>
</Center> </Center>
</Rainbow> )}
</Center> </Center>
</Flex> </Flex>
</ClickAwayListener> </ClickAwayListener>