Skip to content

Commit

Permalink
fix: shadow on navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
andihaki committed Jul 24, 2024
1 parent 75cb411 commit 42a5124
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/components/background-gradient.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { cn } from "~/utils/cn";

export default function BackgroundGradient() {
return (
<div
className={cn(
"absolute left-0 right-0 -z-10 block h-96 w-full",
"bg-[radial-gradient(ellipse_at_top,_var(--tw-gradient-stops))]",
"from-x-blue-700 via-x-black-700/15 to-x-black-900/20",
"dark:from-x-blue-700 dark:via-x-black-700/15 dark:to-x-black-900/20",
)}
/>
);
}
2 changes: 2 additions & 0 deletions app/components/shared/site-navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import { AlignRight } from "lucide-react";

import { Sheet, SheetContent, SheetTrigger } from "~/components/ui/sheet";
import { Navigation, navigationItems } from "./navigation";
import BackgroundGradient from "../background-gradient";

export function SiteNavigation() {
return (
<div className="flex justify-center items-center">
<BackgroundGradient />
<nav className="container !p-4 !lg:p-8 items-center">
<Link to="/" className="text-xl font-bold">
ReactJS ID
Expand Down
6 changes: 6 additions & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ export default {
extend: {
colors: {
lightGray: "#C7CBD1",
"x-blue-700": "#3E4F6B",
"x-blue-300": "#B1C8E7",
"x-blue-200": "#8E96A5",
"x-black-900": "#15181D",
"x-black-700": "#1B212A",
"x-black-500": "#2E3137",
darkJoinButton: "#20242B",
darkBorderJoinButton: "#2E3137",
border: "hsl(var(--border))",
Expand Down

0 comments on commit 42a5124

Please sign in to comment.