You've already forked collage-maker
upload support for new images
This commit is contained in:
@ -10,7 +10,36 @@
|
||||
justify-content: space-around;
|
||||
flex-direction: column;
|
||||
flex: 25%;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.img-container {
|
||||
/** margin: 30px; **/
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
}
|
||||
.img-container img {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
border: 5px solid #999;
|
||||
}
|
||||
.img-container p {
|
||||
text-align: center;
|
||||
font-size: 2rem;
|
||||
}
|
||||
.toolbar {
|
||||
height: 30px;
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
justify-content: center;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.selected-img {
|
||||
border: 5px solid lightgreen !important;
|
||||
}
|
||||
|
||||
.imagebox {
|
||||
padding: 2rem;
|
||||
flex: 75%;
|
||||
|
@ -24,6 +24,20 @@
|
||||
<option value="foursix-landscape" > 4 × 6 (Landscape) </option>
|
||||
</select>
|
||||
</label>
|
||||
<div>
|
||||
<div class="toolbar">
|
||||
<button>Left</button>
|
||||
<button>Right</button>
|
||||
</div>
|
||||
<div class="img-container">
|
||||
<div> <img src="images/img1.jpg"/> </div>
|
||||
<div> <img class="selected-img" src="images/img2.jpg"/> </div>
|
||||
<div> <img src="images/img3.jpg"/> </div>
|
||||
<div> <img src="images/img4.jpg"/> </div>
|
||||
<div> <img src="images/img5.jpg"/> </div>
|
||||
<div> <img src="images/img6.jpg"/> </div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<ul class="templates">
|
||||
|
12
web/upload.html
Normal file
12
web/upload.html
Normal file
@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- DEVONLY --> <script src="http://localhost:35729/livereload.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<form action="/upload" method="POST" enctype="multipart/form-data">
|
||||
<input name="photos" type=file multiple accept="image/*" />
|
||||
<input type=submit>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user