-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add CTA on front (and fix news ordering)
- Loading branch information
1 parent
3813c5b
commit 584e903
Showing
2 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
import Box from "../Box.astro"; | ||
interface Props { | ||
autoHeight?: boolean; | ||
} | ||
const { autoHeight = false } = Astro.props; | ||
const heightStyles = autoHeight ? "h-full" : "h-[300px]"; | ||
--- | ||
|
||
<section class={`relative ${heightStyles}`}> | ||
<img | ||
src="https://www.tg.no/media/images/TG-artikler.max-1600x1600.png" | ||
srcset="https://www.tg.no/media/images/TG-artikler.max-1600x1600.png 500w, https://www.tg.no/media/images/TG-artikler.max-3200x3200.png 1000w" | ||
alt='Bilde av "Community village" fra TG 23, prototypen på Expo-området vårt' | ||
class="w-full h-full object-cover rounded-3xl" | ||
/> | ||
<div | ||
class="absolute inset-0 flex justify-center items-start sm:items-center sm:p-4" | ||
> | ||
<Box | ||
itemCenter={true} | ||
title="Utstiller, sponsor eller presse?" | ||
titleColor="text-orange-500" | ||
text="Alt du trenger å vite finner du her! Og kontaktinfo for alt vi ikke har tenkt på enda..." | ||
button={{ | ||
text: "Lær mer", | ||
link: "/collaboration", | ||
color: "bg-orange-500 self-center", | ||
}} | ||
backgroundColor="bg-black bg-opacity-90" | ||
/> | ||
</div> | ||
</section> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters