|
1 | 1 | import { connectionStateAtom } from "@/stores/manager";
|
2 | 2 | import { cn, ShimmerLine } from "@rivet-gg/components";
|
3 | 3 | import { Header as RivetHeader, NavItem } from "@rivet-gg/components/header";
|
4 |
| -import { |
5 |
| - Icon, |
6 |
| - faBluesky, |
7 |
| - faDiscord, |
8 |
| - faGithub, |
9 |
| - faXTwitter, |
10 |
| -} from "@rivet-gg/icons"; |
| 4 | +import { faGithub, Icon } from "@rivet-gg/icons"; |
11 | 5 | import { Link } from "@tanstack/react-router";
|
12 | 6 | import { useAtomValue } from "jotai";
|
13 | 7 | import type { PropsWithChildren, ReactNode } from "react";
|
@@ -47,94 +41,28 @@ const Header = () => {
|
47 | 41 | ) : null
|
48 | 42 | }
|
49 | 43 | links={
|
50 |
| - <NavItem asChild> |
51 |
| - <Link |
52 |
| - to="." |
53 |
| - search={(old) => ({ ...old, modal: "feedback" })} |
54 |
| - > |
55 |
| - Feedback |
56 |
| - </Link> |
57 |
| - </NavItem> |
| 44 | + <> |
| 45 | + <NavItem asChild> |
| 46 | + <a href="https://github.com/rivet-gg/rivet"> |
| 47 | + <Icon icon={faGithub} /> |
| 48 | + </a> |
| 49 | + </NavItem> |
| 50 | + <NavItem asChild> |
| 51 | + <Link |
| 52 | + to="." |
| 53 | + search={(old) => ({ ...old, modal: "feedback" })} |
| 54 | + > |
| 55 | + Feedback |
| 56 | + </Link> |
| 57 | + </NavItem> |
| 58 | + </> |
58 | 59 | }
|
59 | 60 | />
|
60 | 61 | );
|
61 | 62 | };
|
62 | 63 |
|
63 | 64 | const Footer = () => {
|
64 |
| - return ( |
65 |
| - <footer className="text-muted-foreground bg-background p-4 text-center text-sm border-t relative"> |
66 |
| - <div className="container"> |
67 |
| - <div className="flex items-center justify-between"> |
68 |
| - <div className="flex gap-4 items-center justify-between w-full lg:w-auto lg:justify-normal"> |
69 |
| - <div className="flex gap-4 items-center"> |
70 |
| - <img |
71 |
| - src="/logo.svg" |
72 |
| - alt="Rivet.gg" |
73 |
| - className="h-6" |
74 |
| - /> |
75 |
| - © {new Date().getFullYear()} |
76 |
| - </div> |
77 |
| - </div> |
78 |
| - <div>{/* <CommandPanel /> */}</div> |
79 |
| - </div> |
80 |
| - <div className="flex flex-col lg:flex-row items-center justify-between mt-4 gap-4 lg:gap-0 lg:mt-8 mb-4"> |
81 |
| - <div className="text-base flex items-center gap-4"> |
82 |
| - <NavItem |
83 |
| - href="https://rivet.gg/discord" |
84 |
| - target="_blank" |
85 |
| - rel="noreferrer" |
86 |
| - > |
87 |
| - <Icon icon={faDiscord} /> |
88 |
| - </NavItem> |
89 |
| - <NavItem |
90 |
| - href="https://github.com/rivet-gg" |
91 |
| - target="_blank" |
92 |
| - rel="noreferrer" |
93 |
| - > |
94 |
| - <Icon icon={faGithub} /> |
95 |
| - </NavItem> |
96 |
| - <NavItem |
97 |
| - href="https://bsky.app/profile/rivet.gg" |
98 |
| - target="_blank" |
99 |
| - rel="noreferrer" |
100 |
| - > |
101 |
| - <Icon icon={faBluesky} /> |
102 |
| - </NavItem> |
103 |
| - <NavItem |
104 |
| - href="https://x.com/rivet_gg" |
105 |
| - target="_blank" |
106 |
| - rel="noreferrer" |
107 |
| - > |
108 |
| - <Icon icon={faXTwitter} /> |
109 |
| - </NavItem> |
110 |
| - </div> |
111 |
| - <div className="flex items-center flex-wrap justify-between lg:justify-normal w-full lg:w-auto gap-4 lg:gap-8"> |
112 |
| - <NavItem |
113 |
| - href="https://rivet.gg" |
114 |
| - target="_blank" |
115 |
| - rel="noreferrer" |
116 |
| - > |
117 |
| - Home |
118 |
| - </NavItem> |
119 |
| - <NavItem |
120 |
| - href="https://rivet.gg/support" |
121 |
| - target="_blank" |
122 |
| - rel="noreferrer" |
123 |
| - > |
124 |
| - Help |
125 |
| - </NavItem> |
126 |
| - <NavItem |
127 |
| - href="https://rivet.gg/docs" |
128 |
| - target="_blank" |
129 |
| - rel="noreferrer" |
130 |
| - > |
131 |
| - Docs |
132 |
| - </NavItem> |
133 |
| - </div> |
134 |
| - </div> |
135 |
| - </div> |
136 |
| - </footer> |
137 |
| - ); |
| 65 | + return null; |
138 | 66 | };
|
139 | 67 |
|
140 | 68 | export { Root, Main, Header, Footer, VisibleInFull };
|
0 commit comments