Skip to content

Commit

Permalink
docs: add Discord join link to Navbar (#919)
Browse files Browse the repository at this point in the history
* docs(footer): update light mode background to `bg-gray-50`

* docs(navbar): add Discord community icon and link to navigation
  • Loading branch information
zoltanszogyenyi authored Aug 21, 2023
1 parent d694bfc commit 99ac396
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions app/components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { DocSearch } from '@docsearch/react';
import Link from 'next/link';
import type { FC } from 'react';
import { BsGithub } from 'react-icons/bs';
import { SiStorybook } from 'react-icons/si';
import { SiDiscord, SiStorybook } from 'react-icons/si';
import { Badge, DarkThemeToggle, Tooltip } from '~/src';
import pkg from './../../package.json' assert { type: 'json' };

Expand Down Expand Up @@ -45,13 +45,21 @@ export const NavbarIcons: FC = () => {
<DocSearch appId="4ECQXWXLSO" indexName="flowbite-react" apiKey="9c32f687c9058e3d3f27adff654d48d9" />
</div>
<a
href="https://flowbite-react-git-storybook-themesberg.vercel.app"
href="https://storybook.flowbite-react.com/"
className="hidden rounded-lg p-2.5 text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-300 dark:hover:bg-gray-700 dark:focus:ring-gray-700 lg:block"
>
<Tooltip animation={false} content="View Storybook">
<SiStorybook aria-hidden className="h-5 w-5" />
</Tooltip>
</a>
<a
href="https://discord.gg/4eeurUVvTy"
className="hidden rounded-lg p-2.5 text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-300 dark:hover:bg-gray-700 dark:focus:ring-gray-700 lg:block"
>
<Tooltip animation={false} content="Join Discord Community">
<SiDiscord aria-hidden className="h-5 w-5" />
</Tooltip>
</a>
<a
href="https://github.com/themesberg/flowbite-react"
className="hidden rounded-lg p-2.5 text-gray-500 hover:bg-gray-100 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:text-gray-300 dark:hover:bg-gray-700 dark:focus:ring-gray-700 lg:block"
Expand Down
2 changes: 1 addition & 1 deletion app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1164,7 +1164,7 @@ const DarkModeSwitcher: FC = () => {

const MainFooter: FC = () => {
return (
<Footer className="rounded-none pb-8 pt-16 shadow-none">
<Footer className="rounded-none bg-gray-50 pb-8 pt-16 shadow-none">
<div className="mx-auto w-full max-w-8xl px-4 lg:px-20">
<div className="grid w-full justify-between gap-8 md:grid-cols-2">
<div className="mb-4 max-w-sm lg:mb-0">
Expand Down

1 comment on commit 99ac396

@vercel
Copy link

@vercel vercel bot commented on 99ac396 Aug 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.