-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(frontend): Root layout route (#5275)
- Loading branch information
Showing
13 changed files
with
378 additions
and
303 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
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
import AllHandsLogo from "#/assets/branding/all-hands-logo.svg?react"; | ||
|
||
interface AllHandsLogoButtonProps { | ||
onClick: () => void; | ||
} | ||
|
||
export function AllHandsLogoButton({ onClick }: AllHandsLogoButtonProps) { | ||
return ( | ||
<button type="button" aria-label="All Hands Logo" onClick={onClick}> | ||
<AllHandsLogo width={34} height={23} /> | ||
</button> | ||
); | ||
} |
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,15 @@ | ||
import DocsIcon from "#/icons/docs.svg?react"; | ||
|
||
export function DocsButton() { | ||
return ( | ||
<a | ||
href="https://docs.all-hands.dev" | ||
aria-label="Documentation" | ||
target="_blank" | ||
rel="noreferrer noopener" | ||
className="w-8 h-8 rounded-full hover:opacity-80 flex items-center justify-center" | ||
> | ||
<DocsIcon width={28} height={28} /> | ||
</a> | ||
); | ||
} |
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,18 @@ | ||
import NewProjectIcon from "#/icons/new-project.svg?react"; | ||
|
||
interface ExitProjectButtonProps { | ||
onClick: () => void; | ||
} | ||
|
||
export function ExitProjectButton({ onClick }: ExitProjectButtonProps) { | ||
return ( | ||
<button | ||
data-testid="new-project-button" | ||
type="button" | ||
aria-label="Start new project" | ||
onClick={onClick} | ||
> | ||
<NewProjectIcon width={28} height={28} /> | ||
</button> | ||
); | ||
} |
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,18 @@ | ||
import CogTooth from "#/assets/cog-tooth"; | ||
|
||
interface SettingsButtonProps { | ||
onClick: () => void; | ||
} | ||
|
||
export function SettingsButton({ onClick }: SettingsButtonProps) { | ||
return ( | ||
<button | ||
type="button" | ||
aria-label="Settings" | ||
className="w-8 h-8 rounded-full hover:opacity-80 flex items-center justify-center" | ||
onClick={onClick} | ||
> | ||
<CogTooth /> | ||
</button> | ||
); | ||
} |
Oops, something went wrong.