Browse Source

Add music player

main
Stephanie Gredell 1 year ago
parent
commit
3dd764fdc5
  1. BIN
      boomer.mp3
  2. 9
      index.css
  3. 11
      index.php
  4. 9
      index.scss

BIN
boomer.mp3

Binary file not shown.

9
index.css

@ -9,7 +9,7 @@ body {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
position: relative; position: relative;
top: 370px; top: 428px;
margin: 0 auto; margin: 0 auto;
} }
.wishes form { .wishes form {
@ -227,6 +227,13 @@ body {
top: 0; top: 0;
} }
.audio {
position: absolute;
left: 50%;
margin-left: -137px;
top: 450px;
}
.balloon { .balloon {
height: 125px; height: 125px;
width: 105px; width: 105px;

11
index.php

@ -8,6 +8,11 @@
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap" rel="stylesheet">
<script>
window.onload = function() {
var context = new AudioContext();
}
</script>
</head> </head>
<body> <body>
<h1 class="title">Happy Birthday Prime!</h1> <h1 class="title">Happy Birthday Prime!</h1>
@ -26,7 +31,11 @@
<div class="flame"></div> <div class="flame"></div>
</div> </div>
</div> </div>
<div class="audio">
<audio controls>
<source src="boomer.mp3">
</audio>
</div>
<div class="wishes"> <div class="wishes">
<script crossorigin src="https://unpkg.com/@memorista/client-ui@2/dist/index.bundle.js"></script> <script crossorigin src="https://unpkg.com/@memorista/client-ui@2/dist/index.bundle.js"></script>

9
index.scss

@ -8,7 +8,7 @@ body {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
position: relative; position: relative;
top: 370px; top: 428px;
margin: 0 auto; margin: 0 auto;
form { form {
@ -274,6 +274,13 @@ body {
top:0; top:0;
} }
.audio {
position: absolute;
left: 50%;
margin-left: -137px;
top: 450px;
}
.balloon { .balloon {
height: 125px; height: 125px;
width: 105px; width: 105px;

Loading…
Cancel
Save