|
| 1 | +<!doctype html> |
| 2 | +<html lang="fr"> |
| 3 | +<head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover"> |
| 6 | + <title>SinkLink · Éditeur photo</title> |
| 7 | + <meta name="description" content="Éditeur photo dans le navigateur : réglages, courbes, HDR, styles, retouches locales et correcteur. Rien n'est envoyé sur un serveur."> |
| 8 | + <meta name="theme-color" content="#0f1012"> |
| 9 | + <link rel="icon" href="assets/icon.svg" type="image/svg+xml"> |
| 10 | + <link rel="stylesheet" href="styles/app.css"> |
| 11 | + <script type="module" src="src/main.js"></script> |
| 12 | +</head> |
| 13 | +<body> |
| 14 | + <div class="app"> |
| 15 | + <header class="topbar"> |
| 16 | + <div class="brand"> |
| 17 | + <img class="brand__logo" src="assets/icon.svg" alt="" width="26" height="26"> |
| 18 | + <span class="brand__name">SinkLink</span> |
| 19 | + <span class="file-name"></span> |
| 20 | + </div> |
| 21 | + <div class="topbar__actions"> |
| 22 | + <button class="btn btn--ghost" type="button" data-action="open" title="Ouvrir une photo (Ctrl+O)"> |
| 23 | + <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"/></svg> |
| 24 | + <span class="btn__label">Ouvrir</span> |
| 25 | + </button> |
| 26 | + <span class="divider" aria-hidden="true"></span> |
| 27 | + <button class="btn btn--icon" type="button" data-action="undo" title="Annuler (Ctrl+Z)" aria-label="Annuler"> |
| 28 | + <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M9 14 4 9l5-5"/><path d="M4 9h10.5a5.5 5.5 0 0 1 0 11H11"/></svg> |
| 29 | + </button> |
| 30 | + <button class="btn btn--icon" type="button" data-action="redo" title="Rétablir (Ctrl+Maj+Z)" aria-label="Rétablir"> |
| 31 | + <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m15 14 5-5-5-5"/><path d="M20 9H9.5a5.5 5.5 0 0 0 0 11H13"/></svg> |
| 32 | + </button> |
| 33 | + <button class="btn btn--icon needs-image" type="button" data-action="compare" title="Maintenir pour voir l’original (C)" aria-label="Comparer avec l’original"> |
| 34 | + <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="4" width="18" height="16" rx="2"/><path d="M12 2v20"/><path d="M12 4h7a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-7z" fill="currentColor" stroke="none" opacity=".35"/></svg> |
| 35 | + </button> |
| 36 | + <span class="divider" aria-hidden="true"></span> |
| 37 | + <button class="btn btn--primary needs-image" type="button" data-action="export" title="Exporter (Ctrl+S)"> |
| 38 | + <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 3v12"/><path d="m7 10 5 5 5-5"/><path d="M5 21h14"/></svg> |
| 39 | + <span class="btn__label">Exporter</span> |
| 40 | + </button> |
| 41 | + </div> |
| 42 | + </header> |
| 43 | + |
| 44 | + <main class="workspace"> |
| 45 | + <section class="viewport" aria-label="Photo"> |
| 46 | + <div class="stage"> |
| 47 | + <canvas></canvas> |
| 48 | + <svg class="overlay" xmlns="http://www.w3.org/2000/svg"></svg> |
| 49 | + </div> |
| 50 | + <div class="hud" aria-live="polite"></div> |
| 51 | + <div class="badge-original">Original</div> |
| 52 | + |
| 53 | + <div class="welcome"> |
| 54 | + <img class="welcome__logo" src="assets/icon.svg" alt="" width="56" height="56"> |
| 55 | + <h1 class="welcome__title">Retouchez vos photos, simplement.</h1> |
| 56 | + <p class="welcome__text">Glissez une photo ici, collez-la (Ctrl+V) ou ouvrez-la depuis votre appareil. Tout se passe dans votre navigateur, rien n’est envoyé.</p> |
| 57 | + <button class="btn btn--primary btn--large" type="button" data-action="open">Ouvrir une photo</button> |
| 58 | + </div> |
| 59 | + <div class="dropzone" aria-hidden="true"><span>Déposez la photo pour l’ouvrir</span></div> |
| 60 | + <div class="loader" aria-hidden="true"></div> |
| 61 | + |
| 62 | + <div class="unsupported"> |
| 63 | + <h1>Votre navigateur ne peut pas faire tourner SinkLink</h1> |
| 64 | + <p>SinkLink a besoin de WebGL 2, disponible sur les versions récentes de Chrome, Edge, Firefox et Safari.</p> |
| 65 | + <p class="unsupported__detail"></p> |
| 66 | + </div> |
| 67 | + |
| 68 | + <div class="zoom needs-image"> |
| 69 | + <button class="btn btn--icon" type="button" data-action="zoom-out" title="Zoom arrière (−)" aria-label="Zoom arrière"> |
| 70 | + <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" aria-hidden="true"><path d="M5 12h14"/></svg> |
| 71 | + </button> |
| 72 | + <button class="btn zoom__value" type="button" data-action="zoom-fit" title="Ajuster à l’écran (0)">100 %</button> |
| 73 | + <button class="btn btn--icon" type="button" data-action="zoom-in" title="Zoom avant (+)" aria-label="Zoom avant"> |
| 74 | + <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" aria-hidden="true"><path d="M12 5v14M5 12h14"/></svg> |
| 75 | + </button> |
| 76 | + </div> |
| 77 | + </section> |
| 78 | + |
| 79 | + <aside class="sidebar"> |
| 80 | + <canvas class="histogram" aria-hidden="true"></canvas> |
| 81 | + <nav class="tools" aria-label="Outils"></nav> |
| 82 | + <section class="panel"> |
| 83 | + <h2 class="panel__title"></h2> |
| 84 | + <div class="panel__body"></div> |
| 85 | + </section> |
| 86 | + <footer class="sidebar__footer"> |
| 87 | + <span>SinkLink · AGPL-3.0</span> |
| 88 | + <a href="https://github.com/softpython2884/SinkLink" target="_blank" rel="noopener">Code source</a> |
| 89 | + </footer> |
| 90 | + </aside> |
| 91 | + </main> |
| 92 | + |
| 93 | + <input type="file" accept="image/*" hidden> |
| 94 | + </div> |
| 95 | + |
| 96 | + <dialog class="export-dialog"> |
| 97 | + <form method="dialog" class="export"> |
| 98 | + <h2 class="export__title">Exporter la photo</h2> |
| 99 | + |
| 100 | + <fieldset class="field"> |
| 101 | + <legend class="field__label">Format</legend> |
| 102 | + <div class="segmented"> |
| 103 | + <label class="segmented__item"><input type="radio" name="format" value="jpeg" checked><span>JPEG</span></label> |
| 104 | + <label class="segmented__item"><input type="radio" name="format" value="webp"><span>WebP</span></label> |
| 105 | + <label class="segmented__item"><input type="radio" name="format" value="png"><span>PNG</span></label> |
| 106 | + </div> |
| 107 | + </fieldset> |
| 108 | + |
| 109 | + <div class="field export__quality"> |
| 110 | + <label class="field__label" for="export-quality">Qualité <output class="export__quality-value">92 %</output></label> |
| 111 | + <input id="export-quality" type="range" name="quality" min="50" max="100" value="92"> |
| 112 | + </div> |
| 113 | + |
| 114 | + <div class="field"> |
| 115 | + <label class="field__label" for="export-size">Taille</label> |
| 116 | + <select id="export-size" name="size" class="select"> |
| 117 | + <option value="full">Originale</option> |
| 118 | + <option value="4096">4096 px max</option> |
| 119 | + <option value="2048">2048 px max</option> |
| 120 | + <option value="1080">1080 px max</option> |
| 121 | + </select> |
| 122 | + <span class="export__dimensions"></span> |
| 123 | + </div> |
| 124 | + |
| 125 | + <div class="export__actions"> |
| 126 | + <button class="btn btn--ghost" type="submit" value="cancel" formnovalidate>Annuler</button> |
| 127 | + <button class="btn btn--primary" type="submit" value="export">Exporter</button> |
| 128 | + </div> |
| 129 | + </form> |
| 130 | + </dialog> |
| 131 | +</body> |
| 132 | +</html> |
0 commit comments