-
Notifications
You must be signed in to change notification settings - Fork 548
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
33 additions
and
72 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
|
@@ -14,15 +14,22 @@ import { | |
} from "./UI/Popover"; | ||
import { Form } from "remix"; | ||
import { useJsonDoc } from "~/hooks/useJsonDoc"; | ||
import { LogoTriggerdotdev } from "./Icons/LogoTriggerdotdev"; | ||
|
||
export function Header() { | ||
const { doc } = useJsonDoc(); | ||
|
||
return ( | ||
<header className="flex items-center justify-between w-screen h-[40px] bg-indigo-700 dark:bg-slate-800 border-b-[1px] border-slate-600"> | ||
<Logo className="pl-1 pr-2" width={"130"} /> | ||
<div className="flex pl-2 gap-1 sm:gap-1.5 pt-0.5 h-8 justify-center items-center"> | ||
<div className="w-20 sm:w-24"> | ||
<Logo /> | ||
</div> | ||
<p className="text-slate-300 text-sm font-sans">by</p> | ||
<LogoTriggerdotdev className="w-16 sm:w-20 opacity-80 hover:opacity-100 transition duration-300" /> | ||
</div> | ||
<DocumentTitle /> | ||
<ol className="flex items-center gap-2 px-4"> | ||
<ol className="flex text-sm items-center gap-2 px-4"> | ||
{!doc.readOnly && ( | ||
<Form | ||
method="delete" | ||
|
@@ -33,7 +40,7 @@ export function Header() { | |
} | ||
> | ||
<button type="submit"> | ||
<button className="flex items-center justify-center py-1 bg-slate-200 text-slate-800 bg-opacity-90 text-base font-bold px-2 rounded-sm uppercase hover:cursor-pointer hover:bg-opacity-100 transition"> | ||
<button className="flex items-center justify-center py-1 bg-slate-200 text-slate-800 bg-opacity-80 text-base font-bold px-2 rounded uppercase hover:cursor-pointer hover:bg-opacity-100 transition"> | ||
<TrashIcon className="w-4 h-4 mr-0.5"></TrashIcon> | ||
Delete | ||
</button> | ||
|
@@ -43,7 +50,7 @@ export function Header() { | |
|
||
<Popover> | ||
<PopoverTrigger> | ||
<button className="flex items-center justify-center bg-lime-500 text-slate-800 bg-opacity-90 text-base font-bold px-2 py-1 rounded-sm uppercase hover:cursor-pointer hover:bg-opacity-100 transition"> | ||
<button className="flex items-center justify-center bg-lime-500 text-slate-800 bg-opacity-90 text-base font-bold px-2 py-1 rounded uppercase hover:cursor-pointer hover:bg-opacity-100 transition"> | ||
<PlusIcon className="w-4 h-4 mr-0.5"></PlusIcon> | ||
New | ||
</button> | ||
|
@@ -59,7 +66,7 @@ export function Header() { | |
|
||
<Popover> | ||
<PopoverTrigger> | ||
<button className="flex items-center justify-center py-1 bg-slate-200 text-slate-800 bg-opacity-90 text-base font-bold px-2 rounded-sm uppercase hover:cursor-pointer hover:bg-opacity-100 transition"> | ||
<button className="flex items-center justify-center py-1 bg-slate-200 text-slate-800 bg-opacity-90 text-base font-bold px-2 rounded uppercase hover:cursor-pointer hover:bg-opacity-100 transition"> | ||
<ShareIcon className="w-4 h-4 mr-1"></ShareIcon> | ||
Share | ||
</button> | ||
|
@@ -76,11 +83,6 @@ export function Header() { | |
<li className="opacity-90 transition hover:cursor-pointer hover:opacity-100"> | ||
<GithubStar /> | ||
</li> | ||
<li className="hover:cursor-pointer opacity-90 hover:opacity-100 transition"> | ||
<a href="mailto:[email protected]"> | ||
<EmailIconTransparent /> | ||
</a> | ||
</li> | ||
<li className="opacity-90 transition hover:cursor-pointer hover:opacity-100"> | ||
<a href="https://discord.gg/JtBAxBr2m3" target="_blank"> | ||
<DiscordIconTransparent /> | ||
|
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
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
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
Binary file not shown.