diff --git a/src/components/ui/banners/AnnouncementBannerHackWeek.astro b/src/components/ui/banners/AnnouncementBannerHackWeek.astro new file mode 100644 index 0000000..66b36d8 --- /dev/null +++ b/src/components/ui/banners/AnnouncementBannerHackWeek.astro @@ -0,0 +1,31 @@ +--- +import { Image } from "astro:assets"; +import hackWeek from '/src/images/banner/HackWeek-Banner_1200x90.jpg'; +const { url } = Astro.props; + +interface Props { + url: string; +} +--- + + +
+
+
+ HackWeek +
+ +
+
+
+ diff --git a/src/images/banner/HackWeek-Banner_1200x90.jpg b/src/images/banner/HackWeek-Banner_1200x90.jpg new file mode 100644 index 0000000..dcdc727 Binary files /dev/null and b/src/images/banner/HackWeek-Banner_1200x90.jpg differ diff --git a/src/layouts/MainLayout.astro b/src/layouts/MainLayout.astro index f5f3bbe..854d7ed 100644 --- a/src/layouts/MainLayout.astro +++ b/src/layouts/MainLayout.astro @@ -4,6 +4,7 @@ import Meta from "@components/Meta.astro"; import Navbar from "@components/sections/navbar&footer/Navbar.astro"; import FooterSection from "@components/sections/navbar&footer/FooterSection.astro"; import { SITE } from "@data/constants"; +import AnnouncementBannerHackWeek from "../components/ui/banners/AnnouncementBannerHackWeek.astro"; // Setting expected props const { title = SITE.title, meta, structuredData, lang = "en" } = Astro.props; @@ -59,6 +60,9 @@ We set the language of the page to English and add classes for scrollbar and scr The Navbar is placed at the top, with a slot for the main content and FooterSection at the bottom. --> +
diff --git a/src/pages/index.astro b/src/pages/index.astro index 71d91f3..2cceb4f 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -9,7 +9,6 @@ import FeaturesGeneral from "@components/sections/features/FeaturesGeneral.astro import FeaturesNavs from "@components/sections/features/FeaturesNavs.astro"; import TestimonialsSection from "@components/sections/testimonials/TestimonialsSection.astro"; import FAQ from "@components/sections/misc/FAQ.astro"; -// import AnnouncementBanner from "@components/ui/banners/AnnouncementBanner.astro"; import heroImage from "@images/SPRYKER_EXCITE_2023--27.jpg"; import faqs from "@data/faqs.json"; import features from "@data/features.json"; @@ -21,11 +20,6 @@ import maher from "@images/blog/maher.jpg"; --- -