feat: feature/mvp-sprint-1 Added home icon link in nav

This commit is contained in:
Nikolaj Frey 2023-08-09 10:43:18 +10:00
parent fe3b9eb496
commit 75deb9a2ff
2 changed files with 103 additions and 3 deletions

View File

@ -49,6 +49,84 @@ export const Icon = (props) => {
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])
return (

View File

@ -1,7 +1,9 @@
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 { Icon } from "../Icon/Icon"
import { RainbowSkeleton } from "../Skeleton/RainbowSkeleton"
import { ProfileDrawer } from "./ProfileDrawer"
@ -36,8 +38,28 @@ export const Nav = (props) => {
// bg='white'
// 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>
<RainbowSkeleton
<Center
width="25px"
height="25px"
marginLeft="auto"
transform="scaleX(-100%)"
cursor="pointer"
>
<Icon size="12px" name="rainbow"></Icon>
</Center>
{/* <RainbowSkeleton
marginLeft="auto"
width="25px"
height="25px"
@ -46,7 +68,7 @@ export const Nav = (props) => {
background="rgba(0,0,0,0.1)"
sx={{}}
borderRadius="999px"
></RainbowSkeleton>
></RainbowSkeleton> */}
{/* <RainbowSkeleton w='40px' ml='auto' mr={"4px"}></RainbowSkeleton>
<RainbowSkeleton></RainbowSkeleton> */}
</Flex>