79 lines
3.3 KiB
HTML
79 lines
3.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Etch-A-Sketch</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<header><h1>Etch-A-Sketch</h1></header>
|
|
|
|
|
|
<main>
|
|
<div class="pen-input">
|
|
<h3 class="tool-labels" id="h3-pen-color">Pen Colors</h3>
|
|
<div class="pen-color">
|
|
<button class="pen" id="blackColor">Black</button>
|
|
<button class="pen" id="whiteColor">White</button>
|
|
<button class="pen" id="rgbColor">RGB</button>
|
|
|
|
<div class="col-picker">
|
|
<label class="sub-labels" for="custom-color">Custom</label>
|
|
<input class="color-input" type="color" id="custom-color" value="#ff0000">
|
|
</div>
|
|
</div>
|
|
|
|
<h3 class="tool-labels">Pen Tools</h3>
|
|
<div class="pen-tools">
|
|
<button class="pen" id="tint">Lighten</button>
|
|
<button class="pen" id="shade">Darken</button>
|
|
<button class="pen" id="trans">Fade</button>
|
|
<button class="pen" id="opacity">Opacify</button>
|
|
<button class="pen" id="erase">Erase</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid-input">
|
|
<h3 class="tool-labels">Grid Tools</h3>
|
|
<label class="sub-labels trans" for="canvas-trans">Canvas Transparency: <span id="trans-label"></span></label>
|
|
<input class="range-slider" name="canvas-trans" id="canvas-trans" type="range" min="0" max="1" step=".1" value="1">
|
|
<div class="grid-tools">
|
|
<div class="slider">
|
|
<label class="sub-labels" for="gridSlider">Grid Size: <span id="sliderLabel"></span></label>
|
|
<input name="gridSlider" id="gridSlider" type="range" min="1" max="60" value="16">
|
|
<div class="knob-container">
|
|
<div class="knob" id="range-knob">
|
|
<div class="knotch" id="range-knotch"></div>
|
|
</div>
|
|
<div class="knob-shadow"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="knobless-grid-tools">
|
|
<div class="background-col-picker">
|
|
<label class="sub-labels" for="back-col-picker">Canvas color:</label>
|
|
<input class="color-input" type="color" id="back-col-picker" value="#ff0000">
|
|
</div>
|
|
<div class="grid-buttons">
|
|
<button id="gridToggle">Grid</button>
|
|
<button id="reset">Reset</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container"></div>
|
|
|
|
</main>
|
|
|
|
<footer>
|
|
Created by <a href="https://andrindie.com" target="_blank" rel="noreferrer">Octavia Nichols</a>
|
|
for <a href="https://www.theodinproject.com/lessons/foundations-etch-a-sketch" target="_blank" rel="noreferrer">The Odin Project</a>.
|
|
Check out the code on <a href="https://github.com/Lolabird/odin-etch-a-sketch" target="_blank" rel="noreferrer">GitHub</a>.
|
|
</footer>
|
|
|
|
|
|
<script src="script.js"></script>
|
|
</body>
|
|
</html>
|