From 86b7c896ada99e085e7e1a54585cd38075561e24 Mon Sep 17 00:00:00 2001 From: Kevin Wu Date: Wed, 3 Apr 2024 12:24:53 -0700 Subject: [PATCH] style: reduce content in search and blurb --- components/search/Blurb.tsx | 46 +++++++----------------------------- components/search/Search.tsx | 8 +++---- 2 files changed, 12 insertions(+), 42 deletions(-) diff --git a/components/search/Blurb.tsx b/components/search/Blurb.tsx index e773e08..353fca1 100644 --- a/components/search/Blurb.tsx +++ b/components/search/Blurb.tsx @@ -8,54 +8,26 @@ interface BlurbProps { ) => CollegeObject[]; data: CollegeObject[] | undefined; filterValues: FilterValues; - searchUniversity: string; - searchGE: string; } -const SearchBlurb = (props: BlurbProps) => { - const { filterData, data, filterValues, searchUniversity, searchGE } = - props; +const Blurb = (props: BlurbProps) => { + const { filterData, data, filterValues } = props; return ( <> -
-
- Search Results -
-
+
+
We found{" "} {data ? filterData(data, filterValues).length : "x"}{" "} courses {" "} - that may articulate to{" "} - {searchUniversity} for{" "} - {`${searchGE?.split( - " ", - )[0]} Category ${searchGE?.split(" ")[1]}`}{" "} - based on{" "} - - Assist.org - {" "} - and{" "} - - CVC.edu - - . Please consult an academic advisor for further - information. + based on your search and filters. Please consult an + academic advisor for further information.
-
+ +
{"GE-Z's"} data was last updated on 3/7
@@ -66,4 +38,4 @@ const SearchBlurb = (props: BlurbProps) => { ); }; -export default SearchBlurb; +export default Blurb; diff --git a/components/search/Search.tsx b/components/search/Search.tsx index 91ed6a9..c074f9e 100644 --- a/components/search/Search.tsx +++ b/components/search/Search.tsx @@ -8,7 +8,7 @@ import SearchResults from "./SearchResults"; import ScrollToTop from "./ScrollToTop"; import { FaFilter } from "react-icons/fa6"; import { SearchFilterPage, SearchFilters } from "./Filters"; -import SearchBlurb from "./Blurb"; +import Blurb from "./Blurb"; import { filterData } from "./filter-utils"; import { UNIVERSITY_GE } from "@/lib/constants"; @@ -256,7 +256,7 @@ const Search = () => { courses={courses} /> ) : ( -
+
Search{" "} @@ -280,12 +280,10 @@ const Search = () => {
-