mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
feat: add email subsciption
This commit is contained in:
@@ -4,48 +4,53 @@ import MyIcon from './MyIcon.astro';
|
||||
import type { Props } from '@astrojs/starlight/props';
|
||||
|
||||
const { labels } = Astro.props;
|
||||
|
||||
---
|
||||
|
||||
<div class="action-footer">
|
||||
<a class="action-button" href='https://github.com/tomalaforge/angular-challenges'>
|
||||
<div>{labels['buttons.star']}</div>
|
||||
<Icon name='github' size="1rem" />
|
||||
</a>
|
||||
<a class="action-button" href="/subscription">
|
||||
<div>Email subscription</div>
|
||||
<Icon name="email" size="1rem" />
|
||||
</a>
|
||||
|
||||
<a class="action-button button-sponsor" href='https://github.com/sponsors/tomalaforge'>
|
||||
<div>{labels['buttons.sponsor']}</div>
|
||||
<MyIcon name='heart' size="1rem" color="white" />
|
||||
</a>
|
||||
<a class="action-button" href="https://github.com/tomalaforge/angular-challenges">
|
||||
<div>{labels['buttons.star']}</div>
|
||||
<Icon name="github" size="1rem" />
|
||||
</a>
|
||||
|
||||
<a class="action-button button-sponsor" href="https://github.com/sponsors/tomalaforge">
|
||||
<div>{labels['buttons.sponsor']}</div>
|
||||
<MyIcon name="heart" size="1rem" color="white" />
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.action-button {
|
||||
display: flex!important;
|
||||
justify-content: center;
|
||||
gap: 0.5em;
|
||||
align-items: center;
|
||||
border-radius: 999rem;
|
||||
color: var(--sl-color-white)!important;
|
||||
line-height: 1.1875;
|
||||
text-decoration: none;
|
||||
font-size: var(--sl-text-sm)!important;
|
||||
border: 1px solid;
|
||||
font-size: var(--sl-text-base);
|
||||
padding: 0.4rem 0.8rem;
|
||||
}
|
||||
.action-button {
|
||||
display: flex !important;
|
||||
justify-content: center;
|
||||
gap: 0.5em;
|
||||
align-items: center;
|
||||
border-radius: 999rem;
|
||||
color: var(--sl-color-white) !important;
|
||||
line-height: 1.1875;
|
||||
text-decoration: none;
|
||||
font-size: var(--sl-text-sm) !important;
|
||||
border: 1px solid;
|
||||
font-size: var(--sl-text-base);
|
||||
padding: 0.4rem 0.8rem;
|
||||
}
|
||||
|
||||
.action-footer {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.7rem;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.action-footer {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.7rem;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.button-sponsor {
|
||||
background-color: red;
|
||||
border-color: red;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.button-sponsor {
|
||||
background-color: red;
|
||||
border-color: red;
|
||||
color: white;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user