Spaces:
Running
Running
Download index.html from Rahatara/TestStatic: direct link, hf CLI and curl.
- Browser
- Download file 1.97 kB
-
https://huggingface.co/spaces/Rahatara/TestStatic/resolve/main/index.html
- Command line
-
hf download hf://spaces/Rahatara/TestStatic/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Rahatara/TestStatic/resolve/main/index.html
1.97 kB
| <html> | |
| <head> | |
| <title>My Photo Studio</title> | |
| <style> | |
| body { | |
| font-family: Arial; | |
| background: #f5f5f5; | |
| padding: 30px; | |
| } | |
| .row { | |
| display: flex; | |
| gap: 20px; | |
| margin-bottom: 20px; | |
| } | |
| .panel { | |
| flex: 1; | |
| background: white; | |
| padding: 20px; | |
| border-radius: 10px; | |
| } | |
| img { | |
| width: 100%; | |
| max-height: 350px; | |
| object-fit: contain; | |
| } | |
| button { | |
| padding: 12px 25px; | |
| cursor: pointer; | |
| } | |
| input[type="range"] { | |
| width: 100%; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <h1>My Photo Studio</h1> | |
| <p>Upload an image and explore editing options!</p> | |
| <div class="row"> | |
| <div class="panel"> | |
| <h3>Upload Image</h3> | |
| <input type="file" accept="image/*" | |
| onchange="displayImage(event)"> | |
| <img id="original"> | |
| </div> | |
| <div class="panel"> | |
| <h3>Image Preview</h3> | |
| <img id="preview"> | |
| </div> | |
| </div> | |
| <div class="row"> | |
| <div class="panel"> | |
| <label>Brightness</label> | |
| <input type="range" min="0" max="100" value="50"> | |
| </div> | |
| <div class="panel"> | |
| <label>Contrast</label> | |
| <input type="range" min="0" max="100" value="50"> | |
| </div> | |
| </div> | |
| <div class="row"> | |
| <button>Crop Image</button> | |
| <button>Save Image</button> | |
| </div> | |
| <script> | |
| function displayImage(event) { | |
| const file = event.target.files[0]; | |
| if (file) { | |
| const url = URL.createObjectURL(file); | |
| document.getElementById("original").src = url; | |
| document.getElementById("preview").src = url; | |
| } | |
| } | |
| </script> | |
| </body> | |
| </html> |