Files
rubix-explore/src/pages/SplashScreen.jsx

22 lines
746 B
React
Raw Normal View History

2024-10-23 15:34:12 +05:30
import React from "react";
import { OPACITY_ON_LOAD } from "../Layout/animations";
import { Box, Image, useColorMode } from "@chakra-ui/react";
import logo from "../assets/images/rubix.png";
import logoLight from "../assets/images/rubixlogo.svg";
2024-11-05 20:23:39 +05:30
import rubixLoaders from "../assets/images/rubixLoader.gif";
2024-10-23 15:34:12 +05:30
const SplashScreen = () => {
const { colorMode } = useColorMode();
2024-11-05 20:23:39 +05:30
return <Box zIndex={1000} bg={'#fff'} h={'100vh'} display={'flex'} justifyContent={'center'} alignItems={'center'} {...OPACITY_ON_LOAD}>
2024-10-23 15:34:12 +05:30
<Image
2024-11-05 20:23:39 +05:30
src={colorMode === "light" ? rubixLoaders : rubixLoaders}
2024-10-23 15:34:12 +05:30
// width={"120px"}
2024-11-05 20:23:39 +05:30
width={{base:"50%",md : "25%"}}
2024-10-23 15:34:12 +05:30
/>
</Box>;
};
export default SplashScreen;