-
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.
- Loading branch information
Showing
2 changed files
with
51 additions
and
28 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 |
---|---|---|
@@ -1,36 +1,53 @@ | ||
--- | ||
interface Props { | ||
// featureImage: ImageMetadata; | ||
firstUrl?: string; | ||
secondUrl?: string; | ||
} | ||
// const props = Astro.props; | ||
const props = Astro.props; | ||
--- | ||
|
||
<div | ||
class="max-w-screen-xl px-5 mx-auto flex flex-col items-center justify-center dark:text-slate-300 text-slate-600" | ||
> | ||
<slot name="heading" /> | ||
|
||
<div class="grid md:grid-cols-2 py-10 min-w-[100%]"> | ||
<div class="grid place-items-center pb-10 md:pb-0 md:order-2"> | ||
<slot name="first-image" /> | ||
</div> | ||
<a class="block quiet" href={props.firstUrl ?? ""}> | ||
<div class="quiet grid md:grid-cols-2 py-10 min-w-[100%]"> | ||
<div class="grid place-items-center pb-10 md:pb-0 md:order-2 mx-8"> | ||
<slot name="first-image" /> | ||
</div> | ||
|
||
<div class="grid place-items-center"> | ||
<div class="max-w-lg h-[100%]"> | ||
<slot name="first-content" /> | ||
<div class="grid place-items-center"> | ||
<div class="max-w-lg h-[100%]"> | ||
<slot name="first-content" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</a> | ||
|
||
<div class="grid md:grid-cols-2 py-10 min-w-[100%]"> | ||
<div class="grid place-items-center pb-10 md:pb-0 order-1"> | ||
<slot name="second-image" /> | ||
</div> | ||
<div class="grid place-items-center order-1"> | ||
<div class="max-w-lg h-[100%]"> | ||
<slot name="second-content" /> | ||
<a class="block quiet" href={props.secondUrl ?? ""}> | ||
<div class="grid md:grid-cols-2 py-10 min-w-[100%]"> | ||
<div class="grid place-items-center pb-10 md:pb-0 order-1 mx-8"> | ||
<slot name="second-image" /> | ||
</div> | ||
<div class="grid place-items-center order-1"> | ||
<div class="max-w-lg h-[100%]"> | ||
<slot name="second-content" /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</a> | ||
</div> | ||
|
||
<style> | ||
.quiet, | ||
.quiet:visited, | ||
.quiet:hover, | ||
.quiet:active, | ||
.quiet:focus, | ||
.quiet:focus-visible { | ||
text-decoration: inherit; | ||
color: inherit; | ||
} | ||
</style> |
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