Skip to content

Instantly share code, notes, and snippets.

@MatthewStanciu
Last active September 8, 2018 03:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MatthewStanciu/26784f51698086b747196cecd6641589 to your computer and use it in GitHub Desktop.
Save MatthewStanciu/26784f51698086b747196cecd6641589 to your computer and use it in GitHub Desktop.
Form for spotify collaborative playlist
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="./public/style.css">
</head>
<body>
<form action="/song" method="post" id="urlform">
<input class="url" name="submiturl" type="text" placeholder="Enter the Spotify URL" autofocus>
</form>
<button form="urlform"><strong>Add to playlist</strong></button>
<iframe src="link-to-your-spotify-playlist" width="350" height="450" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
</body>
</html>
body, html {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
display:table;
}
html {
color: white;
}
h1 {
text-align: center;
font-family: 'Averta-Bold';
font-size: 75px;
}
body {
display:table-cell;
vertical-align:middle;
background: linear-gradient(-45deg, #EE7752, #E73C7E, #23A6D5, #23D5AB);
background-size: 400% 400%;
-webkit-animation: Gradient 15s ease infinite;
-moz-animation: Gradient 15s ease infinite;
animation: Gradient 15s ease infinite;
}
a {
color: white;
transition: 0.3s;
text-decoration: none;
}
a:hover {
color: #c9c9c9;
transition: 0.3s;
}
form, iframe, button {
display:table;
margin:auto;
}
iframe {
padding-top: 15px;
}
input {
border-radius: 25px;
border: 2px solid #191414;
padding: 15px;
width: 300px;
height: 15px;
}
button {
border-radius: 20px;
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
border: 2px solid #191414;
width: 100px;
height: 30px;
}
@font-face {
font-family: 'Averta-Bold';
src: url("https://cdn.glitch.com/b93ccff4-c0b0-40d9-b578-973b8d482cce%2Faverta-bold.woff?1535838836480");
}
@-webkit-keyframes Gradient {
0% {
background-position: 0% 50%
}
50% {
background-position: 100% 50%
}
100% {
background-position: 0% 50%
}
}
@-moz-keyframes Gradient {
0% {
background-position: 0% 50%
}
50% {
background-position: 100% 50%
}
100% {
background-position: 0% 50%
}
}
@keyframes Gradient {
0% {
background-position: 0% 50%
}
50% {
background-position: 100% 50%
}
100% {
background-position: 0% 50%
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment