Skip to content

Commit

Permalink
add complete css to Music player and adding images and music
Browse files Browse the repository at this point in the history
  • Loading branch information
dipak-kumawat committed Feb 1, 2024
1 parent 1fdfbd9 commit e94d123
Show file tree
Hide file tree
Showing 4 changed files with 133 additions and 0 deletions.
Binary file added 9. Music Player/468-thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
26 changes: 26 additions & 0 deletions 9. Music Player/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,34 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="style.css" />
<script src="https://kit.fontawesome.com/3cfb23abdd.js" crossorigin="anonymous"></script>

</head>
<body>
<div class="container">
<div class="music-player">
<nav>
<div class="circle">
<i class="fa-solid fa-angle-left"></i>
</div>
<div class="circle">
<i class="fa-solid fa-bars"></i>
</div>
</nav>
<img src="./468-thumbnail.png" alt="song image" class="song-img">
<h1>Zara Zara</h1>
<p>Bombay Jayashree</p>
<audio src="./Zara-Zara-X-Cradle-Vaseegara(PaglaSongs).mp3" controls>
</audio>
<input type="range" value="0" name="" id="progress">

<div class="control">
<div><i class="fa-solid fa-backward"></i></div>
<div><i class="fa-solid fa-play"></i></div>
<div><i class="fa-solid fa-forward"></i></div>
</div>
</div>
</div>
<script src="script.js"></script>
</body>
</html>
107 changes: 107 additions & 0 deletions 9. Music Player/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
* {
margin: 0;
padding: 0;
font-family: 'pappins', sans-serif;
box-sizing: border-box;
}

.container {
width: 100%;
height: 100vh;
background: #333;
display: flex ;
align-items: center;
justify-content: center;
flex-wrap: wrap;
}

.music-player{
background: #ffe0e5;
width: 400px;
padding: 25px 35px;
text-align: center;

}

nav{
display: flex;
justify-content: space-between;
margin-bottom: 30px;


}

nav .circle{
border-radius: 50%;
width: 40px;
height: 40px;
line-height: 40px;
background: #fff;
color: #f53192;
box-shadow: 0 5px 10px rgba(255, 26, 26, 0.22);
}
.song-img{
width: 220px;
border-radius: 50%;
border: 8px solid #fff;
box-shadow: 0 10px 60px rgba(255, 26, 26, 0.22);

}

.music-player h1{
font-size: 20px;
font-weight: 400;
color: #333;
margin-top: 20px;

}

.music-player p{
font-size: 14px;
color: #333;
}
#progress{
-webkit-appearance: none;
width: 100%;
height: 6px;
background: #f53192;
border-radius: 4px;
cursor: pointer;
margin: 40px 0;

}
#progress::-webkit-slider-thumb{
-webkit-appearance: none;
background: #f53192;
width: 30px;
height: 30px;
border-radius: 50%;
border: 8px solid #fff;
box-shadow: 0 5px 5px rgba(255, 26, 26, 0.22);

}

.control{
display: flex;
justify-content: center;
align-items: center;
}
.control div{
width: 60px;
height: 60px;
margin: 20px;
background: #fff;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
color: #f53192;
border-radius: 50%;
box-shadow: 0 10px 20px rgba(255, 26, 26, 0.22);
}

.control div:nth-child(2){
transform: scale(1.5);
background: #f53192;
color: #fff;
}

0 comments on commit e94d123

Please sign in to comment.