From 6e2f9434ef95d05bd86dc977f80f34c4a7fb306c Mon Sep 17 00:00:00 2001 From: Chaphasilor Date: Thu, 26 Jan 2023 22:30:13 +0100 Subject: [PATCH] fix search bar placeholder text --- public/netlify-functions/checkLinkAlive.js | 1 + src/views/Home.vue | 2 +- src/views/Search.vue | 2 +- tailwind.config.js | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/public/netlify-functions/checkLinkAlive.js b/public/netlify-functions/checkLinkAlive.js index 4000f3c..9ef2ed0 100644 --- a/public/netlify-functions/checkLinkAlive.js +++ b/public/netlify-functions/checkLinkAlive.js @@ -112,6 +112,7 @@ function checkLink(urlData) { return resolve({ statusCode: 504, // gateway timeout + isAlive: false, body: err.message, url: urlData.originalUrl, }); diff --git a/src/views/Home.vue b/src/views/Home.vue index b32777c..1cf5314 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -81,7 +81,7 @@ class="w-full max-w-3xl mx-auto mt-2 mb-4 md:my-4" v-model="searchQuery" :focus="true" - :placeholder="`Search ${stats.totalIndexed || `millions of`} links${isLandscape ? ` in ${stats.aliveODs} open directories` : ``}...`" + :placeholder="`Search ${stats.totalIndexed || `millions of`} links${isLandscape ? ` in ${stats.aliveODs || ``} open directories` : ``}...`" @search=" searchQuery.length > 0 ? $router.push({ diff --git a/src/views/Search.vue b/src/views/Search.vue index a136252..64f998d 100644 --- a/src/views/Search.vue +++ b/src/views/Search.vue @@ -44,7 +44,7 @@ v-model="searchQuery" v-observe-visibility="handleVisibilityChanged" :focus="false" - :placeholder="`Search ${stats.totalIndexed} links...`" + :placeholder="`Search ${stats.totalIndexed || `millions of`} links...`" @search="search(searchQuery)" /> diff --git a/tailwind.config.js b/tailwind.config.js index d407db3..9496734 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -13,8 +13,8 @@ module.exports = { }, extend: { fontFamily: { - 'quicksand': ['Quicksand', 'serif', 'system-ui'], - 'quicksand-bold': ['QuicksandBold', 'serif', 'system-ui'], + 'quicksand': ['Quicksand', 'sans-serif', 'system-ui'], + 'quicksand-bold': ['QuicksandBold', 'sans-serif', 'system-ui'], }, borderWidth: { '3': '3px',