-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeter.html
113 lines (92 loc) · 3.31 KB
/
meter.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Strictly</title>
<meta name="description" content="Make poetic forms online">
<meta property="og:image" content="[[Insert Absolute Path]]">
<!--
GOOGLE FONTS :
"Roboto Mono",
"Fraunces",
"Spectral"
-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,WONK@0,9..144,100..900,1;1,9..144,100..900,1&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Spectral:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&display=swap" rel="stylesheet">
<!-- HTMX -->
<script src="https://unpkg.com/htmx.org@2.0.3" integrity="sha384-0895/pl2MU10Hqc6jd4RvrthNlDiE9U1tWmX7WRESftEDRosgxNsQG/Ze9YMRzHq" crossorigin="anonymous"></script>
<link href="css/style.css" rel="stylesheet">
</head>
<body hx-boost="true">
<header>
<top-part>
<inner-column>
<ul class="title-bar">
<li class="title"><a href="/">strictly</a></div>
<li class="login"><a href="login.html">log in</a></div>
</ul>
</inner-column>
</top-part>
<bottom-part>
<inner-column>
<nav>
<ul class="site-nav">
<li>
<a href="about.html">about</a>
</li>
<li class="active-page">
<a href="meter.html">meter</a>
</li>
<li>
<a href="create.html">create</a>
</li>
</ul>
</nav>
</inner-column>
</bottom-part>
</header>
<main>
<section id="meter-validator" action="">
<inner-column>
<h1 class="loud-voice">Meter Validator</h1>
<details>
<summary>Instructions</summary>
<p class="body-copy">Input a meter using <code>x</code> and <code>/</code>.</p>
<p class="body-copy"><code>x</code> for unstressed syllables.</p>
<p class="body-copy"><code>/</code> for stressed syllables.</p>
<p class="body-copy">Spaces are ignored.</p>
<p class="body-copy">You can use parentheses to indicate optional parts of the meter. </p>
<p class="body-copy">E.g. <code>/ x (x /)</code> could be matched by either <code>/ x</code> or <code>/ x x /</code>.</p>
<p class="body-copy"><a href="about.html">Learn more about meter.</a></p>
</details>
<section>
<field-group>
<label for="meter">Define a Meter</label>
<input id="meter" name="meter" type="text" placeholder="e.g. x/ x/ x/ x/">
</field-group>
</section>
<!--
<textarea name="compose" id="compose" oninput='this.style.height = "";this.style.height = this.scrollHeight + 40 + "px"'></textarea>
-->
<!--
<h1 class="loud-voice">Compose Here</h1>
-->
<section class="compose-panel">
<h1 class="loud-voice">Compose</h1>
<p>Start writing, press enter to validate a line.</p>
<div id="compose">
<div class="input-group">
<label for="line-1"></label>
<input id="line-1" name="line-1" type="text">
</div>
</div>
</section>
</inner-column>
</section>
</main>
<script src="static/rhyme-and-meter.js"></script>
<script src="static/compose.js"></script>
</body>
</html>