parent
							
								
									4378257505
								
							
						
					
					
						commit
						00f5267650
					
				
				 3 changed files with 68 additions and 0 deletions
			
			
		| After Width: | Height: | Size: 656 KiB | 
| @ -0,0 +1,26 @@ | |||||||
|  | <!DOCTYPE html> | ||||||
|  | <html lang="en"> | ||||||
|  | <head> | ||||||
|  |     <meta charset="UTF-8"> | ||||||
|  |     <meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||||||
|  |     <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||||
|  |     <link rel="stylesheet" href="lib/style.css"> | ||||||
|  |     <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Overpass"> | ||||||
|  |     <title>Storybook</title> | ||||||
|  | </head> | ||||||
|  | <body> | ||||||
|  |     <div id="book"> | ||||||
|  |         <h2 id="title">The Shire</h2> | ||||||
|  |         <div id="page"> | ||||||
|  |             <img src="images/shire.png" id="pageImage"> | ||||||
|  |             <div id="pageText"> | ||||||
|  |                 The Shire is a region of J. R. R. Tolkien's fictional Middle-earth, described in The Lord of the Rings and other works. The Shire is an inland area settled exclusively by hobbits, the Shire-folk, largely sheltered from the goings-on in the rest of Middle-earth. It is in the northwest of the continent, in the region of Eriador and the Kingdom of Arnor. | ||||||
|  |             </div> | ||||||
|  |         </div> | ||||||
|  |         <div id="controls"> | ||||||
|  |             <button>Prev</button> | ||||||
|  |             <button>Next</button> | ||||||
|  |         </div> | ||||||
|  |     </div> | ||||||
|  | </body> | ||||||
|  | </html> | ||||||
| @ -0,0 +1,42 @@ | |||||||
|  | body { | ||||||
|  |     background-color: #CCC; | ||||||
|  |     font-family: "Overpass", sans-serif; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | #book { | ||||||
|  |     width: 80%; | ||||||
|  |     padding: 10px; | ||||||
|  |     margin: 0 auto; | ||||||
|  |     min-height: 600px; | ||||||
|  |     max-width: 900px; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | #page { | ||||||
|  |     float: left; | ||||||
|  |     width: 80%; | ||||||
|  |     min-height: 500px; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | #pageImage { | ||||||
|  |     width: 100%; | ||||||
|  |     max-height: 400px; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | #pageText { | ||||||
|  |     background-color: rgba(1,1,1,.5); | ||||||
|  |     padding: 10px; | ||||||
|  |     color: white; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | #controls { | ||||||
|  |     float: right; | ||||||
|  |     display: inline; | ||||||
|  |     width: 15%; | ||||||
|  |     padding: 10px; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | #controls button { | ||||||
|  |     display: block; | ||||||
|  |     width: 100%; | ||||||
|  |     margin-top: 5px; | ||||||
|  | } | ||||||
					Loading…
					
					
				
		Reference in new issue