Skip to content

Commit

Permalink
Merge pull request #102 from spryker-community/feature/hackweek-banner
Browse files Browse the repository at this point in the history
Adds hackweek banner
  • Loading branch information
fsmeier authored Oct 7, 2024
2 parents d9b684e + 7b6a711 commit 37473b1
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 6 deletions.
31 changes: 31 additions & 0 deletions src/components/ui/banners/AnnouncementBannerHackWeek.astro
Original file line number Diff line number Diff line change
@@ -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;
}
---

<astro-banner>
<div
class="z-50 w-full transform"
role="region"
aria-label="Informational Banner"
>
<div
class="py-8 text-center shadow-sm"
>
<div class="inline-flex items-center mx-auto max-w-screen-xl px-4 sm:px-8 lg:px-10">
<a
class="cursor-pointer"
href={url}
target="_blank"
><Image class="rounded" src={hackWeek} alt="HackWeek" width="1152" height="86" loading="eager" /></a>
</div>

</div>
</div>
</astro-banner>

Binary file added src/images/banner/HackWeek-Banner_1200x90.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/layouts/MainLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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.
-->
<Navbar />
<AnnouncementBannerHackWeek
url="https://forum.commercequest.space/events/33"
/>
<div class="mx-auto max-w-screen-xl px-4 sm:px-6 lg:px-8">
<main>
<slot />
Expand Down
6 changes: 0 additions & 6 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -21,11 +20,6 @@ import maher from "@images/blog/maher.jpg";
---

<MainLayout>
<!-- <AnnouncementBanner
btnId="dismiss-button"
btnTitle="Explore our CommerceQuest Forum"
url="https://commercequest.space/"
/> -->

<HeroSection
title=`Connect, <span
Expand Down
3 changes: 3 additions & 0 deletions tailwind.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ export default {
500: "#9D0861",
600: "#4E0F36",
},
green: {
500: "#1EBEA0",
},
orange: {
100: "#ed77be",
200: "#ED4FAD",
Expand Down

0 comments on commit 37473b1

Please sign in to comment.