-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Neutral sponsor component * Apply suggestions from code review * Delete NetlifyCallout.astro --------- Co-authored-by: Ciarán Ainsworth <[email protected]>
- Loading branch information
Showing
5 changed files
with
83 additions
and
97 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
28 changes: 28 additions & 0 deletions
28
src/assets/sponsor-contributor logos/logo-netlify-small-fullcolor-dynamicmode.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
import { Image } from 'astro:assets'; | ||
interface Props { | ||
title: string; | ||
logo: ImageMetadata; | ||
sponsorName: string; | ||
website: string; | ||
} | ||
const { title, sponsorName, logo, website } = Astro.props; | ||
--- | ||
|
||
<article class="sl-flex" aria-labelledby=`about-${sponsorName}-heading`}> | ||
<small id=`about-${sponsorName}-heading`}> | ||
{title} | ||
<span class="sr-only">{ sponsorName }</span> | ||
</small> | ||
<a href={website} target="_blank" rel="noreferrer"><Image src={logo} alt=`${sponsorName} logo`></a> | ||
<slot /> | ||
</article> | ||
|
||
<style> | ||
article { | ||
max-width: 40rem; | ||
margin-inline: auto; | ||
padding-block: 5rem; | ||
flex-direction: column; | ||
align-items: center; | ||
text-align: center; | ||
gap: 0.5rem; | ||
} | ||
article > :global(*) { | ||
max-width: 50ch; | ||
margin-top: 0 !important; | ||
} | ||
small { | ||
color: var(--sl-color-gray-3); | ||
} | ||
img { | ||
max-width: 15rem; | ||
} | ||
</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