feat: feature/mvp-sprint-1 Added home icon link in nav
This commit is contained in:
parent
fe3b9eb496
commit
75deb9a2ff
@ -49,6 +49,84 @@ export const Icon = (props) => {
|
|||||||
return "π"
|
return "π"
|
||||||
// return "βοΈ"
|
// return "βοΈ"
|
||||||
}
|
}
|
||||||
|
if (["rainbow"]?.includes(name)) {
|
||||||
|
return "π"
|
||||||
|
}
|
||||||
|
if (["sun"]?.includes(name)) {
|
||||||
|
return "βοΈ"
|
||||||
|
}
|
||||||
|
if (["moon"]?.includes(name)) {
|
||||||
|
return "π"
|
||||||
|
}
|
||||||
|
if (["unicorn"]?.includes(name)) {
|
||||||
|
return "π¦"
|
||||||
|
}
|
||||||
|
if (["user", "person"]?.includes(name)) {
|
||||||
|
return "π€"
|
||||||
|
}
|
||||||
|
if (["group", "team"]?.includes(name)) {
|
||||||
|
return "π₯"
|
||||||
|
}
|
||||||
|
if (["success", "check"]?.includes(name)) {
|
||||||
|
return "β
"
|
||||||
|
}
|
||||||
|
if (["error", "stop"]?.includes(name)) {
|
||||||
|
return "β"
|
||||||
|
}
|
||||||
|
if (["warning", "alert"]?.includes(name)) {
|
||||||
|
return "β οΈ"
|
||||||
|
}
|
||||||
|
if (["time", "clock"]?.includes(name)) {
|
||||||
|
return "β°"
|
||||||
|
}
|
||||||
|
if (["star", "favorite"]?.includes(name)) {
|
||||||
|
return "β"
|
||||||
|
}
|
||||||
|
if (["question", "help"]?.includes(name)) {
|
||||||
|
return "β"
|
||||||
|
}
|
||||||
|
if (["video", "media"]?.includes(name)) {
|
||||||
|
return "π₯"
|
||||||
|
}
|
||||||
|
if (["music", "audio"]?.includes(name)) {
|
||||||
|
return "π΅"
|
||||||
|
}
|
||||||
|
if (["image", "picture"]?.includes(name)) {
|
||||||
|
return "πΌοΈ"
|
||||||
|
}
|
||||||
|
if (["email", "mail"]?.includes(name)) {
|
||||||
|
return "βοΈ"
|
||||||
|
}
|
||||||
|
if (["computer", "laptop"]?.includes(name)) {
|
||||||
|
return "π»"
|
||||||
|
}
|
||||||
|
if (["mobile", "phone"]?.includes(name)) {
|
||||||
|
return "π±"
|
||||||
|
}
|
||||||
|
if (["world", "globe"]?.includes(name)) {
|
||||||
|
return "π"
|
||||||
|
}
|
||||||
|
if (["rocket", "launch"]?.includes(name)) {
|
||||||
|
return "π"
|
||||||
|
}
|
||||||
|
if (["pencil", "edit"]?.includes(name)) {
|
||||||
|
return "βοΈ"
|
||||||
|
}
|
||||||
|
if (["search", "magnify"]?.includes(name)) {
|
||||||
|
return "π"
|
||||||
|
}
|
||||||
|
if (["lock", "secure"]?.includes(name)) {
|
||||||
|
return "π"
|
||||||
|
}
|
||||||
|
if (["unlock", "access"]?.includes(name)) {
|
||||||
|
return "π"
|
||||||
|
}
|
||||||
|
if (["thumb-up", "like"]?.includes(name)) {
|
||||||
|
return "π"
|
||||||
|
}
|
||||||
|
if (["thumb-down", "dislike"]?.includes(name)) {
|
||||||
|
return "π"
|
||||||
|
}
|
||||||
}, [name])
|
}, [name])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
import React from "react"
|
import React from "react"
|
||||||
import { Box, Flex } from "@chakra-ui/react"
|
import { Box, Center, Flex } from "@chakra-ui/react"
|
||||||
|
import { Link } from "@remix-run/react"
|
||||||
|
|
||||||
import { Commander } from "../Commander/Commander"
|
import { Commander } from "../Commander/Commander"
|
||||||
|
import { Icon } from "../Icon/Icon"
|
||||||
import { RainbowSkeleton } from "../Skeleton/RainbowSkeleton"
|
import { RainbowSkeleton } from "../Skeleton/RainbowSkeleton"
|
||||||
import { ProfileDrawer } from "./ProfileDrawer"
|
import { ProfileDrawer } from "./ProfileDrawer"
|
||||||
|
|
||||||
@ -36,8 +38,28 @@ export const Nav = (props) => {
|
|||||||
// bg='white'
|
// bg='white'
|
||||||
// boxShadow={'0px 0px 10px rgba(0,0,0,0.1)'}
|
// boxShadow={'0px 0px 10px rgba(0,0,0,0.1)'}
|
||||||
>
|
>
|
||||||
|
<Center
|
||||||
|
width="25px"
|
||||||
|
height="25px"
|
||||||
|
marginRight="auto"
|
||||||
|
transform="scaleX(-100%)"
|
||||||
|
cursor="pointer"
|
||||||
|
>
|
||||||
|
<Link to="/">
|
||||||
|
<Icon size="12px" name="unicorn"></Icon>
|
||||||
|
</Link>
|
||||||
|
</Center>
|
||||||
<Commander></Commander>
|
<Commander></Commander>
|
||||||
<RainbowSkeleton
|
<Center
|
||||||
|
width="25px"
|
||||||
|
height="25px"
|
||||||
|
marginLeft="auto"
|
||||||
|
transform="scaleX(-100%)"
|
||||||
|
cursor="pointer"
|
||||||
|
>
|
||||||
|
<Icon size="12px" name="rainbow"></Icon>
|
||||||
|
</Center>
|
||||||
|
{/* <RainbowSkeleton
|
||||||
marginLeft="auto"
|
marginLeft="auto"
|
||||||
width="25px"
|
width="25px"
|
||||||
height="25px"
|
height="25px"
|
||||||
@ -46,7 +68,7 @@ export const Nav = (props) => {
|
|||||||
background="rgba(0,0,0,0.1)"
|
background="rgba(0,0,0,0.1)"
|
||||||
sx={{}}
|
sx={{}}
|
||||||
borderRadius="999px"
|
borderRadius="999px"
|
||||||
></RainbowSkeleton>
|
></RainbowSkeleton> */}
|
||||||
{/* <RainbowSkeleton w='40px' ml='auto' mr={"4px"}></RainbowSkeleton>
|
{/* <RainbowSkeleton w='40px' ml='auto' mr={"4px"}></RainbowSkeleton>
|
||||||
<RainbowSkeleton></RainbowSkeleton> */}
|
<RainbowSkeleton></RainbowSkeleton> */}
|
||||||
</Flex>
|
</Flex>
|
||||||
|
Loadingβ¦
Reference in New Issue
Block a user