From e95dd9987a0c823ba73d3b107c3a8e1f4f137c46 Mon Sep 17 00:00:00 2001 From: Emil Gulamov <125820963+mearashadowfax@users.noreply.github.com> Date: Thu, 7 Mar 2024 02:05:02 +0400 Subject: [PATCH] Update button title and make banner title optional The button title on the main page has been changed to "Explore ScrewFast on GitHub". Also, the title for AnnouncementBanner is now optional, enabling use of the banner without a predefined title, increasing its reusability. The CSS styles have also been updated to accommodate these changes. --- src/components/ui/banners/AnnouncementBanner.astro | 6 ++++-- src/pages/index.astro | 3 +-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/ui/banners/AnnouncementBanner.astro b/src/components/ui/banners/AnnouncementBanner.astro index ad9ae4e..98a9e32 100644 --- a/src/components/ui/banners/AnnouncementBanner.astro +++ b/src/components/ui/banners/AnnouncementBanner.astro @@ -2,7 +2,7 @@ const { title, btnId, btnTitle, url } = Astro.props; interface Props { - title: string; + title?: string; btnId: string; btnTitle: string; url: string; @@ -18,13 +18,15 @@ interface Props { >
+ {title &&

{title}

+ } diff --git a/src/pages/index.astro b/src/pages/index.astro index 0c53ad6..353f738 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -21,9 +21,8 @@ const avatarSrcs: Array = [