Imagine/index.html

476 lines
16 KiB
HTML
Raw Normal View History

2025-01-13 09:48:05 +01:00
<!doctype html>
2024-12-05 22:55:49 +01:00
<html lang="en">
<head>
2025-01-13 09:48:05 +01:00
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
2024-12-05 22:55:49 +01:00
<script src="main.js"></script>
2025-01-13 09:48:05 +01:00
<link rel="stylesheet" href="lib/bulma.min.css" />
<link rel="stylesheet" href="lib/bulma-slider.css" />
<link rel="stylesheet" href="lib/fontawesome/css/fontawesome.min.css" />
<link rel="stylesheet" href="lib/fontawesome/css/solid.min.css" />
<link rel="stylesheet" href="style.css" />
2024-12-06 03:43:47 +01:00
<title>Imagine - Image Editor</title>
2024-12-05 22:55:49 +01:00
</head>
2025-01-13 07:33:11 +01:00
<body class="import-active">
<!--
body classes allow for switching between the three views:
import-active, camera-active and editor-active
-->
<div class="navbar columns is-mobile is-fixed-top">
<div class="column" id="viewport">
2025-01-13 07:33:11 +01:00
<div class="hero is-fullheight">
2024-12-06 03:43:47 +01:00
<div class="hero-body">
2025-01-13 09:48:05 +01:00
<div class="container">
<!-- viewport that contains canvas/video/import buttons -->
2025-01-13 09:48:05 +01:00
<canvas
id="myCanvas"
class="is-visible-editor"
width="300"
height="300"
></canvas>
<video
id="video"
class="is-visible-camera"
width="300"
height="300"
></video>
2024-12-12 01:18:48 +01:00
<div class="container has-text-centered mb-6 is-visible-import">
<h1 class="title is-1">Imagine</h1>
<h2 class="subtitle is-3">A simple Image Editor</h2>
</div>
2024-12-10 06:28:50 +01:00
<div class="columns is-mobile is-visible-import">
2024-12-06 03:43:47 +01:00
<div class="column">
2025-01-13 09:48:05 +01:00
<button
id="take-picture"
class="button is-large is-responsive is-fullwidth py-6"
>
2025-01-13 07:33:11 +01:00
<div class="container">
2025-01-13 09:48:05 +01:00
<i class="fa-solid fa-6x fa-video mb-4"></i><br />
2025-01-13 07:33:11 +01:00
Use Camera
</div>
2024-12-06 03:43:47 +01:00
</button>
</div>
<div class="column">
2025-01-13 09:48:05 +01:00
<label
class="button is-large is-responsive is-fullwidth py-6"
>
<input
class="file-input"
type="file"
id="upload-image"
accept="image/*"
/>
2025-01-13 07:33:11 +01:00
<div class="container">
2025-01-13 09:48:05 +01:00
<i class="fa-solid fa-6x fa-upload mb-4"></i><br />
Choose a file…
2025-01-13 07:33:11 +01:00
</div>
</label>
2024-12-06 03:43:47 +01:00
</div>
</div>
</div>
<!-- buttons inside of the viewport -->
2025-01-13 09:48:05 +01:00
<a
id="settings-button"
href="#settings"
class="button is-hidden-desktop is-visible-editor"
>
<i class="fa-solid fa-sliders mr-2"></i> Settings
</a>
2025-01-13 07:33:11 +01:00
<button id="back" class="button is-hidden-import">
2025-01-13 09:48:05 +01:00
<i class="fa-solid fa-arrow-left mr-2"></i> Back
</button>
2025-01-13 09:48:05 +01:00
<button id="cheese" class="button is-large is-visible-camera">
<i class="fa-solid fa-camera mr-2"></i> Take a Picture
2024-12-10 06:28:50 +01:00
</button>
2024-12-06 03:43:47 +01:00
</div>
</div>
2024-12-05 22:55:49 +01:00
</div>
<!-- settings menu for desktop use -->
2025-01-13 09:48:05 +01:00
<div
class="column is-narrow has-background-black-ter is-hidden-mobile is-hidden-tablet-only is-visible-editor"
>
2025-01-13 07:33:11 +01:00
<aside class="menu mr-3">
2024-12-06 03:43:47 +01:00
<h1 class="title">Imagine</h1>
<h2 class="subtitle">Image Editor</h2>
<!-- autocomplete off prevents browsers from remebering the value on page reloads -->
<form autocomplete="off">
<div class="buttons">
2025-01-13 09:48:05 +01:00
<button class="button is-primary save-image">Save Image</button>
<button class="button is-secondary share-image">
<i class="fa-solid fa-share-from-square fa-fw mr-1"></i>
Share
</button>
</div>
<div class="field">
<button class="button is-medium is-fullwidth lensflare">
Lensflare
</button>
</div>
2024-12-06 03:43:47 +01:00
2025-01-13 09:48:05 +01:00
<p class="menu-label">Color Correction</p>
2024-12-06 03:43:47 +01:00
<div class="field">
<label class="label">
<i class="fa-solid fa-sun fa-fw"></i>
Brightness
2024-12-10 04:33:17 +01:00
<span class="icon is-pulled-right brightness-reset">
<i class="fa-solid fa-arrow-rotate-left fa-fw"></i>
</span>
</label>
<div class="control">
2025-01-13 09:48:05 +01:00
<input
type="range"
id="brightness"
class="brightness slider is-fullwidth is-primary"
min="0"
max="2"
value="1"
step="0.01"
/>
</div>
2024-12-06 03:43:47 +01:00
</div>
<div class="field">
<label class="label">
<i class="fa-solid fa-leaf fa-fw"></i>
Saturation
2024-12-10 04:33:17 +01:00
<span class="icon is-pulled-right saturate-reset">
<i class="fa-solid fa-arrow-rotate-left fa-fw"></i>
</span>
</label>
<div class="control">
2025-01-13 09:48:05 +01:00
<input
type="range"
id="saturate"
class="saturate slider is-fullwidth is-primary"
min="0"
max="2"
value="1"
step="0.01"
/>
</div>
2024-12-06 03:43:47 +01:00
</div>
<div class="field">
<label class="label">
<i class="fa-solid fa-circle-half-stroke fa-fw"></i>
Contrast
2024-12-10 04:33:17 +01:00
<span class="icon is-pulled-right contrast-reset">
<i class="fa-solid fa-arrow-rotate-left fa-fw"></i>
</span>
</label>
<div class="control">
2025-01-13 09:48:05 +01:00
<input
type="range"
id="contrast"
class="contrast slider is-fullwidth is-primary"
min="0"
max="2"
value="1"
step="0.01"
/>
</div>
2024-12-06 03:43:47 +01:00
</div>
2024-12-12 02:19:05 +01:00
<div class="field">
<label class="label">
<i class="fa-solid fa-palette fa-fw"></i>
Color
<span class="icon is-pulled-right hue-rotate-reset">
<i class="fa-solid fa-arrow-rotate-left fa-fw"></i>
</span>
</label>
<div class="control">
2025-01-13 09:48:05 +01:00
<input
type="range"
id="hue-rotate"
class="hue-rotate slider is-fullwidth is-primary"
min="-180"
max="180"
value="0"
step="1"
/>
2024-12-12 02:19:05 +01:00
</div>
</div>
2024-12-06 03:43:47 +01:00
2025-01-13 09:48:05 +01:00
<p class="menu-label">Filters</p>
2024-12-12 02:19:05 +01:00
<div class="field">
<label class="label">
<i class="fa-solid fa-radio fa-fw"></i>
Grayscale
<span class="icon is-pulled-right grayscale-reset">
<i class="fa-solid fa-arrow-rotate-left fa-fw"></i>
</span>
</label>
<div class="control">
2025-01-13 09:48:05 +01:00
<input
type="range"
id="grayscale"
class="grayscale slider is-fullwidth is-primary"
min="0"
max="1"
value="0"
step="0.01"
/>
2024-12-12 02:19:05 +01:00
</div>
</div>
<div class="field">
<label class="label">
<i class="fa-solid fa-hat-cowboy-side fa-fw"></i>
Sepia
<span class="icon is-pulled-right sepia-reset">
<i class="fa-solid fa-arrow-rotate-left fa-fw"></i>
</span>
</label>
<div class="control">
2025-01-13 09:48:05 +01:00
<input
type="range"
id="sepia"
class="sepia slider is-fullwidth is-primary"
min="0"
max="1"
value="0"
step="0.01"
/>
2024-12-12 02:19:05 +01:00
</div>
</div>
<div class="field">
<label class="label">
<i class="fa-solid fa-circle-half-stroke fa-fw"></i>
Invert
<span class="icon is-pulled-right invert-reset">
<i class="fa-solid fa-arrow-rotate-left fa-fw"></i>
</span>
</label>
<div class="control">
2025-01-13 09:48:05 +01:00
<input
type="range"
id="invert"
class="invert slider is-fullwidth is-primary"
min="0"
max="1"
value="0"
step="0.01"
/>
2024-12-12 02:19:05 +01:00
</div>
</div>
2025-01-13 09:48:05 +01:00
<p class="menu-label">Blur and Sharpen</p>
<div class="field">
<label class="label">
<i class="fa-solid fa-water fa-fw"></i>
Blur
2024-12-10 04:33:17 +01:00
<span class="icon is-pulled-right blur-reset">
<i class="fa-solid fa-arrow-rotate-left fa-fw"></i>
</span>
</label>
<div class="control">
2025-01-13 09:48:05 +01:00
<input
type="range"
id="blur"
class="blur slider is-fullwidth is-primary"
min="0"
max="1"
value="0"
step="0.05"
/>
</div>
2024-12-08 02:59:45 +01:00
</div>
</form>
2024-12-06 03:43:47 +01:00
</aside>
</div>
</div>
<!-- settings menu for mobile use -->
2025-01-13 09:48:05 +01:00
<div
id="settings"
class="notification is-fullwidth is-hidden-desktop is-visible-editor"
>
<!-- #settings is an anhor to scroll to when clicked on the settings-button -->
<!-- #top is an anchor provided by the browser to go to the top of the page -->
<a href="#top" class="delete"></a>
<!-- autocomplete off prevents browsers from remebering the value on page reloads -->
<form autocomplete="off">
<div class="buttons">
2025-01-13 09:48:05 +01:00
<button class="button is-primary save-image">Save Image</button>
<button class="button is-secondary share-image">
<i class="fa-solid fa-share-from-square fa-fw mr-1"></i>
Share
</button>
</div>
<div class="field">
<button class="button is-medium is-fullwidth lensflare">
Lensflare
</button>
</div>
2024-12-06 04:07:43 +01:00
2025-01-13 09:48:05 +01:00
<p class="menu-label">Color Correction</p>
2024-12-06 04:07:43 +01:00
<div class="field">
<label class="label">
<i class="fa-solid fa-sun fa-fw"></i>
Brightness
2024-12-10 04:33:17 +01:00
<span class="icon is-pulled-right brightness-reset">
<i class="fa-solid fa-arrow-rotate-left fa-fw"></i>
</span>
</label>
<div class="control">
2025-01-13 09:48:05 +01:00
<input
type="range"
id="brightness"
class="brightness slider is-fullwidth is-primary"
min="0"
max="2"
value="1"
step="0.01"
/>
</div>
2024-12-06 04:07:43 +01:00
</div>
<div class="field">
<label class="label">
<i class="fa-solid fa-leaf fa-fw"></i>
Saturation
2024-12-10 04:33:17 +01:00
<span class="icon is-pulled-right saturate-reset">
<i class="fa-solid fa-arrow-rotate-left fa-fw"></i>
</span>
</label>
<div class="control">
2025-01-13 09:48:05 +01:00
<input
type="range"
id="saturate"
class="saturate slider is-fullwidth is-primary"
min="0"
max="2"
value="1"
step="0.01"
/>
</div>
2024-12-06 04:07:43 +01:00
</div>
<div class="field">
<label class="label">
<i class="fa-solid fa-circle-half-stroke fa-fw"></i>
Contrast
2024-12-10 04:33:17 +01:00
<span class="icon is-pulled-right contrast-reset">
<i class="fa-solid fa-arrow-rotate-left fa-fw"></i>
</span>
</label>
<div class="control">
2025-01-13 09:48:05 +01:00
<input
type="range"
id="contrast"
class="contrast slider is-fullwidth is-primary"
min="0"
max="2"
value="1"
step="0.01"
/>
</div>
2024-12-06 04:07:43 +01:00
</div>
2024-12-12 02:19:05 +01:00
<div class="field">
<label class="label">
<i class="fa-solid fa-palette fa-fw"></i>
Color
<span class="icon is-pulled-right hue-rotate-reset">
<i class="fa-solid fa-arrow-rotate-left fa-fw"></i>
</span>
</label>
<div class="control">
2025-01-13 09:48:05 +01:00
<input
type="range"
id="hue-rotate"
class="hue-rotate slider is-fullwidth is-primary"
min="-180"
max="180"
value="0"
step="1"
/>
2024-12-12 02:19:05 +01:00
</div>
</div>
2024-12-06 04:07:43 +01:00
2025-01-13 09:48:05 +01:00
<p class="menu-label">Filters</p>
2024-12-12 02:19:05 +01:00
<div class="field">
<label class="label">
<i class="fa-solid fa-radio fa-fw"></i>
Grayscale
<span class="icon is-pulled-right grayscale-reset">
<i class="fa-solid fa-arrow-rotate-left fa-fw"></i>
</span>
</label>
<div class="control">
2025-01-13 09:48:05 +01:00
<input
type="range"
id="grayscale"
class="grayscale slider is-fullwidth is-primary"
min="0"
max="1"
value="0"
step="0.01"
/>
2024-12-12 02:19:05 +01:00
</div>
</div>
<div class="field">
<label class="label">
<i class="fa-solid fa-hat-cowboy-side fa-fw"></i>
Sepia
<span class="icon is-pulled-right sepia-reset">
<i class="fa-solid fa-arrow-rotate-left fa-fw"></i>
</span>
</label>
<div class="control">
2025-01-13 09:48:05 +01:00
<input
type="range"
id="sepia"
class="sepia slider is-fullwidth is-primary"
min="0"
max="1"
value="0"
step="0.01"
/>
2024-12-12 02:19:05 +01:00
</div>
</div>
<div class="field">
<label class="label">
<i class="fa-solid fa-circle-half-stroke fa-fw"></i>
Invert
<span class="icon is-pulled-right invert-reset">
<i class="fa-solid fa-arrow-rotate-left fa-fw"></i>
</span>
</label>
<div class="control">
2025-01-13 09:48:05 +01:00
<input
type="range"
id="invert"
class="invert slider is-fullwidth is-primary"
min="0"
max="1"
value="0"
step="0.01"
/>
2024-12-12 02:19:05 +01:00
</div>
</div>
2025-01-13 09:48:05 +01:00
<p class="menu-label">Blur and Sharpen</p>
<div class="field">
<label class="label">
<i class="fa-solid fa-water fa-fw"></i>
Blur
2024-12-10 04:33:17 +01:00
<span class="icon is-pulled-right blur-reset">
<i class="fa-solid fa-arrow-rotate-left fa-fw"></i>
</span>
</label>
<div class="control">
2025-01-13 09:48:05 +01:00
<input
type="range"
id="blur"
class="blur slider is-fullwidth is-primary"
min="0"
max="1"
value="0"
step="0.05"
/>
</div>
2024-12-08 02:59:45 +01:00
</div>
</form>
2024-12-06 04:07:43 +01:00
</div>
2024-12-05 22:55:49 +01:00
</body>
</html>