File size: 1,899 Bytes
636bcf4 | 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 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Trellis Image → 3D Generator</title>
<script type="module"
src="https://gradio.s3-us-west-2.amazonaws.com/5.34.2/gradio.js">
</script>
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Poppins, sans-serif;
}
body{
background: linear-gradient(135deg,#0f172a,#020617);
color:white;
min-height:100vh;
display:flex;
flex-direction:column;
align-items:center;
}
/* Header */
.header{
width:100%;
padding:20px;
text-align:center;
background:rgba(255,255,255,0.05);
backdrop-filter: blur(10px);
border-bottom:1px solid rgba(255,255,255,0.1);
}
.header h1{
font-size:28px;
font-weight:600;
background:linear-gradient(90deg,#38bdf8,#818cf8);
-webkit-background-clip:text;
color:transparent;
}
.header p{
opacity:.7;
margin-top:8px;
font-size:14px;
}
/* Container */
.container{
width:95%;
max-width:1400px;
margin-top:25px;
background:rgba(255,255,255,0.04);
border-radius:15px;
padding:20px;
box-shadow:0 0 40px rgba(0,0,0,0.6);
border:1px solid rgba(255,255,255,0.08);
}
/* iframe styling */
iframe{
width:100%;
height:80vh;
border:none;
border-radius:10px;
background:black;
}
/* Footer */
.footer{
margin-top:15px;
opacity:.5;
font-size:13px;
}
/* Responsive */
@media(max-width:900px){
iframe{
height:75vh;
}
.header h1{
font-size:22px;
}
}
</style>
</head>
<body>
<div class="header">
<h1>Image → 3D Asset Generator</h1>
<p>Generate 3D models from images using TRELLIS diffusion</p>
</div>
<div class="container">
<iframe
src="https://trellis-community-trellis.hf.space"
></iframe>
</div>
<div class="footer">
GEN-AI Project • VIIT
</div>
</body>
</html> |