Update index.html
Browse files- index.html +50 -50
index.html
CHANGED
|
@@ -1,57 +1,57 @@
|
|
| 1 |
-
|
| 2 |
-
<
|
| 3 |
-
<
|
| 4 |
-
<
|
| 5 |
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
-
<title>TileSnap - Smash Images</title>
|
| 7 |
-
<link href="https://fonts.googleapis.com/css2?family=Fugaz+One&display=swap" rel="stylesheet">
|
| 8 |
-
<link rel="stylesheet" href="styles.css">
|
| 9 |
-
</head>
|
| 10 |
-
<body>
|
| 11 |
-
<div class="container">
|
| 12 |
-
<h1 class="header">TileSnap</h1>
|
| 13 |
-
<p class="tagline">Smash images into dope collages!</p>
|
| 14 |
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
</
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
</
|
|
|
|
| 33 |
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
|
|
|
| 40 |
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
</
|
|
|
|
| 46 |
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
</
|
| 53 |
</div>
|
| 54 |
</div>
|
| 55 |
-
|
| 56 |
-
</body>
|
| 57 |
-
</html>
|
|
|
|
| 1 |
+
<!-- For GitHub Pages: Add <link href="https://fonts.googleapis.com/css2?family=Fugaz+One&display=swap" rel="stylesheet"> in <head> -->
|
| 2 |
+
<div class="container">
|
| 3 |
+
<h1 class="header">TileSnap</h1>
|
| 4 |
+
<p class="tagline">Smash images into dope collages!</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
+
<div class="card-flow">
|
| 7 |
+
<!-- Step 1: Pick Grid -->
|
| 8 |
+
<div class="card card-1">
|
| 9 |
+
<h2>Grid It</h2>
|
| 10 |
+
<p>Pick your chaos level.</p>
|
| 11 |
+
<select id="layout">
|
| 12 |
+
<option value="1x2">1x2</option>
|
| 13 |
+
<option value="1x3">1x3</option>
|
| 14 |
+
<option value="1x4">1x4</option>
|
| 15 |
+
<option value="2x2">2x2</option>
|
| 16 |
+
<option value="2x3">2x3</option>
|
| 17 |
+
<option value="3x3">3x3</option>
|
| 18 |
+
<option value="4x4">4x4</option>
|
| 19 |
+
<option value="random">Random Mix</option>
|
| 20 |
+
<option value="jagged4">Jagged 4</option>
|
| 21 |
+
<option value="split6">Split 6</option>
|
| 22 |
+
<option value="chaos5">Chaos 5</option>
|
| 23 |
+
</select>
|
| 24 |
+
</div>
|
| 25 |
|
| 26 |
+
<!-- Step 2: Load Images -->
|
| 27 |
+
<div class="card card-2">
|
| 28 |
+
<h2>Load Up</h2>
|
| 29 |
+
<p>Throw in your pics.</p>
|
| 30 |
+
<input type="file" id="imageInput" multiple accept="image/*">
|
| 31 |
+
<button onclick="loadImages()" class="btn">Launch</button>
|
| 32 |
+
</div>
|
| 33 |
|
| 34 |
+
<!-- Step 3: Arrange -->
|
| 35 |
+
<div class="card card-3">
|
| 36 |
+
<h2>Shuffle</h2>
|
| 37 |
+
<p>Drag it, own it.</p>
|
| 38 |
+
<div id="preview"></div>
|
| 39 |
+
<div id="gridPreview"></div>
|
| 40 |
+
</div>
|
| 41 |
|
| 42 |
+
<!-- Step 4: Generate -->
|
| 43 |
+
<div class="card card-4">
|
| 44 |
+
<h2>Blast It</h2>
|
| 45 |
+
<p>Make it real.</p>
|
| 46 |
+
<button id="generateBtn" onclick="createTiles()" class="btn" style="display: none;">Generate</button>
|
| 47 |
+
</div>
|
| 48 |
|
| 49 |
+
<!-- Step 5: Download -->
|
| 50 |
+
<div class="card card-5">
|
| 51 |
+
<h2>Snag It</h2>
|
| 52 |
+
<p>Take your prize.</p>
|
| 53 |
+
<canvas id="canvas" style="display: none;"></canvas>
|
| 54 |
+
<a id="download" href="#" download="tilesnap-collage.png" class="btn" style="display: none;">Download</a>
|
| 55 |
</div>
|
| 56 |
</div>
|
| 57 |
+
</div>
|
|
|
|
|
|