forked from yashrajbharti/Monotone-Shapes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (63 loc) · 2.99 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Monotone Shapes</title>
<link rel="shortcut icon" href="./SVG/Shape-01.svg" type="image/x-icon">
<link rel="stylesheet" href="./style.css">
<meta name="description"
content="Abstract Icons to be used as a Design File from Figma or an NPM package as web components.">
<meta property="og:title" content="Monotone Shapes">
<meta property="og:description"
content="Monotone Abstract Icons to be used as a Design File from Figma or an NPM package as web components. ">
<meta property="og:image"
content="https://raw.githubusercontent.com/yashrajbharti/Monotone-Shapes/main/assets/Monotone%20Shapes.png">
<meta property="og:url" content="https://yashrajbharti.github.io/Monotone-Shapes">
<meta property="og:type" content="website">
<meta name="canonical" content="https://yashrajbharti.github.io/Monotone-Shapes">
<meta name="theme-color" content="#000" />
</head>
<body>
<h1>Monotone <span>Shapes</span></h1>
<br>
<div class="container">
<monotone-shape shape-id="" text=""></monotone-shape>
<monotone-shape shape-id="" text=""></monotone-shape>
<monotone-shape shape-id="" text=""></monotone-shape>
<monotone-shape shape-id="" text=""></monotone-shape>
<monotone-shape shape-id="" text=""></monotone-shape>
<monotone-shape shape-id="" text=""></monotone-shape>
<monotone-shape shape-id="" text=""></monotone-shape>
<monotone-shape shape-id="" text=""></monotone-shape>
<monotone-shape shape-id="" text=""></monotone-shape>
<monotone-shape shape-id="" text=""></monotone-shape>
<monotone-shape shape-id="" text=""></monotone-shape>
<monotone-shape shape-id="" text=""></monotone-shape>
<monotone-shape shape-id="" text=""></monotone-shape>
<monotone-shape shape-id="" text=""></monotone-shape>
<monotone-shape shape-id="" text=""></monotone-shape>
<monotone-shape shape-id="" text=""></monotone-shape>
</div>
<br>
<div class="config-container">
<label for="config">Enter a shape-id (between 1 and 24) or just any text to generate SVG</label>
<input type="text" name="" id="config">
<monotone-shape shape-id="1" text="" class="shape"></monotone-shape>
</div>
<a href="https://github.com/yashrajbharti/Monotone-Shapes" target="_blank">
<img src="./assets/Ribbon.svg" alt="Fork me on Github" srcset="">
</a>
<script src="./src/app.js"></script>
<script>
const input = document.querySelector("input");
const shape = document.querySelector(".shape")
input.addEventListener("input", () => {
if (+input.value >= 1 && +input.value <= 24)
shape.setAttribute("shape-id", input.value)
else
shape.setAttribute("text", input.value)
})
</script>
</body>
</html>