-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor to use dynamic sponsor links
- Loading branch information
1 parent
777f6f4
commit 90440e8
Showing
7 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import sponsors from '../../shared-config/sponsors'; | ||
|
||
export { default as SponsorLink } from './util/SponsorLink.astro'; | ||
|
||
export { sponsors }; | ||
|
||
export default sponsors; |
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,8 @@ | ||
--- | ||
interface Props { | ||
text: string; | ||
href: string | URL; | ||
} | ||
const { text, href } = Astro.props; | ||
--- | ||
<a {href} aria-label={text} target="_blank" rel="noopener sponsored">{text} ⤴</a> |
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,16 @@ | ||
// This file is used to define the sponsors and their respective urls. | ||
export const sponsors = { | ||
turso: { | ||
docs: { | ||
sidebarSponsorLink: 'https://turso.tech', | ||
installCLILink: 'https://docs.turso.tech/cli/installation', | ||
loginsignupLink: 'https://docs.turso.tech/cli/authentication', | ||
}, | ||
web: { | ||
sponsorLink: 'https://turso.tech', | ||
}, | ||
// TODO: Add Turso specific links when they are provided to us. | ||
// Also, switch to utilizing these new links within the websites. | ||
}, | ||
}; | ||
export default sponsors; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import sponsors from '../../shared-config/sponsors'; | ||
|
||
export { sponsors }; | ||
|
||
export default sponsors; |