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

Krishna's quotes with soothing background music #835

Closed
wants to merge 21 commits into from
Closed
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
5 changes: 4 additions & 1 deletion Divine_page/story.html
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ <h1>Bhagwadgita Trivia</h1>
<a href="../quiz_page/quiz.html">
<button class="quiz_btn">START BHAGWAD GITA QUIZ</button>
</a>
<a href="../quiz_page/quiz.html">
<button class="quiz_btn">BHAGWAD QUOTES</button>
</a>
</div>
<br>
<br>
Expand Down Expand Up @@ -199,4 +202,4 @@ <h3 class="title" style="font-size: 28px; text-align: end; color: #fff; margin:

</body>

</html>
</html>
34 changes: 34 additions & 0 deletions quotes_page/krishna.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
body{
margin: 0;
padding: 0;
}
*{
text-decoration: none;
}
button{
background: #a3caff;
font-size: 1.2rem;
color: rgb(36, 41, 5);
margin-left: 20px;
border-radius: 20px;
padding: 12px 22px;
border: none;
outline: none;
border-radius: 10px;
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
button a{
color: rgb(149, 53, 53);
font-weight: bolder;
font-size: 100px;
}
button{
position: absolute;
top: 50%;
left: 45%;
}
button:hover {
background: #3facf4;
color: rgb(84, 103, 117);
cursor: pointer;
}
41 changes: 41 additions & 0 deletions quotes_page/krishna.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!--<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0">
<title>Background Music</title>
<link rel="stylesheet" href="../quotes_page/krishna.css">
</head>
<body style="background: url('../Images/ThankfulEnchantingDairycow-size_restricted.gif');
background-size: 100%;
background-repeat: no-repeat;">
<audio src="river-music.mp3" controls loop autoplay></audio>

<a href="../quotes_page/page1.html">
<button>START</button>
</a>
</body>
</html>
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0">
<title>Background Music</title>
<link rel="stylesheet" href="../quotes_page/krishna.css">
</head>
<body style="background: url('../Images/ThankfulEnchantingDairycow-size_restricted.gif');
background-size: 100%;
background-repeat: no-repeat;">
<script src="krishna.js"></script>
<a href="../quotes_page/page1.html">
<button>START</button>
</a>
</body>
</html>



12 changes: 12 additions & 0 deletions quotes_page/krishna.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
window.addEventListener('DOMContentLoaded', (event) => {
const audio = new Audio('river-music.mp3'); // Replace 'river-music.mp3' with the path to your audio file
audio.loop = true;
audio.autoplay = true;

document.addEventListener('DOMContentLoaded', () => {
audio.play();
});
});



47 changes: 47 additions & 0 deletions quotes_page/page1.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
body{
font-family: sans-serif;
color: bisque;
height: 100vh;
}

section{
border: 10px black;
height: 90vh;

display: flex;
align-items: center;
justify-content: center;
}
.container{
border: 10px black;
max-width: 700px;
width: 100%;
margin: auto;
background-color: rgba(0, 0, 0, 0.8);
font-size: 38px;
color: white;
display: inline-flex;
animation: typing 1.5s steps();

height: 35vh;
display: flex;
align-items: center;
justify-content: center;
}
button{
background: #a3caff;
font-size: 1.2rem;
color: rgb(36, 41, 5);
margin-left: 20px;
border-radius: 20px;
padding: 12px 22px;
border: none;
outline: none;
border-radius: 10px;
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
button:hover {
background: #3facf4;
color: rgb(59, 104, 146);
cursor: pointer;
}
29 changes: 29 additions & 0 deletions quotes_page/page1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Navigation Bar</title>
<link rel="stylesheet" href="../quotes_page/page1.css">
<script src="krishna.js"></script>
</head>
<body>
<body style = "background: url('../Images/ThankfulEnchantingDairycow-size_restricted.gif');
background-size: 100%;
background-repeat: no-repeat;">
<section>
<div class="container">
<blockquote>
A man is made by his belief. As he belives. So he becomes.
</blockquote>
</div>
</section>
<a href="../quotes_page/krishna.html">
<button>BACK</button>
</a>
<a href="../quotes_page/page2.html">
<button>NEXT</button>
</a>
</body>
</html>
43 changes: 43 additions & 0 deletions quotes_page/page2.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
body{
font-family: sans-serif;
color: bisque;
}
section{
border: 10px black;
height: 90vh;

display: flex;
align-items: center;
justify-content: center;
}
.container{
border: 10px black;
max-width: 700px;
width: 100%;
margin: auto;
background-color: rgba(0, 0, 0, 0.8);
font-size: 38px;
color: white;

height: 40vh;
display: flex;
align-items: center;
justify-content: center;
}
button{
background: #a3caff;
font-size: 1.2rem;
color: rgb(36, 41, 5);
margin-left: 20px;
border-radius: 20px;
padding: 12px 22px;
border: none;
outline: none;
border-radius: 10px;
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
button:hover {
background: #3facf4;
color: black;
cursor: pointer;
}
31 changes: 31 additions & 0 deletions quotes_page/page2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Navigation Bar</title>
<link rel="stylesheet" href="../quotes_page/page2.css">
<script src="krishna.js"></script>
</head>
<body>
<body style = "background: url('../Images/ThankfulEnchantingDairycow-size_restricted.gif');
background-size: 100%;
background-repeat: no-repeat;">
<section>
<div class="container">
<blockquote>
Whatever happened, happened for the good.
Whatever is happening, is happening for the good.
Whatever will happen, will also happen for the good.
</blockquote>
</div>
</section>
<a href= "../quotes_page/page1.html">
<button>BACK</button>
</a>
<a href="../quotes_page/page3.html">
<button>NEXT</button>
</a>
</body>
</html>
43 changes: 43 additions & 0 deletions quotes_page/page3.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
body{
font-family: sans-serif;
color: bisque;
}
section{
border: 10px black;
height: 90vh;

display: flex;
align-items: center;
justify-content: center;
}
.container{
border: 10px black;
max-width: 700px;
width: 100%;
margin: auto;
background-color: rgba(0, 0, 0, 0.8);
font-size: 38px;
color: white;

height: 35vh;
display: flex;
align-items: center;
justify-content: center;
}
button{
background: #a3caff;
font-size: 1.2rem;
color: rgb(36, 41, 5);
margin-left: 20px;
border-radius: 20px;
padding: 12px 22px;
border: none;
outline: none;
border-radius: 10px;
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
button:hover {
background: #3facf4;
color: black;
cursor: pointer;
}
31 changes: 31 additions & 0 deletions quotes_page/page3.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Navigation Bar</title>
<link rel="stylesheet" href="../quotes_page/page3.css">
<script src="krishna.js"></script>
</head>
<body>
<body style = "background: url('../Images/ThankfulEnchantingDairycow-size_restricted.gif');
background-size: 100%;
background-repeat: no-repeat;">
<section>
<div class="container">
<blockquote>
Do everything you have to do, but not with ego,
not with lust, not with envy but with love,
compassion, humility, and devotion.
</blockquote>
</div>
</section>
<a href="../quotes_page/page2.html">
<button>BACK</button>
</a>
<a href="../quotes_page/page4.html">
<button>NEXT</button>
</a>
</body>
</html>
43 changes: 43 additions & 0 deletions quotes_page/page4.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
body{
font-family: sans-serif;
color: bisque;
}
section{
border: 10px black;
height: 90vh;

display: flex;
align-items: center;
justify-content: center;
}
.container{
border: 10px black;
max-width: 700px;
width: 100%;
margin: auto;
background-color: rgba(0, 0, 0, 0.8);
font-size: 38px;
color: white;

height: 35vh;
display: flex;
align-items: center;
justify-content: center;
}
button{
background: #a3caff;
font-size: 1.2rem;
color: rgb(36, 41, 5);
margin-left: 20px;
border-radius: 20px;
padding: 12px 22px;
border: none;
outline: none;
border-radius: 10px;
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
button:hover {
background: #3facf4;
color: black;
cursor: pointer;
}
Loading