Spaces:
Sleeping
Sleeping
File size: 2,861 Bytes
8065472 4da1411 8065472 07b7b00 8065472 07b7b00 8065472 |
1 2 3 4 5 6 7 8 9 10 11 12 13 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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
<!DOCTYPE html>
<html>
<head>
<title>ADVERTISEMENT CREATOR APPLICATION</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
background-color: #f4f4f4;
}
h1 {
text-align: center;
margin-bottom: 30px;
color: #333;
}
.container {
display: flex;
align-items: flex-start;
justify-content: center;
}
.form-container {
border: 1px solid #ccc;
padding: 20px;
width: 300px;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.form-container label {
display: block;
margin-bottom: 5px;
color: #555;
}
.form-container input[type="text"],
.form-container input[type="file"],
.form-container input[type="submit"] {
width: 100%;
padding: 8px;
margin-bottom: 10px;
border: 1px solid #ccc;
border-radius: 4px;
}
.form-container input[type="submit"] {
background-color: #337ab7;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background-color 0.3s;
}
.form-container input[type="submit"]:hover {
background-color: #235a8e;
}
.rendered-image {
border: 10px solid black;
padding: 10px;
display: none;
text-align: center;
background-color: #fff;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
img {
max-width: 100%;
height: auto;
border-radius: 8px;
}
</style>
<script>
function showImage() {
document.querySelector('.rendered-image').style.display = 'block';
}
</script>
</head>
<body>
<h1>ADVERTISEMENT CREATOR APPLICATION</h1>
<div class="container">
<div class="form-container">
<form action="/ad" enctype="multipart/form-data" method="POST" onsubmit="showImage()">
<label for="img">Image:</label>
<input name="file" id="img" type="file">
<label for="prompt">Prompt:</label>
<input name="prompt" id="prompt" type="text">
<label for="hex1">Image Hex Code:</label>
<input name="img_hex_code" id="hex1" type="text">
<label for="logo">Logo:</label>
<input name="logo" id="logo" type="file">
<label for="hex2">Color Hex Code:</label>
<input name="color_hex_code" id="hex2" type="text">
<label for="punch">Punch Line:</label>
<input name="punch_line" id="punch" type="text">
<label for="button">Button:</label>
<input name="button" id="button" type="text">
<input type="submit" value="Generate Ad">
</form>
</div>
<div class="rendered-image">
<h2>The process is ongoing....</h2>
<h2>Ad will be rendered here...</h2>
</div>
</div>
</body>
</html>
|