Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature : Responsivity & fix : positioning #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 47 additions & 41 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,46 +1,52 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<link rel="stylesheet" href="./style.css" />
<title>Audio App</title>
</head>
<body>
<div class="app">
<div class="vid-container">
<video loop >
<source src="./video/rain.mp4" type="video/mp4">
</video>
</div>
<div class="time-select">
<button data-time="10">2 Minutes</button>
<button data-time="300" class="medium-mins">5 Minutes</button>
<button data-time="600" class="long-mins">10 Minutes</button>
</div>
<div class="player-container">
<audio class="song">
<source src="./sounds/rain.mp3" />
</audio>
<img src="./svg/play.svg" class="play"></img>
<svg class="track-outline" width="453" height="453" viewBox="0 0 453 453" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="226.5" cy="226.5" r="216.5" stroke="white" stroke-width="20"/>
</svg>
<svg class="moving-outline" width="453" height="453" viewBox="0 0 453 453" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="226.5" cy="226.5" r="216.5" stroke="#018EBA" stroke-width="20"/>
</svg>
<img src="./svg/replay.svg" class="replay"></img>

<h3 class="time-display">0:00</h3>
</div>
<div class="sound-picker">
<button data-sound="./sounds/rain.mp3" data-video="./video/rain.mp4" ><img src="./svg/rain.svg" alt=""></button>
<button data-sound="./sounds/beach.mp3" data-video="./video/beach.mp4"><img src="./svg/beach.svg" alt=""></button>
</div>

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<link rel="stylesheet" href="./style.css" />
<title>Audio App</title>
</head>

<body>
<div class="app">
<h1 class="HeaderTitle">Meditation Zone</h1>
<div class="vid-container">
<video loop>
<source src="./video/rain.mp4" type="video/mp4">
</video>
</div>
<div class="time-select">
<button data-time="120" class="medium-mins">2 Minutes</button>
<button data-time="300" class="medium-mins">5 Minutes</button>
<button data-time="600" class="long-mins">10 Minutes</button>
</div>
<div class="player-container">
<audio class="song">
<source src="./sounds/rain.mp3" />
</audio>
<img src="./svg/play.svg" class="play"></img>
<svg class="track-outline" width="453" height="453" viewBox="0 0 453 453" fill="none"
xmlns="http://www.w3.org/2000/svg">
<circle cx="226.5" cy="226.5" r="216.5" stroke="white" stroke-width="20" />
</svg>
<svg class="moving-outline" width="453" height="453" viewBox="0 0 453 453" fill="none"
xmlns="http://www.w3.org/2000/svg">
<circle cx="226.5" cy="226.5" r="216.5" stroke="#018EBA" stroke-width="20" />
</svg>
<img src="./svg/replay.svg" class="replay"></img>

<h3 class="time-display">0:00</h3>
</div>
<div class="sound-picker">
<button data-sound="./sounds/rain.mp3" data-video="./video/rain.mp4"><img src="./svg/rain.svg" alt=""></button>
<button data-sound="./sounds/beach.mp3" data-video="./video/beach.mp4"><img src="./svg/beach.svg" alt=""></button>
</div>
</div>

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

<script src="app.js"></script>
</body>
</html>
73 changes: 73 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,76 @@ video {
width: 100%;
z-index: -10;
}

.play{
margin: auto;
position: relative;
}
.HeaderTitle{
position: fixed;
color: white;
top: 5% ;
font-size: 50px;

}
@media only screen and (max-width:767px){
.app{
height: 100%;
}
.HeaderTitle{
font-size: 18px;
}
video{
height: 100%;
width: auto;
display: block;
}
.time-select{
position: fixed;
height: 50%;
bottom: 0;
left: 0%;
width: 50%;
}

.time-select button{
width: 70%;
height: 20%;
color: white;
border: 1px solid white;
}

.time-select button:hover {
background: white;
color: rgb(63, 63, 63);
border: 0px solid white;
box-shadow: 0px 0px 10px black;

}
.sound-picker{

position: fixed;
height: 50%;
bottom: 0;
right: 0%;
width: 50%;
}
.sound-picker button{
transition: ease-in-out 0.4s;
box-shadow: 0px 0px 5px black;
}
.sound-picker button:hover{
box-shadow: 0px 0px 10px black;
}
.player-container{
height: 50%;
position: fixed;
top: 0;
}
.play{
height: 10%;
}
.time-display{
font-size: 20px;
}
}