mirror of
https://github.com/ld3z/new-manga.git
synced 2026-11-09 20:04:00 -07:00
init site
This commit is contained in:
parent
40a7e60a8b
commit
c765ca9c85
20 changed files with 6860 additions and 1 deletions
40
src/components/RSSLink.astro
Normal file
40
src/components/RSSLink.astro
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
---
|
||||
interface Props {
|
||||
lang: string;
|
||||
type: string;
|
||||
}
|
||||
|
||||
const { lang, type } = Astro.props;
|
||||
---
|
||||
|
||||
<a href={`/rss/${lang}/${type}.xml`} class="rss-link" target="_blank" rel="noopener noreferrer">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path d="M4 11a9 9 0 0 1 9 9"></path>
|
||||
<path d="M4 4a16 16 0 0 1 16 16"></path>
|
||||
<circle cx="5" cy="19" r="1"></circle>
|
||||
</svg>
|
||||
RSS Feed
|
||||
</a>
|
||||
|
||||
<style>
|
||||
.rss-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
background: #23262d;
|
||||
padding: 0.5rem 1rem;
|
||||
border-radius: 4px;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
.rss-link:hover {
|
||||
background: rgb(var(--accent));
|
||||
}
|
||||
|
||||
svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue