From d6608c822370ca7aad42c0ed54caf421ead8bb50 Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Tue, 22 Jul 2025 17:11:44 +0300 Subject: Update widget --- src/components/CustomStyles.astro | 20 ++--- src/components/blog/GridItem.astro | 5 +- src/components/blog/ListItem.astro | 2 +- src/components/widgets/Announcement.astro | 1 - src/components/widgets/CallToActionImage.astro | 18 ++--- src/components/widgets/Features2Custom.astro | 9 ++- src/components/widgets/Footer.astro | 4 +- src/components/widgets/Header.astro | 35 ++++++++- src/components/widgets/Map.astro | 6 +- src/components/widgets/Portfolio.astro | 6 +- src/components/widgets/Pricing.astro | 101 +++++++++++++------------ src/components/widgets/Steps2.astro | 10 ++- src/config.yaml | 10 ++- src/navigation.ts | 23 +++++- src/pages/index.astro | 75 +++++++++--------- src/utils/images.ts | 4 +- 16 files changed, 191 insertions(+), 138 deletions(-) (limited to 'src') diff --git a/src/components/CustomStyles.astro b/src/components/CustomStyles.astro index 9798cb6..696b899 100644 --- a/src/components/CustomStyles.astro +++ b/src/components/CustomStyles.astro @@ -34,14 +34,14 @@ import '@fontsource/poppins'; --aw-color-text-heading: #162130; /* Głęboki granat dla nagłówków */ --aw-color-text-default: #000000; /* Czerń dla tekstu na jasnym tle */ --aw-color-text-muted: #888888; /* Stonowana szarość */ - --aw-color-bg-page: #FFFFFF; /* Klasyczna biel */ - --aw-color-bg-section: #FFFFFF; /* Klasyczna biel */ + --aw-color-bg-page: #ffffff; /* Klasyczna biel */ + --aw-color-bg-section: #ffffff; /* Klasyczna biel */ --aw-color-bg-page-dark: #162130; /* Głęboki granat */ ::selection { background-color: #162130; - color: #FFFFFF; + color: #ffffff; } } @@ -51,18 +51,18 @@ import '@fontsource/poppins'; --aw-font-heading: 'Kanit'; /* Dark mode */ - --aw-color-primary: #FFFFFF; /* Biały dla kontrastu na ciemnym tle */ - --aw-color-secondary: #FFFFFF; /* Biały dla kontrastu na ciemnym tle */ - --aw-color-accent: #FFFFFF; /* Biały dla kontrastu na ciemnym tle */ + --aw-color-primary: #ffffff; /* Biały dla kontrastu na ciemnym tle */ + --aw-color-secondary: #ffffff; /* Biały dla kontrastu na ciemnym tle */ + --aw-color-accent: #ffffff; /* Biały dla kontrastu na ciemnym tle */ - --aw-color-text-heading: #CCCCCC; /* Jasna szarość na ciemnym tle */ - --aw-color-text-default: #CCCCCC; /* Jasna szarość na ciemnym tle */ + --aw-color-text-heading: #cccccc; /* Jasna szarość na ciemnym tle */ + --aw-color-text-default: #cccccc; /* Jasna szarość na ciemnym tle */ --aw-color-text-muted: #888888; /* Stonowana szarość */ --aw-color-bg-page: #162130; /* Głęboki granat */ - --aw-color-bg-section: #FFFFFF; /* Klasyczna biel dla jasnych sekcji */ + --aw-color-bg-section: #ffffff; /* Klasyczna biel dla jasnych sekcji */ ::selection { - background-color: #FFFFFF; + background-color: #ffffff; color: #162130; } } diff --git a/src/components/blog/GridItem.astro b/src/components/blog/GridItem.astro index 73353ca..823063c 100644 --- a/src/components/blog/GridItem.astro +++ b/src/components/blog/GridItem.astro @@ -58,7 +58,10 @@ const link = APP_BLOG?.post?.isEnabled ? getPermalink(post.permalink, 'post') :

{ link ? ( - + {post.title} ) : ( diff --git a/src/components/blog/ListItem.astro b/src/components/blog/ListItem.astro index 36602f2..f078c25 100644 --- a/src/components/blog/ListItem.astro +++ b/src/components/blog/ListItem.astro @@ -94,7 +94,7 @@ const link = APP_BLOG?.post?.isEnabled ? getPermalink(post.permalink, 'post') : { link ? ( {post.title} diff --git a/src/components/widgets/Announcement.astro b/src/components/widgets/Announcement.astro index 8e4bf78..e3098d5 100644 --- a/src/components/widgets/Announcement.astro +++ b/src/components/widgets/Announcement.astro @@ -12,5 +12,4 @@ Skontaktuj się z nami - Darmowa wycena! » - diff --git a/src/components/widgets/CallToActionImage.astro b/src/components/widgets/CallToActionImage.astro index df13145..80e181e 100644 --- a/src/components/widgets/CallToActionImage.astro +++ b/src/components/widgets/CallToActionImage.astro @@ -47,27 +47,19 @@ const { image && (
{image.href ? ( - - {image.alt} + {image.alt} ) : ( - {image.alt} + {image.alt} )}
) } - \ No newline at end of file + diff --git a/src/components/widgets/Features2Custom.astro b/src/components/widgets/Features2Custom.astro index 18c1546..605fd08 100644 --- a/src/components/widgets/Features2Custom.astro +++ b/src/components/widgets/Features2Custom.astro @@ -33,7 +33,7 @@ const { } /> - + { items && items.length > 0 && (
{title}
{description && ( -

+

)} {callToAction && (

@@ -81,4 +84,4 @@ const {
) } -
\ No newline at end of file + diff --git a/src/components/widgets/Footer.astro b/src/components/widgets/Footer.astro index 70cac54..55501ff 100644 --- a/src/components/widgets/Footer.astro +++ b/src/components/widgets/Footer.astro @@ -1,7 +1,5 @@ --- import { Icon } from 'astro-icon/components'; -import { SITE } from 'astrowind:config'; -import { getHomePermalink } from '~/utils/permalinks'; interface Link { text?: string; @@ -23,7 +21,7 @@ export interface Props { theme?: string; } -const { socialLinks = [], secondaryLinks = [], links = [], footNote = '', theme = 'light' } = Astro.props; +const { socialLinks = [], footNote = '', theme = 'light' } = Astro.props; ---