Skip to content

Commit

Permalink
Merge pull request #782 from raspiblitz/documentation-button
Browse files Browse the repository at this point in the history
feat: add documentation button to setup
  • Loading branch information
cstenglein authored Oct 5, 2024
2 parents c7007a5 + fd3e08b commit 02728f6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
18 changes: 16 additions & 2 deletions src/layouts/SetupContainer.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { Button } from "@/components/Button";
import I18nSelect from "@/components/I18nDropdown";
import Stepper from "@/pages/Setup/Stepper";
import { BookOpenIcon } from "@heroicons/react/24/outline";
import { PropsWithChildren } from "react";

type Props = {
Expand All @@ -12,12 +14,24 @@ export default function SetupContainer({
}: PropsWithChildren<Props>) {
return (
<main className="flex min-h-screen h-full w-screen flex-col items-center justify-center bg-primary-900 transition-colors text-white">
<div className="fixed right-16 top-4 flex h-8 w-48 items-center justify-around">
<div className="fixed md:right-16 top-16 md:top-8 flex h-8 w-48 md:w-96 md:flex-row flex-col-reverse gap-6 md:gap-4 justify-center items-center">
<Button
as="a"
href="https://docs.raspiblitz.org/"
target="_blank"
rel="noreferrer"
color="primary"
variant="ghost"
className="p-4 w-full"
startContent={<BookOpenIcon className="w-5 h-5" />}
>
Documentation
</Button>
<I18nSelect />
</div>

{currentStep !== null && (
<div className="fixed mb-4 top-12 flex items-center justify-around w-1/3">
<div className="fixed mb-4 top-24 flex items-center justify-around w-1/3">
<Stepper currentStep={currentStep} />
</div>
)}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Apps/AppInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ export const AppInfo: FC = () => {
<Link
href={repository}
target="_blank"
rel="noreferrer noopener"
rel="noreferrer"
underline="always"
>
{repository}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Setup/LightningDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default function LightningDialog({ callback }: Props) {
href="https://docs.raspiblitz.org/docs/setup/software-setup/basic"
className="text-primary underline"
target="_blank"
rel="noopener noreferrer"
rel="noreferrer"
></a>,
]}
/>
Expand Down

0 comments on commit 02728f6

Please sign in to comment.