vibrant nav
This commit is contained in:
parent
ab88b670e8
commit
87cb5d6525
@ -5,12 +5,12 @@ import useDimensions from "react-cool-dimensions";
|
||||
|
||||
import Menu from "@spectrum-icons/workflow/Menu";
|
||||
|
||||
const navClasses = "hover:underline hover:bg-gray-900 block p-3 text-gray-200";
|
||||
const navClasses = "hover:underline hover:bg-transparentblack block p-3 text-vibrant-light";
|
||||
|
||||
const ExternalLinks = ({ isVertical }: { isVertical: boolean }) => (
|
||||
<ul
|
||||
className={classnames(
|
||||
"z-30 bg-black rounded overflow-hidden",
|
||||
"z-30 bg-vibrant-dark rounded overflow-hidden",
|
||||
isVertical
|
||||
? "inline-flex flex-wrap justify-center"
|
||||
: "absolute rounded-md top-[40px] border border-white"
|
||||
@ -89,7 +89,7 @@ const Nav = ({ internalLinks, className }: NavProps) => {
|
||||
<nav
|
||||
className={classnames(
|
||||
"mt-0 flex justify-center w-full font-serif",
|
||||
"text-gray-200 bg-black shadow-lg",
|
||||
"bg-vibrant-dark",
|
||||
className
|
||||
)}
|
||||
ref={observe}
|
||||
|
@ -6,7 +6,7 @@ import { Picker, Item } from "@adobe/react-spectrum";
|
||||
|
||||
import MasonryGallery from "../components/MasonryGallery";
|
||||
import KeywordsPicker from "../components/KeywordsPicker";
|
||||
import { getGalleryPageUrl } from "../utils";
|
||||
import { getGalleryPageUrl, getHelmetSafeBodyStyle } from "../utils";
|
||||
import Nav from "../components/Nav";
|
||||
|
||||
const SORT_KEYS = {
|
||||
@ -162,7 +162,18 @@ const GalleryPage = ({ data }: PageProps<Queries.GalleryPageQueryQuery>) => {
|
||||
{/* @ts-ignore */}
|
||||
<Helmet>
|
||||
<title>Photo Gallery | Chuck Dries</title>
|
||||
<body className="bg-black text-white" />
|
||||
<body
|
||||
className="bg-black text-white"
|
||||
// @ts-ignore
|
||||
style={getHelmetSafeBodyStyle({
|
||||
Muted: [255, 255, 255],
|
||||
DarkMuted: [0, 0, 0],
|
||||
LightMuted: [255, 255, 255],
|
||||
Vibrant: [255, 255, 255],
|
||||
LightVibrant: [255, 255, 255],
|
||||
DarkVibrant: [0, 0, 0],
|
||||
})}
|
||||
/>
|
||||
</Helmet>
|
||||
<div className="top-0 z-10 bg-black">
|
||||
<Nav className="mb-4" internalLinks={[{ href: "/", label: "Home" }]} />
|
||||
|
@ -46,6 +46,7 @@ module.exports = {
|
||||
},
|
||||
colors: {
|
||||
buzzwordsPrimary: "#F6C54B",
|
||||
transparentblack: "rgba(0,0,0,0.3)",
|
||||
vibrant: {
|
||||
DEFAULT: ({ opacityVariable, opacityValue }) => {
|
||||
if (opacityValue !== undefined) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user