Skip to content

Commit 23d4117

Browse files
committed
docs(header): change 'community' link to discord icon / remove 'about' link
1 parent ed6b401 commit 23d4117

File tree

1 file changed

+20
-22
lines changed

1 file changed

+20
-22
lines changed

apps/website/src/components/header/header.tsx

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import { LuX } from '@qwikest/icons/lucide';
2323
import { DocsNavigation } from '../navigation-docs/navigation-docs';
2424
import { useKitMenuItems } from '~/routes/layout';
2525
import { cn } from '@qwik-ui/utils';
26+
import { DiscordIcon } from '../icons/discord';
2627

2728
export interface HeaderProps {
2829
showVersion?: boolean;
@@ -138,12 +139,12 @@ export default component$(({ showVersion = false }: HeaderProps) => {
138139
<header class="flex w-full max-w-screen-2xl items-center justify-between">
139140
<div class="block sm:hidden" />
140141
<section class="xs:flex xs:items-center mr-auto hidden">
141-
<a href="/" aria-label="Qwik UI Logo" class="lg:ml-8">
142+
<a href="/" aria-label="Qwik UI Logo" class="ml-8">
142143
<LogoWithBorders />
143144
</a>
144145
{showVersion && (
145146
<div data-tip="Qwik-UI Version" class="mr-auto">
146-
<div class="ml-4 hidden text-xs sm:flex sm:flex-col md:mt-1 md:text-sm">
147+
<div class="ml-4 hidden text-xs sm:flex-col md:flex">
147148
<span> {kitSignal.value?.name} Kit </span>
148149
<span>
149150
{' '}
@@ -154,11 +155,8 @@ export default component$(({ showVersion = false }: HeaderProps) => {
154155
)}
155156
</section>
156157

157-
<div class="xs:space-x-6 mr-4 flex items-center space-x-6">
158+
<div class="xs:space-x-8 mr-4 flex items-center space-x-6">
158159
<nav class="hidden gap-4 lg:flex">
159-
<a class={isRouteActive('/about')} href="/about">
160-
About
161-
</a>
162160
<a class={isDocsActive('/docs/headless/')} href="/docs/headless/introduction">
163161
Headless Kit
164162
</a>
@@ -167,16 +165,23 @@ export default component$(({ showVersion = false }: HeaderProps) => {
167165
Styled Kit
168166
</a>
169167
)}
170-
<a
171-
class={isRouteActive('https://discord.gg/PVWUUejrez')}
172-
href="https://discord.gg/PVWUUejrez"
173-
target="_blank"
174-
>
175-
Community
176-
</a>
177-
{/* <a href="/contact">Contact</a> */}
178168
</nav>
179169
<MakeItYours />
170+
<a
171+
class={isRouteActive('https://discord.gg/PVWUUejrez')}
172+
href="https://discord.gg/PVWUUejrez"
173+
target="_blank"
174+
>
175+
<DiscordIcon />
176+
</a>
177+
<a
178+
target="_blank"
179+
href="https://github.com/qwikifiers/qwik-ui"
180+
aria-label="Qwik-UI GitHub repository"
181+
class="sm:mr-8"
182+
>
183+
<GitHubIcon />
184+
</a>
180185
<button
181186
type="button"
182187
aria-label="Toggle dark mode"
@@ -191,14 +196,7 @@ export default component$(({ showVersion = false }: HeaderProps) => {
191196
<SunIcon />
192197
</div>
193198
</button>
194-
<a
195-
target="_blank"
196-
href="https://github.com/qwikifiers/qwik-ui"
197-
aria-label="Qwik-UI GitHub repository"
198-
class="sm:mr-8"
199-
>
200-
<GitHubIcon />
201-
</a>
199+
202200
<button
203201
type="button"
204202
aria-label="Toggle navigation"

0 commit comments

Comments
 (0)