-
Notifications
You must be signed in to change notification settings - Fork 7
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
1 parent
ec45581
commit b5f023b
Showing
11 changed files
with
171 additions
and
148 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
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
This file was deleted.
Oops, something went wrong.
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
41 changes: 41 additions & 0 deletions
41
packages/docs-site/src/components/LandingPageSection.astro
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,41 @@ | ||
--- | ||
import CTABlock from './CTABlock.astro'; | ||
interface Props { | ||
title?: string, | ||
imgPath?: string, | ||
imgAlt?: string, | ||
imgDescription?: string, | ||
ctaLink?: string, | ||
ctaText?: string, | ||
} | ||
const { title, imgPath, imgAlt, imgDescription, ctaLink } = Astro.props as Props; | ||
--- | ||
|
||
<section class="feature-block"> | ||
{ title && <h2>{title}</h2> } | ||
{ imgPath && <figure> | ||
<img src={imgPath} alt={imgAlt}> | ||
<figcaption class="description">{imgDescription}</figcaption> | ||
</figure>} | ||
|
||
<slot /> | ||
|
||
{ ctaLink && <CTABlock | ||
text="Read more ->" | ||
href={ctaLink} | ||
/>} | ||
</section> | ||
|
||
<style> | ||
.feature-block { | ||
padding: 3rem 2rem; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 1rem; | ||
|
||
@container (max-width: 800px) { | ||
padding: 2rem 0rem; | ||
} | ||
} | ||
</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
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
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
Oops, something went wrong.