-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3D_model.html
More file actions
128 lines (119 loc) · 3.62 KB
/
Copy path3D_model.html
File metadata and controls
128 lines (119 loc) · 3.62 KB
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
123
124
125
126
127
128
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3D Model Generation</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 20px;
background-color: #9A8C98;
}
.container {
max-width: 800px;
margin: 20px auto;
padding: 20px;
background-color: #F2E9E4;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
h2 {
text-align: center;
color: #333;
}
.form-group {
margin-bottom: 20px;
}
label {
color: #615660;
font-weight: bold;
display: block;
margin-bottom: 5px;
font-size: 24px;
}
input[type="text"] {
width: calc(100% - 22px); /* Adjusting for the border width */
outline: none;
box-shadow: 0 0 0 3px #615660;
padding: 10px;
margin-top: 5px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
.project-title {
font-size: 24px;
text-align: center;
margin-bottom: 20px;
color: #615660;
font-weight: bold;
font-size: 30px;
}
.btn-generate {
display: block;
width: 100%;
padding: 10px;
margin-top: 10px;
background-color: #9A8C98;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 20px;
}
.btn-generate:hover {
background-color: #615660;
}
.back-button {
position: absolute;
top: 20px;
left: 20px;
padding: 30px 50px;
margin: 0 20px;
border: none;
border-radius: 5px;
background-color: #615660;
color: #9A8C98;
font-size: 24px;
cursor: pointer;
}
button:hover {
background-color: #F2E9E4;
}
</style>
</head>
<body>
<button class="back-button" onclick="goBack()">Back</button>
<body>
<button class="back-button" onclick="goBack()">Back</button>
<div class="container">
<div class="project-title">3D MODEL GENERATION</div>
<div class="form-group">
<form id="model-form" action="/generate_3d_model" method="POST">
<label for="model-details">GIVE A PROMPT</label>
<input type="text" id="model-details" name="prompt" placeholder="Enter your prompt...">
<button type="submit" class="btn-generate">Generate 3D Model</button>
</form>
</div>
{% if prompt %}
<div id="prompt-container">
<h2>Prompt Entered:</h2>
<p>{{ prompt }}</p>
</div>
{% endif %}
{% if image_url %}
<div id="image-container">
<h2>Generated Image</h2>
<img src="{{ image_url }}" alt="Generated Image">
</div>
{% endif %}
</div>
<script>
function goBack() {
window.history.back();
}
</script>
</body>
</html>