Skip to content

Commit

Permalink
feat: add podcast icons
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-bodnar committed Jan 15, 2025
1 parent 3fb20c5 commit d09ab53
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
3 changes: 2 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ const config = defineConfig({
Head: './src/components/Head.astro',
Footer: './src/components/Footer.astro',
Hero: './src/components/Hero.astro',
Search: './src/components/Search.astro'
Search: './src/components/Search.astro',
SocialIcons: './src/components/SocialIcons.astro',
},
customCss: [
'./src/style/tailwind.css',
Expand Down
26 changes: 26 additions & 0 deletions src/components/SocialIcons.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
import type { Props } from '@astrojs/starlight/props';
import Default from '@astrojs/starlight/components/SocialIcons.astro';
import { Icon } from 'astro-icon/components';
---

<Default {...Astro.props}><slot /></Default>
<a href="https://podcasts.apple.com/us/podcast/agile-localization/id1785636416" rel="me" class="sl-flex">
<span class="sr-only">Apple Podcast</span>
<Icon name="apple-podcast" />
</a>
<a href="https://open.spotify.com/show/2Vv42MtK93aLTzvEd77Om5" rel="me" class="sl-flex">
<span class="sr-only">Spotify Podcast</span>
<Icon name="spotify-podcast" />
</a>

<style>
a {
color: var(--sl-color-text-accent);
padding: 0.5em;
margin: -0.5em;
}
a:hover {
opacity: 0.66;
}
</style>
3 changes: 3 additions & 0 deletions src/icons/apple-podcast.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/icons/spotify-podcast.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d09ab53

Please sign in to comment.