-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcardhowto.html
145 lines (145 loc) · 5.96 KB
/
cardhowto.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Gitcard</title>
<link rel="stylesheet" href="/css/site.min.css">
</head>
<body>
<div id="wrapper">
<h1>How to make a Gitcard</h1>
<nav><a href="/">Back to index page</a></nav>
<p>
If you want to write your card up by hand, you can find the <a href="#syntax-and-structure">syntax & structure</a> below.<br>
But for the sake of convenience you can use the following generator.
</p>
<form id="generator-form" action="#" onsubmit="return false">
<div class="field">
<label for="name">Your name</label>
<input type="text" id="name">
</div>
<div class="field">
<label for="pronouns">Pronouns</label>
<input type="text" id="pronouns">
<div class="note">
We link to <a href="https://pronoun.is/" target="_blank">Pronouns Island</a> for pronouns.
To see which pronouns this site knows about, see <a href="https://pronoun.is/all-pronouns" target="_blank">their database</a>.<br>
You can use multiple pronouns seperated by <q>or</q>, for example: <em>he/him or they/them</em>
</div>
</div>
<div class="field">
<label for="bio">Write something about youself</label>
<textarea id="bio" rows="3"></textarea>
</div>
<div class="field">
<label>Links</label>
<template id="link_entry_template">
<div class="link_entry">
<select class="link_entry_site"></select>
<input type="text" class="link_entry_username">
<button type="button" class="rem_link_btn">–</button>
</div>
</template>
<div id="link_list"></div>
<button type="button" id="add_link_btn">Add new link</button>
</div>
<div class="field">
<label for="color_bg">Background color</label>
<input type="text" class="jscolor" id="color_bg" value="#FFFFFF">
<label for="color_fg">Foreground color</label>
<input type="text" class="jscolor" id="color_fg" value="#000000">
<label for="color_ln">Hyperlink color</label>
<input type="text" class="jscolor" id="color_ln" value="#0000FF">
<label for="color_la">Hyperlink color (hover & focus)</label>
<input type="text" class="jscolor" id="color_la" value="#FF0000">
</div>
</form>
<div class="hsep"></div>
<div class="field">
<label for="output">Generated code</label>
<textarea id="output" rows="10" readonly></textarea>
</div>
<p>Copy the code above and paste it into a new gist as described <a href="/">here</a>.</p>
<p>Additionally, you can <a href="#" target="_blank" id="preview_link">preview your card</a>.</p>
<div class="hsep d"></div>
<h2 id="syntax-and-structure">Syntax & Structure</h2>
<p>For the techy people!</p>
<details>
<summary>Syntax and structure of card file (click to expand)</summary>
<div>
<table>
<thead>
<tr>
<th>Line no.</th>
<th>Field</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Name</td>
<td><code>Jonas Kohl</code></td>
</tr>
<tr>
<td>2</td>
<td>Pronoun(s) (multiple seperated by <q> or </q>)</td>
<td><code>he/him or they/them</code></td>
</tr>
<tr>
<td>3</td>
<td>Bio paragraph</td>
<td><code>Hello, this is me!</code></td>
</tr>
<tr>
<td>4</td>
<td>Links starting delimiter (has to be <code>links:</code>)</td>
<td><code>links:</code></td>
</tr>
<tr>
<td>5+</td>
<td>Links (in the format <code><em>site</em>@<site>username</site></code>)</td>
<td><code>github@jonaskohl</code></td>
</tr>
<tr>
<td><abbr title="This means one line after all links">…+1</abbr></td>
<td>Links ending delimiter (has to be <code>end;</code>)</td>
<td><code>end;</code></td>
</tr>
<tr>
<td colspan="3"><em>Every field below is optional<sup>1</sup></em></td>
</tr>
<tr>
<td>…+2</td>
<td>Foreground color (valid CSS color)</td>
<td><code>#000000</code></td>
</tr>
<tr>
<td>…+3</td>
<td>Background color (valid CSS color)</td>
<td><code>#ffffff</code></td>
</tr>
<tr>
<td>…+4</td>
<td>Link color (valid CSS color)</td>
<td><code>#0000ff</code></td>
</tr>
<tr>
<td>…+5</td>
<td>Link color (hovered & focused) (valid CSS color)</td>
<td><code>#ff0000</code></td>
</tr>
</tbody>
</table>
<p><sup>1</sup>If a field is defined, every field before also needs to be defined (for example, you can only set the link color if both the foreground and background color are defined)</p>
</div>
</details>
<footer>
Gitcard version 1.0.3 • Made with <i class="emoji">❤️</i> by <a href="/c/jonaskohl">Jonas Kohl</a> • <a href="https://github.com/jonaskohl/gitcard" target="_blank">Source code</a>
</footer>
</div>
<script src="/js/jscolor.js"></script>
<script src="/js/generator.min.js"></script>
</body>
</html>