-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAddToDiscordButton.astro
More file actions
56 lines (50 loc) · 1.2 KB
/
Copy pathAddToDiscordButton.astro
File metadata and controls
56 lines (50 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
---
interface Props {
href: string;
}
const { href } = Astro.props;
---
<a class="discord-button" href={href}>
<span class="discord-button__label">Add to Discord</span>
</a>
<style>
.discord-button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 2.75rem;
padding: 0.75rem 1.1rem;
margin: 1rem 0 1.5rem;
border-radius: 0.75rem;
border: 1px solid rgba(255, 255, 255, 0.12);
background:
linear-gradient(180deg, #6a75f7 0%, #5865f2 100%);
box-shadow:
0 12px 28px rgba(88, 101, 242, 0.28),
inset 0 1px 0 rgba(255, 255, 255, 0.14);
color: #fff;
font-weight: 700;
font-size: 0.95rem;
line-height: 1;
letter-spacing: 0.01em;
text-decoration: none;
transition:
transform 160ms ease,
box-shadow 160ms ease,
filter 160ms ease;
}
.discord-button:hover {
transform: translateY(-1px);
box-shadow:
0 16px 36px rgba(88, 101, 242, 0.34),
inset 0 1px 0 rgba(255, 255, 255, 0.18);
filter: brightness(1.03);
}
.discord-button:focus-visible {
outline: 2px solid #e0e3ff;
outline-offset: 3px;
}
.discord-button__label {
white-space: nowrap;
}
</style>