From b14e2e5ab426297986780480097b413c70badfd9 Mon Sep 17 00:00:00 2001 From: Rebecca Black Date: Wed, 8 May 2024 16:32:57 -0400 Subject: [PATCH 1/9] updated search box styles to match atlas --- src/components/map/SearchBox.tsx | 13 +++++++------ src/components/map/SearchFilters.tsx | 2 +- src/layouts/Layout.astro | 3 ++- tailwind.config.mjs | 5 ++++- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/src/components/map/SearchBox.tsx b/src/components/map/SearchBox.tsx index 26c8813..70d913a 100644 --- a/src/components/map/SearchBox.tsx +++ b/src/components/map/SearchBox.tsx @@ -1,14 +1,15 @@ import { useSearchBox } from '@performant-software/core-data'; import { Search, X } from 'lucide-react'; import { type FormEvent, useCallback, useRef } from 'react'; -// import resolveConfig from 'tailwindcss/resolveConfig'; -// import tailwindConfig from '../../../tailwind.config.mjs'; +import resolveConfig from 'tailwindcss/resolveConfig'; +import tailwindConfig from '../../../tailwind.config.mjs'; const SearchBox = () => { const { query, refine } = useSearchBox(); // const { theme } = resolveConfig(tailwindConfig); - // const color = theme.colors.gray['900']; + // const color = theme.colors.gray['1000']; + const color = '#505A6A'; const inputRef = useRef(null); @@ -39,10 +40,10 @@ const SearchBox = () => { > refine(e.target.value)} placeholder='Search' ref={inputRef} @@ -51,7 +52,7 @@ const SearchBox = () => { /> diff --git a/src/components/map/SearchFilters.tsx b/src/components/map/SearchFilters.tsx index e69106b..602e12d 100644 --- a/src/components/map/SearchFilters.tsx +++ b/src/components/map/SearchFilters.tsx @@ -21,7 +21,7 @@ const SearchFilters = () => { return ( <>
setOpen((prevOpen) => !prevOpen)} > diff --git a/src/layouts/Layout.astro b/src/layouts/Layout.astro index f595d6c..6617749 100644 --- a/src/layouts/Layout.astro +++ b/src/layouts/Layout.astro @@ -1,9 +1,10 @@ --- import { ViewTransitions } from 'astro:transitions'; import Header from '../components/Header.astro'; +import '@performant-software/core-data/style.css'; +import '@performant-software/geospatial/style.css'; import '@peripleo/maplibre/peripleo-maplibre.css'; import '@peripleo/peripleo/default-theme'; -import '@performant-software/core-data/style.css'; import '../styles/index.css'; export interface Props { diff --git a/tailwind.config.mjs b/tailwind.config.mjs index 6a8dd79..53c53fd 100644 --- a/tailwind.config.mjs +++ b/tailwind.config.mjs @@ -19,7 +19,10 @@ export default { }, colors: { 'neutral-dark': '#111928', - 'neutral-light': '#F5F5F5' + 'neutral-light': '#F5F5F5', + gray: { + 1000: '#505A6A' + }, } }, }, From 89beefed0ab32d05f1a0deaa6c02badcbbf69db0 Mon Sep 17 00:00:00 2001 From: Rebecca Black Date: Wed, 8 May 2024 20:41:11 -0400 Subject: [PATCH 2/9] added "show more" to facet lists --- src/components/map/SearchFilters.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/map/SearchFilters.tsx b/src/components/map/SearchFilters.tsx index 602e12d..485bd03 100644 --- a/src/components/map/SearchFilters.tsx +++ b/src/components/map/SearchFilters.tsx @@ -86,6 +86,8 @@ const SearchFilters = () => { renderList={(attribute: string) => ( )} resolveLabel={(uuid: string) => (uuid)} From 8452aba451f128537472de2cb66994b0febab612 Mon Sep 17 00:00:00 2001 From: Rebecca Black Date: Wed, 8 May 2024 20:47:44 -0400 Subject: [PATCH 3/9] removed featured work sections from home and about pages --- src/pages/about.astro | 4 ++-- src/pages/index.astro | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/about.astro b/src/pages/about.astro index cbe4089..c646ae6 100644 --- a/src/pages/about.astro +++ b/src/pages/about.astro @@ -42,7 +42,7 @@ const postsData = postsResponse.data.postConnection.edges?.map((item) => item?.n
- +