Search bar below navbar #98

Closed
johannes.vos wants to merge 1 commits from bugfix/search-bar-below-navbar into main
2 changed files with 47 additions and 7 deletions
+7
View File
@@ -89,7 +89,14 @@ watch(() => route.query.q, q => {
height: 24px;
width: auto;
}
.search-bar {
width: 70%;
}
@media (max-width: 1000px) {
Review

That is not a major device width break.

That is not a major device width break.
Review

It‘s the critical width where it look bad

It‘s the critical width where it look bad
Review

Please use 67.5rem (the width where tablets begin)

Please use `67.5rem` (the width where tablets begin)
.search-bar {
display: none;
}
}
</style>
@@ -16,26 +16,59 @@ limitations under the License.
<script setup>
import { useI18n } from 'vue-i18n';
import { ref, watch } from 'vue';
import { useRoute } from 'vue-router';
import Searchbar from '../components/Searchbar.vue';
const { t } = useI18n();
const route = useRoute();
const searchQuery = ref(route.query.q || '');
watch(() => route.query.q, (newQuery) => {
searchQuery.value = newQuery || '';
});
</script>
<template>
<div class="main-content-padding">
<div class="search-results-error-message-container">
<div class="search-results-error-message">
<p>{{ t('search.error.searchNotAvailable') }}</p>
<p>{{ t('error.tryAgainToAnotherTime') }}</p>
</div>
<div class="search-results-view">
<div class="search-bar-container main-content-padding">
<Searchbar v-model="searchQuery" class="search-bar" auto-submit />
</div>
<div class="search-results-container">
<div class="main-content-padding">
<div class="search-results-error-message-container">
<div class="search-results-error-message">
<p>{{ t('search.error.searchNotAvailable') }}</p>
<p>{{ t('error.tryAgainToAnotherTime') }}</p>
</div>
</div>
<div class="search-results-container">
</div>
</div>
</div>
</template>
<style scoped>
.search-results-view {
width: 100%;
}
.search-bar-container {
display: none;
justify-content: center;
padding-top: 30px;
padding-bottom: 30px;
border-bottom: 1px solid var(--border);
}
@media (max-width: 1000px) {
Review

Please use 67.5rem (the width where tablets begin)

Please use `67.5rem` (the width where tablets begin)
.search-bar-container {
display: flex;
}
}
.search-bar {
width: 50%;
max-width: 624px;
}
@media (max-width: 67.5rem) {