Skip to content

Commit 0e4bde6

Browse files
committed
Heart Update
1 parent 590fa85 commit 0e4bde6

File tree

3 files changed

+13
-17
lines changed

3 files changed

+13
-17
lines changed

14. Heart/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const grayHeart = document.querySelector(".gray-heart");
1+
const grayHeart = document.querySelector(".main-heart");
22
const redHeart = document.querySelector(".red-heart");
33

44
grayHeart.addEventListener("click", () => {

14. Heart/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<link rel="stylesheet" href="style.css" />
88
</head>
99
<body>
10-
<div class="gray-heart"></div>
10+
<div class="main-heart"></div>
1111
<div class="red-heart"></div>
1212

1313
<script src="app.js"></script>

14. Heart/style.css

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ body {
1717
background: rgb(7, 7, 20);
1818
}
1919

20-
/* gray-heart */
21-
.gray-heart {
22-
background: var(--secondry-color);
20+
/* main-heart */
21+
.main-heart {
22+
background: var(--primary-color);
2323
display: flex;
2424
justify-content: center;
2525
align-items: center;
@@ -30,29 +30,29 @@ body {
3030
transform: rotate(-45deg);
3131
}
3232

33-
.gray-heart:before,
34-
.gray-heart:after {
33+
.main-heart:before,
34+
.main-heart:after {
3535
content: "";
36-
background: var(--secondry-color);
36+
background: var(--primary-color);
3737
border-radius: 50%;
3838
height: 100px;
3939
width: 100px;
4040
position: absolute;
4141
}
4242

43-
.gray-heart:before {
43+
.main-heart:before {
4444
top: -50px;
4545
left: 0;
4646
}
4747

48-
.gray-heart:after {
48+
.main-heart:after {
4949
left: 50px;
5050
top: 0;
5151
}
5252

5353
/* red-heart */
5454
.red-heart {
55-
background: var(--main-color);
55+
background: var(--secondry-color);
5656
display: flex;
5757
justify-content: center;
5858
align-items: center;
@@ -66,7 +66,7 @@ body {
6666
.red-heart:before,
6767
.red-heart:after {
6868
content: "";
69-
background: var(--main-color);
69+
background: var(--secondry-color);
7070
border-radius: 50%;
7171
width: 100px;
7272
height: 100px;
@@ -89,14 +89,10 @@ body {
8989
}
9090

9191
.red-heart.fill-color {
92-
background: var(--main-color);
92+
background: var(--secondry-color);
9393
}
9494

9595
@keyframes pop {
96-
0% {
97-
transform: scale(1.7) rotate(-45deg);
98-
opacity: 0;
99-
}
10096
100% {
10197
transform: scale(1.7) rotate(-45deg);
10298
opacity: 0;

0 commit comments

Comments
 (0)