forked from ZencypherSolutions/socialsphere
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: create navbar profile component ZencypherSolutions#3
- Loading branch information
1 parent
86aa855
commit 6d444a6
Showing
2 changed files
with
37 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import React from "react"; | ||
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; | ||
import { Button } from "@/components/ui/button"; | ||
import { SidebarFooter } from "@/components/ui/sidebar"; | ||
import { Gem, GemIcon } from "lucide-react"; | ||
|
||
const Profile = () => { | ||
return ( | ||
<> | ||
<SidebarFooter className="mt-auto border-t p-4"> | ||
<div className="flex items-center text-purple-700 text-xs font-medium gap-2"> | ||
<GemIcon /> Navbar Profile | ||
</div> | ||
<Button | ||
variant="ghost" | ||
className="w-full justify-start gap-2 bg-[#2c5154] text-white hover:bg-[#3d4f59] hover:text-white rounded-full" | ||
> | ||
<Avatar className="h-6 w-6"> | ||
<AvatarImage src="/placeholder.svg" /> | ||
<AvatarFallback> | ||
<div className="relative w-full h-full flex items-center justify-center"> | ||
<div className="absolute w-full h-full bg-white rounded-full"></div> | ||
<div className="absolute w-[80%] h-[80%] bg-[#E36C59] rounded-full"></div> | ||
<div className="absolute top-[15%] w-[30%] h-[30%] bg-[#232931] rounded-full"></div> | ||
</div> | ||
</AvatarFallback> | ||
</Avatar> | ||
<span>John Doe</span> | ||
</Button> | ||
</SidebarFooter> | ||
</> | ||
); | ||
}; | ||
|
||
export default Profile; |