Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <body>
 <div class="music-bg"> 
	<div class="single-bg">
		
		<div class="music__content-container">
		
		 <div class="pink-box-33">
		  <img src="https://drewgoff.com/images/music-singles/missy-single-box-shot.jpg" class="img-responsive shadow-single" alt="missy-single-box-shot" width="800" height="800" >
		 </div>
		 
		 <div class="pink-box-66">
		  <h2 class="accent">Missy's Song</h2>	
		  <br />
		  <h3>Release date: 6/25/2019</h3> 
		  <br />
		  <p>
			I wrote this piece of music for my wife.  After being married 
			for the past fourteen years, I wanted to surprise her with a 
			piece of music I wrote just for her.
		  <br />
		  <br />
			After performing it for her and some friends of mine. 
			Everyone agreed for it to be the first single.  Well I hope 
			you enjoy it as much as my wife does.
		  </p>
		 </div><!--pink-box-66-->
		 
		</div><!--music__content-container-->
		
		
		<div class="centered-title">Listen On</div>
		
		
		<div class="listen-flex-container">
			
		 <div class="listen-flex-item">
		  <a href="https://itunes.apple.com/us/artist/1470184159">
		   <img src="https://drewgoff.com/images/music-logos/apple-logo.svg" class="img-responsive-centered" alt="apple-music-logo" width="179" height="39" >
		  </a>
		 </div>
		 
		 <div class="listen-flex-item">
		  <a href="https://open.spotify.com/album/3UrXONFX6T3M0COt2jHKqK">
		   <img src="https://drewgoff.com/images/music-logos/spotify-logo.svg" class="img-responsive-centered" alt="spotify" width="131" height="40" >
		  </a>
		 </div>
		 
		 <div class="listen-flex-item">
		  <a href="https://www.youtube.com/watch?v=vRgS7f7JX_U">
		   <img src="https://drewgoff.com/images/music-logos/youTube-logo.svg" class="img-responsive-centered" alt="youTube-logo" width="141" height="33" >
		  </a>
		 </div>
		 
		 <div class="listen-flex-item">
		  <a href="https://music.amazon.com/search/Drew+Goff">
		   <img src="https://drewgoff.com/images/music-logos/amazon-logo.svg" class="img-responsive-centered" alt="amazon-logo" width="134" height="40" >
		  </a>
		 </div>
		 
		</div>
		
  </div>
 </div>
</body>
              
            
!

CSS

              
                //================================
//  White Colors
//================================
$super-white:		#ffffff;
$white:   		 	#f2f2f2;
$off-white:			#e5e5e5;
$white-grey:	 	#c5c5c5;

//================================
//  Grey Colors
//================================
$lighter-pale-grey: #89898e;
$light-pale-grey:   #7c7c81;
$light-grey-grey:	  #636367;
$super-light-grey:	#56565a;
$light-grey-blue: 	#4a4a4d;
$dark-grey-blue: 	  #313133;
$dark-black-blue: 	#252526;

//================================
//  Pink Colors
//================================
$bright-pink:  	#f65ba6;
$light-pink:	 	#ff4d79;
$medium-pink:		#ff3366;
$dark-pink: 		#ea2e6d;

//================================
//  Button Colors
//================================
$top-button:		#ea2e6d;
$bottom-button:	#e8175d;

//================================
//  Fonts
//================================
$title-font:	   	   'Anton', sans-serif;
$bold-font-weight: 	  400;

$body-font:		   	   'Nunito', sans-serif;
$medium-font-weight:  400; 
$regular-font-weight: 300;   

/* =====================
	    Google Fonts
======================== */
@import url('https://fonts.googleapis.com/css?family=Anton|Nunito:300,400');

/* =====================
	    Mini Reset
======================== */
/*! minireset.css v0.0.3 | MIT License | github.com/jgthms/minireset.css */
html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,
legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6 
{margin:0;padding:0}
h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}
ul{list-style:none}
button,input,select,textarea{margin:0}
html{box-sizing:border-box}
*,*:before,*:after{box-sizing:inherit}
img,embed,iframe,object,audio,video{height:auto;max-width:100%}
iframe{border:0}table{border-collapse:collapse;border-spacing:0}
td,th{padding:0;text-align:left}

/* =====================
	        Body
======================== */
html { font-size: 62.5%; }
html, body { height: 100%; min-width: 320px; }


body {
   display: flex;
   flex-direction: column;
   background-color: $light-grey-blue;
   color: $white;
   font-size: 17px;
   line-height: 1.6;
   font-family: $body-font;
}  

a {
  color: $medium-pink;
  text-decoration: none;
  &:hover {
	color: $dark-pink;
    outline: 0;
  }
}

/* =====================
	     Typography
======================== */
h1, h2, h3, h4, h5, h6 { 
	color: $white;
	font-family: $title-font; 
	font-weight: $bold-font-weight; 
	letter-spacing: 2.77px; 
	line-height: 1.25;
	margin: 4px 0 4px 0;
}

h1.accent, h2.accent, h3.accent, 
h4.accent, h5.accent, h6.accent { 
	color: $white;
	font-family: $body-font; 
	font-weight: 300; 
	letter-spacing: 1px; 
	line-height: 1;
}

h1 { font-size: 3.0rem; text-shadow: 0px 3px 16px rgba(50, 50, 50, 0.75); }
h2 { font-size: 2.5rem; }
h3 { font-size: 2.0rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.0rem; }
h6 { font-size: 0.5rem; }

h1.accent { font-size: 2.84rem; text-shadow: 0px 3px 16px rgba(50, 50, 50, 0.75); }
h2.accent { font-size: 3rem; text-shadow: 0px 3px 16px rgba(50, 50, 50, 0.75); }

h1::first-letter { color: $dark-pink; font-size: 5rem; }
h2.accent::first-letter { color: $dark-pink; font-size: 5rem; }


@media only screen and (max-width: 480px)  { 
 h1 { font-size: 2.4rem; }
 h2 { font-size: 2.1rem; }
 h3 { font-size: 1.9rem; }
 h4 { font-size: 1.6rem; } 
 h5 { font-size: 1.3rem; }
 h6 { font-size: 1.0rem; }
 h1::first-letter { font-size: 4rem; }
}

.centered { margin-top: 25px; text-align: center; }

strong {
	color: $dark-pink;
	display: inline-block;
	font-family: $title-font;
	font-size: 1.7rem;
	font-weight: 400;
	letter-spacing: 1px;
}

p {
    color: $white;
    display: inline-block;
    font-size: 1.7rem;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.3;
    margin-left: 0;
    margin-right: 0;
}

.pad-left-10 { padding-left: 10px; }
.shadow-single { box-shadow: 0 10px 20px 0 rgba(0,0,0,0.50); }

/* ======================
  Music Single Component
========================= */
.music-bg {
  background-image: url(https://drewgoff.com/../images/music-singles/music-bg.jpg);
  background-position: left center;  
  background-repeat:  no-repeat;   
  background-size: cover;  
  box-shadow: 0 10px 20px 0 rgba(0,0,0,0.50);
  height: auto;
  padding: 40px 15px 40px 15px;
  width: 100%;
}

.single-bg {
  background: rgba(49,49,51,0.70);
  border-radius: 8px;  
  box-shadow: 0 10px 20px 0 rgba(0,0,0,0.50);
  height: auto;  
  margin: 0 auto;
  max-width: 1080px;
  padding: 7px;
}

.music__content-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;	
}

.pink-box-33 { 
  margin: 7px;
  padding: 2px;
  width: calc(33.3333% - 15px);
}

.pink-box-66 { 	
  padding: 10px;
  margin: 7px;
  width: calc(66.6666% - 15px);
}

@media only screen and (max-width: 900px) {
 .pink-box-33 { 
   padding: 0;
   margin: 30px 7px 7px 7px;
   width: calc(33.3333% - 15px);
 }
}

@media only screen and (max-width: 700px) {
 .pink-box-33 { 
	padding: 0;
	margin: 7px;
	width: calc(100% - 15px);
 }

 .pink-box-66 { 
	padding: 10px;
	margin: 7px;
	width: calc(100% - 15px);
 }	
}

.centered-title {
  border-bottom: 0.5px solid $white-grey;  
  font-family: $body-font;
  font-size: 3rem;
  font-weight: $regular-font-weight;
  letter-spacing: 2px;
  margin: 0 auto;  
  padding: 0 10px 0 10px;
  text-align: center;  
  width: 95%;
}

.listen-flex-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: 10px;
}

.listen-flex-item:nth-child(1),
.listen-flex-item:nth-child(2),
.listen-flex-item:nth-child(3),
.listen-flex-item:nth-child(4) {
  align-self: auto;
  flex: 0 1 190px;
  margin: 15px;
  padding: 10px;
}
              
            
!

JS

              
                
              
            
!
999px

Console