feat: added fontawesome icons

This commit is contained in:
Orangerot 2024-12-10 01:05:05 +01:00
parent 7961325d81
commit bd7ae62180
8 changed files with 66 additions and 17 deletions

View file

@ -4,8 +4,10 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="main.js"></script>
<link rel="stylesheet" href="bulma.min.css">
<link rel="stylesheet" href="bulma-slider.css">
<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">
<title>Imagine - Image Editor</title>
</head>
@ -19,14 +21,22 @@
<div id="imports" class="columns is-mobile">
<div class="column">
<button id="take-picture"
class="button is-large is-responsive is-fullwidth">
class="button is-large is-responsive is-fullwidth py-6"
style="display: flex; flex-direction: column; align-items: center;"
>
<i class="fa-solid fa-6x fa-camera mb-4"></i>
Take a Picture
</button>
</div>
<div class="column">
<label for="upload-image"
class="button is-large is-responsive is-fullwidth">
class="button is-large is-responsive is-fullwidth py-6"
style="display: flex; flex-direction: column; align-items: center;"
>
<i class="fa-solid fa-6x fa-upload mb-4"></i>
<span>
Upload an Image
</span>
</label>
<input type="file" id="upload-image" accept="image/*" style="display: none">
</div>
@ -34,7 +44,7 @@
</div><br>
<a href="#settings" class="button is-hidden-desktop" style="position: absolute; right: 30px;
bottom: 30px">
Settings
<i class="fa-solid fa-sliders mr-2"></i> Settings
</a>
</div>
</div>
@ -48,6 +58,7 @@
Save Image
</button>
<button id="share" class="button is-secondary">
<i class="fa-solid fa-share-from-square fa-fw mr-1"></i>
Share
</button>
@ -56,7 +67,10 @@
</p>
<div class="field">
<label class="label">Brightness</label>
<label class="label">
<i class="fa-solid fa-sun fa-fw"></i>
Brightness
</label>
<div class="control">
<input type="range"
id="brightness"
@ -65,7 +79,10 @@
</div>
</div>
<div class="field">
<label class="label">Saturation</label>
<label class="label">
<i class="fa-solid fa-leaf fa-fw"></i>
Saturation
</label>
<div class="control">
<input type="range"
id="saturate"
@ -74,7 +91,10 @@
</div>
</div>
<div class="field">
<label class="label">Contrast</label>
<label class="label">
<i class="fa-solid fa-circle-half-stroke fa-fw"></i>
Contrast
</label>
<div class="control">
<input type="range"
id="contrast"
@ -90,7 +110,10 @@
Blur and Sharpen
</p>
<div class="field">
<label class="label">Blur</label>
<label class="label">
<i class="fa-solid fa-water fa-fw"></i>
Blur
</label>
<div class="control">
<input type="range"
id="blur"
@ -102,12 +125,11 @@
</div>
</div>
<div class="notification is-fullwidth is-hidden-desktop" style="z-index: 200">
<span id="settings"></span>
<a href="#top" class="delete"></a>
<button id="save" class="button is-primary">
Save Image
</button>
<button id="share" class="button is-secondary">
<i class="fa-solid fa-share-from-square fa-fw mr-1"></i>
Share
</button>
@ -116,7 +138,10 @@
</p>
<div class="field">
<label class="label">Brightness</label>
<label class="label">
<i class="fa-solid fa-sun fa-fw"></i>
Brightness
</label>
<div class="control">
<input type="range"
id="brightness"
@ -125,7 +150,10 @@
</div>
</div>
<div class="field">
<label class="label">Saturation</label>
<label class="label">
<i class="fa-solid fa-leaf fa-fw"></i>
Saturation
</label>
<div class="control">
<input type="range"
id="saturate"
@ -134,7 +162,10 @@
</div>
</div>
<div class="field">
<label class="label">Contrast</label>
<label class="label">
<i class="fa-solid fa-circle-half-stroke fa-fw"></i>
Contrast
</label>
<div class="control">
<input type="range"
id="contrast"
@ -150,7 +181,10 @@
Blur and Sharpen
</p>
<div class="field">
<label class="label">Blur</label>
<label class="label">
<i class="fa-solid fa-water fa-fw"></i>
Blur
</label>
<div class="control">
<input type="range"
id="blur"

View file

File diff suppressed because one or more lines are too long

6
lib/fontawesome/css/solid.min.css vendored Normal file
View file

@ -0,0 +1,6 @@
/*!
* Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/
:host,:root{--fa-style-family-classic:"Font Awesome 6 Free";--fa-font-solid:normal 900 1em/1 "Font Awesome 6 Free"}@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:900;font-display:block;src:url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.ttf) format("truetype")}.fa-solid,.fas{font-weight:900}

Binary file not shown.

Binary file not shown.

View file

@ -160,6 +160,6 @@ function draw(viewport_scale) {
ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
ctx.filter = '';
lensflare(.3,.3);
// lensflare(.3,.3);
}