mirror of
https://github.com/jlengrand/soundcloud-web-component-application.git
synced 2026-03-10 08:41:23 +00:00
Add styling to title
This commit is contained in:
@@ -8,16 +8,23 @@
|
||||
width: 50%;
|
||||
display: block;
|
||||
}
|
||||
|
||||
#sc-iframe{
|
||||
width: 100%;
|
||||
height: 400px;
|
||||
}
|
||||
|
||||
#sc-player{
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
|
||||
<iframe
|
||||
width="100%"
|
||||
height="800"
|
||||
scrolling="no"
|
||||
<div id="sc-player">
|
||||
<iframe id="sc-iframe"
|
||||
frameborder="no"
|
||||
src="https://w.soundcloud.com/player/?url={{encodedPlaylistUrl}}&auto_play={{autoPlay}}&hide_related={{hideRelated}}&show_comments={{showComments}}&show_user={{showUser}}&show_reposts={{showReposts}}&visual={{visual}}">
|
||||
</iframe>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
Polymer({
|
||||
|
||||
@@ -5,10 +5,46 @@
|
||||
<style>
|
||||
:host {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding-top: 30px;
|
||||
padding-bottom: 30px;
|
||||
}
|
||||
|
||||
#sc-title{
|
||||
width: 60%;
|
||||
box-sizing: border-box;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
h1{
|
||||
border: 3px solid #333;
|
||||
font-size: 300%;
|
||||
font-weight: 100;
|
||||
display: block;
|
||||
text-align: center;
|
||||
font-family: Roboto,Helvetica,Arial,sans-serif;
|
||||
padding: 1em;
|
||||
text-transform: uppercase;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
h2{
|
||||
letter-spacing: 0.05em;
|
||||
opacity: 0.8;
|
||||
display: block;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
font-family: Roboto,Helvetica,Arial,sans-serif;
|
||||
color: #333;
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
|
||||
<h1>Soundcloud Playlist, featuring Polymer</h1>
|
||||
<div id="sc-title">
|
||||
<h1>Get Rocking!</h1>
|
||||
<h2>A simple embedded soundcloud playlist, done in Polymer</h2>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
<script>
|
||||
|
||||
3
app/index.css
Normal file
3
app/index.css
Normal file
@@ -0,0 +1,3 @@
|
||||
body{
|
||||
background-color: #ccc;
|
||||
}
|
||||
@@ -6,14 +6,15 @@
|
||||
</head>
|
||||
<script src="webcomponentsjs/webcomponents-lite.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="index.css">
|
||||
|
||||
<link rel="import" href="components/sc-title/sc-title.html">
|
||||
<link rel="import" href="components/sc-profile/sc-profile.html">
|
||||
<link rel="import" href="components/sc-player/sc-player.html">
|
||||
|
||||
<body>
|
||||
<h1>PLOP</h1>
|
||||
<sc-title></sc-title>
|
||||
<sc-profile></sc-profile>
|
||||
<sc-player playlist-url="https://soundcloud.com/stuart-silva-322219159/sets/romantic-songs-mariela"></sc-player>
|
||||
<sc-profile></sc-profile>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user