Skip to content

Commit

Permalink
fix search bar placeholder text
Browse files Browse the repository at this point in the history
  • Loading branch information
Chaphasilor committed Jan 26, 2023
1 parent 5146a1f commit 6e2f943
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions public/netlify-functions/checkLinkAlive.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ function checkLink(urlData) {

return resolve({
statusCode: 504, // gateway timeout
isAlive: false,
body: err.message,
url: urlData.originalUrl,
});
Expand Down
2 changes: 1 addition & 1 deletion src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion src/views/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
/>

Expand Down
4 changes: 2 additions & 2 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 6e2f943

Please sign in to comment.