Some more tools around Android icons
All checks were successful
/ publish (push) Successful in 1m48s
All checks were successful
/ publish (push) Successful in 1m48s
This commit is contained in:
parent
7f6dcac154
commit
c7ff8597aa
15 changed files with 644 additions and 2 deletions
32
site/image-inner-resize/index.html
Normal file
32
site/image-inner-resize/index.html
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Image Inner Resize - Tools</title>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css">
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body class="container">
|
||||
<header>
|
||||
<hgroup>
|
||||
<h1>Image Inner Resize</h1>
|
||||
<p>Scale an image within its original dimensions, centered on a transparent background</p>
|
||||
</hgroup>
|
||||
</header>
|
||||
<main class="grid">
|
||||
<section class="controls">
|
||||
<label for="file-input">Select PNG file</label>
|
||||
<input type="file" id="file-input" accept="image/png">
|
||||
|
||||
<label for="scale">Scale: <span id="scale-value">100</span>%</label>
|
||||
<input type="range" id="scale" min="0" max="100" step="5" value="100">
|
||||
</section>
|
||||
<section class="preview">
|
||||
<canvas id="preview-canvas"></canvas>
|
||||
<button id="download-btn" disabled>Download</button>
|
||||
</section>
|
||||
</main>
|
||||
<script src="main.js" type="module"></script>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue