File tree Expand file tree Collapse file tree 3 files changed +13
-17
lines changed
Expand file tree Collapse file tree 3 files changed +13
-17
lines changed Original file line number Diff line number Diff line change 1- const grayHeart = document . querySelector ( ".gray -heart" ) ;
1+ const grayHeart = document . querySelector ( ".main -heart" ) ;
22const redHeart = document . querySelector ( ".red-heart" ) ;
33
44grayHeart . addEventListener ( "click" , ( ) => {
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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;
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 ;
You can’t perform that action at this time.
0 commit comments