From 0a88c7e458df805f10bb5808382a4dadcc9db064 Mon Sep 17 00:00:00 2001 From: Stephanie Smith Date: Wed, 11 Sep 2024 18:04:49 -0700 Subject: [PATCH] adding EDU Home page template (#614) * adding EDU Home page template * fixing vue build errors * updates topic links to go to prefiltered resource search results * fixing accessibility issues in SearchInput --- .../components/SearchInput/SearchInput.vue | 19 ++- .../edu/PageEduHome/PageEduHome.stories.js | 99 +++++++++++ .../templates/edu/PageEduHome/PageEduHome.vue | 154 ++++++++++++++++++ 3 files changed, 268 insertions(+), 4 deletions(-) create mode 100644 packages/vue/src/templates/edu/PageEduHome/PageEduHome.stories.js create mode 100644 packages/vue/src/templates/edu/PageEduHome/PageEduHome.vue diff --git a/packages/vue/src/components/SearchInput/SearchInput.vue b/packages/vue/src/components/SearchInput/SearchInput.vue index 4d3018ab..2efe2e27 100644 --- a/packages/vue/src/components/SearchInput/SearchInput.vue +++ b/packages/vue/src/components/SearchInput/SearchInput.vue @@ -8,6 +8,7 @@ interface SearchInputProps { placeholder?: string autoFocus?: boolean defaultColors?: boolean + withButton?: boolean } // define props @@ -16,10 +17,11 @@ const props = withDefaults(defineProps(), { underlinedInputValue: undefined, placeholder: '', autoFocus: false, - defaultColors: true + defaultColors: true, + withButton: false }) -const emit = defineEmits(['input', 'esc']) +const emit = defineEmits(['input', 'esc', 'submit']) const model = defineModel() const isFocused = ref(false) @@ -67,20 +69,29 @@ onMounted(() => { +