diff --git a/assets/i18n/en.json b/assets/i18n/en.json index 4a6e4ecd52b2..42be21810b2f 100644 --- a/assets/i18n/en.json +++ b/assets/i18n/en.json @@ -144,7 +144,7 @@ "I18N_BLOG_DASHBOARD_TAB_DRAFTS": "Drafts", "I18N_BLOG_DASHBOARD_TAB_PUBLISHED": "Published", "I18N_BLOG_HOME_PAGE_BREADCRUMB": "Blog", - "I18N_BLOG_HOME_PAGE_NO_RESULTS_FOUND": "Sorry, there are no blog posts to show.", + "I18N_BLOG_HOME_PAGE_NO_RESULTS_FOUND": "Sorry, there are no blog posts matching this query.", "I18N_BLOG_HOME_PAGE_OPPIA_DESCRIPTION": "Building a community to provide quality education for those who lack access to it.", "I18N_BLOG_HOME_PAGE_POSTS_HEADING": "Latest Posts", "I18N_BLOG_HOME_PAGE_POSTS_NUMBER_DISPLAY": "Displaying <[startingNumber]> - <[endingNumber]> of <[totalNumber]> posts", diff --git a/core/templates/pages/blog-dashboard-page/blog-card/blog-card.component.html b/core/templates/pages/blog-dashboard-page/blog-card/blog-card.component.html index 223cee3dd91b..2dffe1509b14 100644 --- a/core/templates/pages/blog-dashboard-page/blog-card/blog-card.component.html +++ b/core/templates/pages/blog-dashboard-page/blog-card/blog-card.component.html @@ -92,7 +92,6 @@ height: 144px; margin: 0; max-width: unset; - object-fit: cover; object-position: top; width: 100%; } diff --git a/core/templates/pages/blog-home-page/blog-home-page.component.css b/core/templates/pages/blog-home-page/blog-home-page.component.css index 7c10326fa025..8dcdd07c734d 100644 --- a/core/templates/pages/blog-home-page/blog-home-page.component.css +++ b/core/templates/pages/blog-home-page/blog-home-page.component.css @@ -5,13 +5,13 @@ */ @media (max-width: 1024px) { oppia-blog-home-page .oppia-search-bar-form .oppia-search-bar-input { - border-radius: 0 4px 4px 0; - border-width: 1px 1px 1px 0; + border-radius: 4px 0 0 4px; + border-width: 1px 0 1px 1px; } oppia-blog-home-page .input-group .oppia-search-bar-icon { - border-radius: 4px 0 0 4px; - border-width: 1px 0 1px 1px; + border-radius: 0 4px 4px 0; + border-width: 1px 1px 1px 0; } } @@ -20,15 +20,15 @@ width: 335px } - + @media (max-width: 440px) { oppia-blog-home-page mat-card.oppia-blog-home-page-card { - width: 350px; + width: 410px; } .mat-card.oppia-page-card { - padding-left: 1rem; - padding-right: 1rem; + padding-left: 3rem; + padding-right: 3rem; } } } @@ -39,8 +39,12 @@ oppia-blog-home-page .posts-display-heading { font-size: 24px; font-weight: bold; line-height: 28px; + margin-top: 30px; text-align: left; - text-transform: capitalize; +} + +oppia-blog-home-page .no-result-found { + margin-top: 30px; } oppia-blog-home-page .blog-home-page-posts-number-display { @@ -116,10 +120,12 @@ oppia-blog-home-page .search-heading { border-radius: 4px 0 0 4px; border-right-width: 0; color: #333; + width: 100%; } .input-group-addon.oppia-search-bar-icon { + align-items: center; border-color: #333; border-left-width: 0; border-radius: 0 4px 4px 0; diff --git a/core/templates/pages/blog-home-page/blog-home-page.component.html b/core/templates/pages/blog-home-page/blog-home-page.component.html index 55c972f02bc1..9ae9fb6ca74d 100644 --- a/core/templates/pages/blog-home-page/blog-home-page.component.html +++ b/core/templates/pages/blog-home-page/blog-home-page.component.html @@ -88,7 +88,7 @@ -

+

{{ 'I18N_BLOG_HOME_PAGE_NO_RESULTS_FOUND' | translate }}

@@ -113,21 +113,19 @@

{{ 'I18N_BLOG_HOME_PAGE_QUERY_SEARCH_HEADING' | translate }}