123

Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

Save Automatically?

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="book-container">
	<div class="book">
		<div class="back-cover book-cover">
			<div id="bgCover" class="black-back-cover">
				<div id="backCover" class="black-back-text">
				<svg width="100%" height="100%" preserveAspectRatio="true" viewbox="0 0 540 600">
					
					
					<text  x="20" y="40" fill="#fff"  class="back-cover-text">

										<tspan x="30" dy="10">
				In a sweeping narrative that speaks to the serious student of urban </tspan>
				<tspan x="30" dy="20">			
				studies as well as the general reader, Mark Goldman tells the story </tspan>
					<tspan x="30" dy="20">
					of twentieth-century Buffalo, New York. Goldman covers all of the</tspan>
						
						<tspan x="30" dy="20">
						 major developments: 
						</tspan>
						<tspan x="40" dy="35">		
						• The rise and decline of the city’s downtown and ethnic
						</tspan>	
						<tspan x="40" dy="23">		
neighborhoods 
						</tspan>	
						<tspan x="40" dy="25">			
						• The impact of racial change and suburbanization
						</tspan>	
					
						
						<tspan x="40" dy="25">	
						• The role and function of the arts in the life of the community
						</tspan>	
						
						<tspan x="40" dy="25">		
						• Urban politics, urban design, and city planning
					</tspan>	
						
					<tspan x="30" dy="35">				
						While describing the changes that so drastically altered the form,
					</tspan>	
						<tspan x="30" dy="20">			
						function, and character of the city, Goldman, through detailed
							</tspan>
						<tspan x="30" dy="20">			
							descriptions of special people and special places, gives a sense
						</tspan>
						<tspan x="30" dy="20">			
							of intimacy and immediacy to these otherwise impersonal historical
						</tspan>

						<tspan x="30" dy="20">			
							forces. City on the Edge unflinchingly documents and describes
						</tspan>

						<tspan x="30" dy="20">			
							 how Buffalo has been battered by the tides of history. But it also
						</tspan>

						<tspan x="30" dy="20">			
							 describes the unique characteristics that have encouraged an
						</tspan>

						<tspan x="30" dy="20">			
							 innovative cultural climate, including Buffalo’s dynamic survival 
						</tspan>
						<tspan x="30" dy="20">					
							instinct that continues to lead to a surprisingly and inspiringly high
						</tspan>
						<tspan x="30" dy="20">												
							 quality of community life. Finally, it offers a road map, which—if
							</tspan>
						
						<tspan x="30" dy="20">					
							 followed—could point the way to a new and exciting future for
								</tspan>
						
						
						<tspan x="30" dy="20">					
							 this long-troubled city.
						</tspan>
						
						
						
					</text>
					</svg>
				</div>
			</div>
		</div>
		<div class="book-spine">
			<div class="yellow-spine">
			
			</div>
			<div class="black-spine">
				<svg preserveAspectRatio="true" x="0px" y="0px" width="100%" height="100%">
				<text x="45" y="30" class="spine-text">CITY ON THE EDGE</text>	
				</svg>
			</div>
		</div>
		<div class="front-cover book-cover">

			<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="true" x="0px" y="0px" width="100%" height="100%" viewBox="0 0 500 600" class="svg-cover">
			<defs>
				
			<g id="Layer1_0_FILL">
			<path fill="#000000" stroke="none" d="
			M 290.55 158.75
			L 290.55 190.25 313.05 190.25 312.55 158.75 290.55 158.75
			M 260.8 161.25
			L 255.5 161.25 249.15 161.25 249.15 190.25 266.65 190.25 266.65 161.25 260.8 161.25
			M 254.55 158.15
			Q 253.5 157.15 253.15 157.25 252.75 157.3 252.6 157.35
			L 252.6 157.75 252.6 157.35 252.5 157.35
			Q 252.3 157.35 251.85 157.35 251.15 157.3 250.2 158.35 249.25 159.4 249.15 161.25
			L 255.5 161.25
			Q 255.6 159.15 254.55 158.15
			M 281.85 168.35
			Q 278.9 166.75 277 167.05 275.1 167.35 273.35 168.7 271.6 170 270.55 173.35
			L 270.55 190.25 285.5 190.25 285.5 173.3
			Q 285.45 173.15 285.45 173 284.75 169.95 281.85 168.35
			M 266.65 161.25
			Q 266.55 157.65 264.1 157.1 262.6 156.95 261.75 158.15 260.9 159.35 260.8 161.25
			L 266.65 161.25
			M 236.65 163.35
			L 234.6 163.35 234.6 190.25 244.1 190.25 244.1 163.65 241.85 163.65 241.85 148.85 239.2 147.6 236.65 148.8 236.65 163.35
			M 162.2 190.25
			L 162.2 168.6 159 158.95 159.55 155.4 157.9 152.95 157.9 147.6 156.3 145.35 154.65 147.85 154.65 152.35 152.9 156 153.65 158.85 150.75 168.2 150.75 190.25 162.2 190.25
			M 179.1 178.2
			L 173.85 178.2 165.1 178.2 165.1 190.25 179.1 190.25 179.1 178.2
			M 173.85 178.2
			L 179.1 178.2 176.6 156.75 173.85 178.2
			M 194.8 165.45
			L 183.55 165.45 183.55 190.25 194.8 190.25 194.8 165.45
			M 217.15 147.8
			Q 214.9 144.5 212.9 147.8 211.9 150.65 212.9 153.35 211.25 154.75 211 156.45
			L 211 160.35 209.75 160.35 209.75 165.2 202.85 165.2 202.85 171.1 198.9 171.1 198.9 190.25 230.45 190.25 230.45 171 227.45 171 227.45 164.85 220.2 164.85 220.2 160.1 218.9 160.1 218.9 156.55
			Q 218.9 154.95 217.15 153.35 218.2 150.5 217.15 147.8
			M 329.3 190.25
			L 329.3 177.75 316.3 177.75 316.3 190.25 329.3 190.25
			M 350.1 190.25
			L 333.05 190.25 329.3 190.25 316.3 190.25 313.05 190.25 290.55 190.25 285.5 190.25 270.55 190.25 266.65 190.25 249.15 190.25 244.1 190.25 234.6 190.25 230.45 190.25 198.9 190.25 194.8 190.25 183.55 190.25 179.1 190.25 165.1 190.25 162.2 190.25 150.75 190.25 -1 190.25 -1 601.3 328.6 601.3 278.55 553.3 215.05 450.8 195.05 381.75 203.05 327.25 214.55 292.75 345.1 211.75 350.1 190.25
			M 350.1 121.2
			L 333.05 121.2 333.05 190.25 350.1 190.25 350.1 121.2 Z"/>
			</g>

			<path id="Layer1_0_1_STROKES" stroke="#000000" stroke-width="1" stroke-linejoin="round" stroke-linecap="round" fill="none" d="
			M 350.1 190.25
			L 350.1 121.2 333.05 121.2 333.05 190.25 350.1 190.25 345.1 211.75 214.55 292.75 203.05 327.25 195.05 381.75 215.05 450.8 278.55 553.3 328.6 601.3
			M -1 190.25
			L 150.75 190.25 150.75 168.2 153.65 158.85 152.9 156 154.65 152.35 154.65 147.85 156.3 145.35 156.3 139.1
			M 252.5 157.35
			L 252.6 157.35
			Q 252.75 157.3 253.15 157.25 253.5 157.15 254.55 158.15 255.6 159.15 255.5 161.25
			L 260.8 161.25
			Q 260.9 159.35 261.75 158.15 262.6 156.95 264.1 157.1 266.55 157.65 266.65 161.25
			L 266.65 190.25 270.55 190.25 270.55 173.35
			Q 271.6 170 273.35 168.7 275.1 167.35 277 167.05 278.9 166.75 281.85 168.35 284.75 169.95 285.45 173 285.45 173.15 285.5 173.3
			L 285.5 190.25 290.55 190.25 290.55 158.75 312.55 158.75 313.05 190.25 316.3 190.25 316.3 177.75 329.3 177.75 329.3 190.25 333.05 190.25
			M 239.2 147.6
			L 239.2 139.65
			M 156.3 145.35
			L 157.9 147.6 157.9 152.95 159.55 155.4 159 158.95 162.2 168.6 162.2 190.25 165.1 190.25 165.1 178.2 173.85 178.2 176.6 156.75 179.1 178.2 179.1 190.25 183.55 190.25 183.55 165.45 194.8 165.45 194.8 190.25 198.9 190.25 198.9 171.1 202.85 171.1 202.85 165.2 209.75 165.2 209.75 160.35 211 160.35 211 156.45
			Q 211.25 154.75 212.9 153.35 211.9 150.65 212.9 147.8 214.9 144.5 217.15 147.8 218.2 150.5 217.15 153.35 218.9 154.95 218.9 156.55
			L 218.9 160.1 220.2 160.1 220.2 164.85 227.45 164.85 227.45 171 230.45 171 230.45 190.25 234.6 190.25 234.6 163.35 236.65 163.35 236.65 148.8 239.2 147.6 241.85 148.85 241.85 163.65 244.1 163.65 244.1 190.25 249.15 190.25 249.15 161.25
			Q 249.25 159.4 250.2 158.35 251.15 157.3 251.85 157.35 252.3 157.35 252.5 157.35
			L 252.5 153.7
			M 173.85 178.2
			L 179.1 178.2
			M 165.1 190.25
			L 179.1 190.25
			M 183.55 190.25
			L 194.8 190.25
			M 198.9 190.25
			L 230.45 190.25
			M 263.7 156.7
			L 263.7 153.75
			M 252.6 157.75
			L 252.6 157.35
			M 249.15 161.25
			L 255.5 161.25
			M 249.15 190.25
			L 266.65 190.25
			M 260.8 161.25
			L 266.65 161.25
			M 290.55 190.25
			L 313.05 190.25
			M 270.55 190.25
			L 285.5 190.25
			M 234.6 190.25
			L 244.1 190.25
			M 150.75 190.25
			L 162.2 190.25
			M 316.3 190.25
			L 329.3 190.25"/>
			</defs>

				
			<g transform="matrix( 1, 0, 0, 1, 0,0) ">
			<use xlink:href="#Layer1_0_FILL"/>
			<use xlink:href="#Layer1_0_1_STROKES"/>
			<text x="20" y="250" class="small-text-front">Mark Goldman</text>	
			<text x="20" y="320" class="book-title">
				<tspan x="20" dy="0em">CITY</tspan> 
				<tspan x="20" dy="1em">ON</tspan> 
				<tspan x="20" dy="1em">THE</tspan> 
				<tspan x="20" dy="1em">EDGE</tspan>
			</text>
			<text x="20" y="574" class="small-text-front">BUFFALO, NEW YORK</text>	
			</g>
			</svg>
		</div>
	</div>
</div>
            
          
!
            
              $yellowBG: #ffc312;

body {
	background: $yellowBG;	
}

.book-container {
	position: absolute;
	height: 100%;
	width: 100%;
	background: $yellowBG;
}
.book {
	display: flex;
	max-width: 1200px;
	margin: auto;
}

.spine-text {
	font-family: 'Lato', sans-serif;
	font-weight: 100;
	writing-mode: tb;
	fill: #fff;
	font-size: 0.8em;
}
.spine-text-top {
	font-family: 'Lato', sans-serif;
	font-size: 1.2em;
	color: #000;	
	writing-mode: tb;
}

.book-spine {
	flex: 1;
	flex-direction: column;
}
.yellow-spine {
	position: relative;
	height: 31.6%;
	width: 100%;
	background: $yellowBG;
}

.black-spine {
	position: relative;
	height: 68.4%;
	background: #000;
	color: #fff;
	font-size: 3vw;
}
.black-back-cover {
	position: relative;
	height: 100%;
	top: 0%;
	width: 100%;
	background: #000;
	left: 0;	
}
.back-cover-text {
	font-family: 'Lato', sans-serif;
}

.book-cover {
	flex: 6;
	background: $yellowBG;
}

.small-text-front {
	font-family: 'Lato', sans-serif;
	font-weight: 100;
	fill: #fff;
	font-size: 1.23em;
	text-transform: uppercase;
}
.book-title {
	fill: #fff;
	font-size: 4.5em;
	font-family: 'Lato', sans-serif;
	font-weight: 100;
}


@media only screen and (max-width: 1000px) {
	.black-back-cover {
		padding-top: 30px;
	}
	.svg-cover {
		top: 10px;
		position: relative;
	}
	.book {
		 display: flex;
		 max-width: 1200px;
		 margin: auto;
		 flex-direction: column-reverse;
	}
	.book-spine {
		display: none;
	}
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console