diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 4de01ca..588e56d 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -50,7 +50,7 @@ const NavBar = () => { const resourcesDropDown: DropdownOption[] = [ { label: "search", - href: "/resources/survey", + href: "/resources/search", }, { label: "view all", diff --git a/src/components/Survey.tsx b/src/components/Search.tsx similarity index 91% rename from src/components/Survey.tsx rename to src/components/Search.tsx index 97cc672..1e76b6b 100644 --- a/src/components/Survey.tsx +++ b/src/components/Search.tsx @@ -26,15 +26,15 @@ const GreetingPage = ({updatePage}: { return (
-

Welcome to the resources survey!

-

We will ask a few questions about the patient and then recommend the best resources based on your answers!

+

Welcome to the auditory training resource search tool!

+

We will ask a few questions about the patient and then recommend the best auditory training resources based on your answers!

) } /** - * Single question component for a guided survey + * Single question component for a guided search */ const QuestionPage = ({isLastPage, page, question, updatePage, formData, updateFormData, dontCareData, setDontCareData}: { isLastPage: boolean, @@ -131,7 +131,7 @@ const QuestionPage = ({isLastPage, page, question, updatePage, formData, updateF :
- +
} @@ -174,7 +174,7 @@ const PageTransition = ({backwards, lastPage, currentPage}: { currentPage: JSX.Element, }) => { return ( -
+
{currentPage}
@@ -188,10 +188,10 @@ const PageTransition = ({backwards, lastPage, currentPage}: { }; /** - * Main guided survey component. + * Main guided search component. * Page 0 = greeting page. */ -const GuidedSurvey = ({questions}: { +const GuidedSearch = ({questions}: { questions: Question[], }) => { const [page, setPage] = useState(0); @@ -204,7 +204,7 @@ const GuidedSurvey = ({questions}: { setPage(pageNumber); }; - const SurveyPage = ({pageNumber}: { + const SearchPage = ({pageNumber}: { pageNumber?: number, }) => { if (pageNumber === undefined) { @@ -247,8 +247,8 @@ const GuidedSurvey = ({questions}: { ); } - const lastPage = ; - const currentPage = ; + const lastPage = ; + const currentPage = ; const backwards = (previousPage ?? -1) >= page; return ( @@ -260,7 +260,7 @@ const GuidedSurvey = ({questions}: { {/** Hidden html */} -
+ {questions.map((question, index) => { return })} @@ -270,5 +270,5 @@ const GuidedSurvey = ({questions}: { } export { - GuidedSurvey, + GuidedSearch, } diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 86434c5..40ea185 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -29,10 +29,10 @@ const Home: NextPage = () => { }} className="h-full w-full grid place-items-center">

Welcome to the Resource Center for Auditory Training!

-
-

Looking for resource recommendations?

- - Start Survey +
+

Looking for resource recommendations?

+ + Search for Auditory Resources
@@ -50,7 +50,7 @@ const Home: NextPage = () => {
-

You can use the Resources tab to scroll through the list of all resources, or the Search tab to filter resources based on your preferences and skill level. We also have an About tab to learn more about the creators of this website and a Contact Us tab to submit any comments or questions you have about the site and auditory training in general. We hope you find this website helpful in your auditory training journey, and we are here to support you every step of the way.

+

You can use the Resources tab to scroll through the list of all resources, or the Search tab to filter resources based on your preferences and skill level. We also have an About tab to learn more about the creators of this website and a Contact Us tab to submit any comments or questions you have about the site and auditory training in general. We hope you find this website helpful in your auditory training journey, and we are here to support you every step of the way.

Getting Started

diff --git a/src/pages/resources/index.tsx b/src/pages/resources/index.tsx index aeb262c..0a6ead5 100644 --- a/src/pages/resources/index.tsx +++ b/src/pages/resources/index.tsx @@ -34,12 +34,12 @@ const Resources = () => {

All Resources

Fill out the

- - survey + search form -

for specific resource recommendations.

+

for a list of auditory training resource recommendations.

diff --git a/src/pages/resources/survey.tsx b/src/pages/resources/search.tsx similarity index 95% rename from src/pages/resources/survey.tsx rename to src/pages/resources/search.tsx index 4ba9628..ad514dc 100644 --- a/src/pages/resources/survey.tsx +++ b/src/pages/resources/search.tsx @@ -1,4 +1,4 @@ -import { GuidedSurvey, type Question, type QuestionTypes } from "~/components/Survey"; +import { GuidedSearch, type Question, type QuestionTypes } from "~/components/Search"; const questions: Question[] = [ { @@ -103,7 +103,7 @@ const questions: Question[] = [ const SearchPage = () => { return (
- +
) } diff --git a/tailwind.config.cjs b/tailwind.config.cjs index dc1fe14..f625e92 100644 --- a/tailwind.config.cjs +++ b/tailwind.config.cjs @@ -19,8 +19,8 @@ const config = { }, animation: { expand_in_out: 'expand_in_out 2s ease-in-out infinite', - slide_survey_page: 'slide_left_full 0.5s ease-in-out', - slide_survey_page_backwards: 'slide_right_full 0.5s ease-in-out' + slide_search_page: 'slide_left_full 0.5s ease-in-out', + slide_search_page_backwards: 'slide_right_full 0.5s ease-in-out' }, }, },