Skip to content

Commit

Permalink
Add documentation link and icon
Browse files Browse the repository at this point in the history
  • Loading branch information
constantgillet committed Apr 27, 2024
1 parent 058eb34 commit 7dbc3da
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 6 deletions.
3 changes: 2 additions & 1 deletion app/components/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export type IconName =
| "text-case-lowercase"
| "image"
| "arrow-upload"
| "checkmark-circle";
| "checkmark-circle"
| "open";

export const iconStyle = cva({
base: {
Expand Down
12 changes: 12 additions & 0 deletions app/routes/_app._main-layout.onboarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,18 @@ const SecondStepComponent = ({ templateId }: { templateId: string | null }) => {
</div>
</div>
)}
<div>
If you need more information, you can check the{" "}
<a
href="https://docs.rendless.com"
className={css({
color: "var(--accent-9)",
textDecoration: "underline",
})}
>
documentation
</a>
</div>
</div>
);
};
15 changes: 10 additions & 5 deletions app/routes/_app._main-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,16 @@ export default function MainLayout() {
</div>
<div className={css({ display: "flex", gap: 4 })}>
<div className={css({ display: "flex", gap: "2" })}>
<Link to={"/"} className={linkClassName}>
{m.help()}
</Link>
<Link to={"/"} className={linkClassName}>
Docs
<Link to={"https://doc.rendless.com"} className={linkClassName}>
Doc
<Icon
name="open"
size="md"
className={css({
transform: "translateY(-8px)",
ml: "1",
})}
/>
</Link>
</div>
<DropdownMenu.Root>
Expand Down
3 changes: 3 additions & 0 deletions public/images/icons-sprite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7dbc3da

Please sign in to comment.