Skip to content

Commit

Permalink
add github repo url
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed-lifa7 committed Jun 10, 2024
1 parent eb9e393 commit 8e5675c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/editor/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import * as Y from "yjs";
import LiveblocksProvider from "@liveblocks/yjs";
import { useRoom, useSelf } from "@/liveblocks.config";
import { useEffect, useRef, useState } from "react";
import { Avatars } from "@/components/users/Avatars";
import { Avatars } from "@/components/editor/Avatars";
import { useTheme } from "next-themes";
import { AddContributor } from "../add-contributor";
import { useEdgeStore } from "@/lib/edgestore";
Expand Down
8 changes: 8 additions & 0 deletions src/components/layout/site-header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import { currentUser } from "@/server/auth";
import { ThemeToggle } from "../theme/theme-toggle";
import { LoginButton } from "../auth/login-button";
import { Button } from "../ui/button";
import Link from "next/link";
import { links } from "@/config/site-config";
import { GitHubLogoIcon } from "@radix-ui/react-icons";

export async function SiteHeader() {
const user = await currentUser();
Expand All @@ -23,6 +26,11 @@ export async function SiteHeader() {
</LoginButton>
)}
<ThemeToggle />
<Button asChild variant="ghost" size="icon" className="rounded-full">
<Link href={links.github}>
<GitHubLogoIcon className="h-[1.2rem] w-[1.2rem]"/>
</Link>
</Button>
</nav>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/theme/theme-toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function ThemeToggle() {
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="ghost" size="icon">
<Button variant="ghost" size="icon" className="rounded-full">
<SunIcon className="h-[1.2rem] w-[1.2rem] rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0" />
<MoonIcon className="absolute h-[1.2rem] w-[1.2rem] rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100" />
<span className="sr-only">Toggle theme</span>
Expand Down
4 changes: 2 additions & 2 deletions src/components/user/user-menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const UserMenu = ({ user }: { user: ExtendedUser }) => {
return (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="outline" size="icon" className="rounded-full">
<Avatar className="flex h-full w-full items-center justify-center">
<Button variant="ghost" size="icon" className="rounded-full">
<Avatar className="flex h-[1.2rem] w-[1.2rem] items-center justify-center">
<AvatarImage src={user.image ?? ""} />
<AvatarFallback className="bg-primary">
<FaUser className="text-primary-foreground" />
Expand Down

0 comments on commit 8e5675c

Please sign in to comment.