You've already forked collage-maker
							
							
		
			
				
	
	
		
			86 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			86 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!DOCTYPE html>
 | 
						|
<html>
 | 
						|
    <head>
 | 
						|
        <link rel="stylesheet" href="croppie.css" />
 | 
						|
        <link rel="icon" href="data:;base64,iVBORw0KGgo=" />
 | 
						|
        <script src="http://localhost:35729/livereload.js"></script>
 | 
						|
        <script src="croppie.js"></script>
 | 
						|
        <script src="index.js"></script>
 | 
						|
        <!--
 | 
						|
            width: 3264px;
 | 
						|
            height: 4224px;
 | 
						|
            width: 8.5in;
 | 
						|
            height: 11in;
 | 
						|
        -->
 | 
						|
        <style>
 | 
						|
            .image-surface {
 | 
						|
                overflow: hidden;
 | 
						|
                margin: auto;
 | 
						|
                background-color: lightgreen;
 | 
						|
            }
 | 
						|
            .imagebox {
 | 
						|
                grid-area: image;
 | 
						|
                display:flex;
 | 
						|
                align-items: center;
 | 
						|
                justify-content: center;
 | 
						|
                padding: 50px;
 | 
						|
                flex: 70%;
 | 
						|
            }
 | 
						|
            .container {
 | 
						|
                display: flex;
 | 
						|
                background-color: lightyellow;
 | 
						|
                height: calc(100vh - 20px);
 | 
						|
            }
 | 
						|
            .controls {
 | 
						|
                background-color: lightgrey;
 | 
						|
                display: flex;
 | 
						|
                grid-area: controls;
 | 
						|
                align-items: center;
 | 
						|
                justify-content: center;
 | 
						|
                flex: 30%;
 | 
						|
            }
 | 
						|
            .showbuton {
 | 
						|
                font-size: 2rem;
 | 
						|
            }
 | 
						|
            .letter-portrait {
 | 
						|
                height: 100%;
 | 
						|
                aspect-ratio: 85 / 110;
 | 
						|
            }
 | 
						|
            .letter-portrait .collage-img {
 | 
						|
                height: 50%;
 | 
						|
            }
 | 
						|
            .letter-landscape-2 {
 | 
						|
                display:flex;
 | 
						|
                // width: 80vh;
 | 
						|
                height: 100%;
 | 
						|
                // margin: auto;
 | 
						|
                // aspect-ratio: 110 / 85;
 | 
						|
                aspect-ratio: 7 / 5;
 | 
						|
            }
 | 
						|
            .letter-landscape-2 .img1 {
 | 
						|
                flex: 60%;
 | 
						|
            }
 | 
						|
            .letter-landscape-2 .img2 {
 | 
						|
                flex: 40%;
 | 
						|
            }
 | 
						|
        </style>
 | 
						|
    </head>
 | 
						|
    <body onload="main()">
 | 
						|
        <div class="container">
 | 
						|
            <div class="controls">
 | 
						|
                <button class="showbuton" onClick="showCrop()">Snap Collage</button>
 | 
						|
            </div>
 | 
						|
            <div class="imagebox">
 | 
						|
            <div id="collage" class="image-surface letter-landscape-2">
 | 
						|
                <div class="collage-img img1" data-collage-image-url="img1.jpg">
 | 
						|
                    <!-- <img src="img1.jpg"> -->
 | 
						|
                </div>
 | 
						|
                <div class="collage-img img2" data-collage-image-url="img2.jpg">
 | 
						|
                    <!-- <img src="img2.jpg"> -->
 | 
						|
                </div>
 | 
						|
            </div>
 | 
						|
            </div>
 | 
						|
        </div>
 | 
						|
    </body>
 | 
						|
</html>
 |