mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-09 04:36:02 -05:00
New demo page
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
import { Image } from "@chakra-ui/image";
|
||||
import { Input } from "@chakra-ui/input";
|
||||
import { Box } from "@chakra-ui/layout";
|
||||
import { useColorModeValue } from "@chakra-ui/react";
|
||||
import { useMyTheme } from "hooks/common";
|
||||
import { useState } from "react";
|
||||
|
||||
interface HSL {
|
||||
@@ -353,22 +355,48 @@ export function getFilters(hex: string) {
|
||||
}
|
||||
|
||||
const DemoPage = () => {
|
||||
const borderColor = useColorModeValue("black", "white");
|
||||
const [hex, setHex] = useState("#FFC0CB");
|
||||
const [hex2, setHex2] = useState("#FFEA61");
|
||||
return (
|
||||
<Box>
|
||||
<Box position="relative">
|
||||
<Image
|
||||
src="/layout/demo_girl_bg.png"
|
||||
maxW={80}
|
||||
position="absolute"
|
||||
top="0"
|
||||
left="0"
|
||||
filter={getFilters(hex)}
|
||||
<>
|
||||
<Box>
|
||||
<Box position="relative">
|
||||
<Image
|
||||
src="/layout/new_girl_bg.png"
|
||||
maxW={80}
|
||||
position="absolute"
|
||||
top="0"
|
||||
left="0"
|
||||
filter={getFilters(hex)}
|
||||
/>
|
||||
<Image src="/layout/new_girl.png" maxW={80} position="absolute" />
|
||||
</Box>
|
||||
<Input
|
||||
mt="30rem"
|
||||
value={hex}
|
||||
onChange={(e) => setHex(e.target.value)}
|
||||
/>
|
||||
<Image src="/layout/demo_girl.png" maxW={80} position="absolute" />
|
||||
</Box>
|
||||
<Input mt="30rem" value={hex} onChange={(e) => setHex(e.target.value)} />
|
||||
</Box>
|
||||
<Box mt={4}>
|
||||
<Box position="relative">
|
||||
<Image
|
||||
src="/layout/new_boy_bg.png"
|
||||
maxW={80}
|
||||
position="absolute"
|
||||
top="0"
|
||||
left="0"
|
||||
filter={getFilters(hex2)}
|
||||
/>
|
||||
<Image src="/layout/new_boy.png" maxW={80} position="absolute" />
|
||||
</Box>
|
||||
<Input
|
||||
mt="30rem"
|
||||
value={hex2}
|
||||
onChange={(e) => setHex2(e.target.value)}
|
||||
/>
|
||||
</Box>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 433 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 38 KiB |
BIN
public/layout/new_boy.png
Normal file
BIN
public/layout/new_boy.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 693 KiB |
BIN
public/layout/new_boy_bg.png
Normal file
BIN
public/layout/new_boy_bg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
BIN
public/layout/new_girl.png
Normal file
BIN
public/layout/new_girl.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 598 KiB |
BIN
public/layout/new_girl_bg.png
Normal file
BIN
public/layout/new_girl_bg.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 38 KiB |
Reference in New Issue
Block a user