Skip to content

Commit

Permalink
NEOS-603: add banner to marketing site (#1043)
Browse files Browse the repository at this point in the history
  • Loading branch information
evisdrenova committed Jan 5, 2024
1 parent 7b900c4 commit e17ef16
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 3 deletions.
2 changes: 2 additions & 0 deletions marketing/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Footer from '@/components/Footer';
import GithubBanner from '@/components/banner/GithubBanner';
import TopNav from '@/components/nav/TopNav';
import Script from 'next/script';
import '../styles/global.css';
Expand Down Expand Up @@ -47,6 +48,7 @@ __ls("newPageView");
`}
</Script>
<div className="flex flex-col w-full relative">
<GithubBanner />
<TopNav />
<div>{children}</div>
<Footer />
Expand Down
37 changes: 37 additions & 0 deletions marketing/components/banner/GithubBanner.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
'use client';
import {
GitHubLogoIcon,
StarFilledIcon,
TwitterLogoIcon,
} from '@radix-ui/react-icons';
import { useRouter } from 'next/navigation';
import { Button } from '../ui/button';

export default function GithubBanner() {
const router = useRouter();
return (
<div className=" top-0 flex flex-row gap-3 justify-center w-full h-[35px]-400 items-center bg-[#D9E6ED]">
<div>
If you like Neosync, give it a{' '}
<StarFilledIcon className="text-yellow-500 inline h-[20px] w-[20px]" />{' '}
on GitHub and follow us on Twitter
</div>
<div className="flex flex-row gap-2">
<Button
onClick={() => router.push('https://github.com/nucleuscloud/neosync')}
variant="ghost"
className="hover:bg-gray-300"
>
<GitHubLogoIcon />
</Button>
<Button
onClick={() => router.push('https://twitter.com/neosynccloud')}
variant="ghost"
className="hover:bg-gray-300 "
>
<TwitterLogoIcon />
</Button>
</div>
</div>
);
}
5 changes: 2 additions & 3 deletions marketing/components/nav/TopNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export default function TopNav(): ReactElement {
<Dialog>
<DialogTrigger asChild>
<Button variant="default">
Private Beta <ArrowRightIcon className="ml-2 h-5 w-5" />
Neosync Cloud <ArrowRightIcon className="ml-2 h-5 w-5" />
</Button>
</DialogTrigger>
<DialogContent className="sm:max-w-lg bg-black border border-gray-600 p-6">
Expand Down Expand Up @@ -204,7 +204,6 @@ function MobileMenu(): ReactElement {
>
<Link href="https://github.com/nucleuscloud/neosync">
<div className="flex flex-row items-center">
<p>Star us on</p>
<GitHubLogoIcon className="ml-2 h-4 w-4" />
</div>
</Link>
Expand All @@ -214,7 +213,7 @@ function MobileMenu(): ReactElement {
<Dialog>
<DialogTrigger asChild>
<Button variant="default">
Private Beta <ArrowRightIcon className="ml-2 h-5 w-5" />
Neosync Cloud <ArrowRightIcon className="ml-2 h-5 w-5" />
</Button>
</DialogTrigger>
<DialogContent className="sm:max-w-lg bg-black border border-gray-600 p-6">
Expand Down

1 comment on commit e17ef16

@vercel
Copy link

@vercel vercel bot commented on e17ef16 Jan 5, 2024

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.