-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathDislikeCollab.svelte
50 lines (44 loc) · 1.02 KB
/
DislikeCollab.svelte
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
<script>
import IconCollab from '../components/IconCollab.svelte'
let dislikes = 0
function handleClick() {
dislikes += 1;
}
</script>
<style>
.dislike-button {
height: 40px;
width: 100px;
border-radius: 20px;
border: none;
cursor: pointer;
padding: 5px 15px;
background: rgb(255, 252, 238, 0.1);
margin: 20px 0 20px 16px;
}
.dislike-button:last-child {
margin: 20px 0 0 5px;
}
.dislike-button > .items {
display: flex;
justify-content: space-evenly;
align-items: center;
}
.dislike-button > .items > .text {
color: #FFF;
font-size: 16px;
line-height: 24px;
letter-spacing: 0.5px;
font-family: Comfortaa;
}
</style>
<button
on:click={handleClick}
class="dislike-button">
<div class="items">
<IconCollab
name="dislike_button"
alt="Dislike Button" />
<p class="text">{dislikes}</p>
</div>
</button>