aboutsummaryrefslogtreecommitdiff
path: root/contrib/gns/gns-bcd-simple.html
blob: 11b99e2b1ff0634823d376acc3eb1d1c6f17ba28 (plain) (blame)
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Create your GNU Name System Business Card</title>
    <style>
      /* "Reset" values */
      html {
          box-sizing: border-box;
      }
      *, *:before, *:after {
          box-sizing: inherit;
      }
      body {
          font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
          font-size: 1rem;
          font-weight: 400;
          line-height: 1.5;
          background-color: #ffffff;
          color: #212121;
          margin: 0;
      }
      h1, h2, h3, h4, h5 {
          margin-top: 0px;
          margin-bottom: 0.5rem;
          font-weight: 500;
      }
      p {
          margin-top: 0px;
          margin-bottom: 1rem;
      }
      fieldset{
          margin: 0px;
          padding: 0px;
          border: 0px;
          min-width: 0px;
      }
      label {
          display: inline-block;
      }
      input {
          margin: 0px;
          font-family: inherit;
          font-size: inherit;
          line-height: inherit;
      }
      /* "Component" values */
      .gns-container {
          max-width: 100%;
          margin-left: auto;
          margin-right: auto;
      }
      .gns-header {
          padding-top: 1rem;
          padding-bottom: 0.25rem;
      }
      .gns-form-group {
          margin-bottom: 1.5rem;
      }
      .gns-field:not(:last-child) {
          margin-bottom: 1rem;
      }
      .gns-label {
          margin-bottom: 0.25rem;
      }
      .gns-text-input {
          display: block;
          width: 100%;
          padding: 0.375rem 0.75rem;
          color: #212121;
          background-color: #ffffff;
          border: 1px solid #ced4da;
          border-radius: 0.20rem;
      }
      .gns-text-input:focus {
          box-shadow: 0px 0px 9px rgba(102, 175, 233, 0.5);
          border: 1px solid rgb(102, 175, 233);
      }
      .gns-check-input {
          width: 1rem;
          height: 1rem;
          margin-top: 0.25rem;
          margin-right: 0.25rem;
      }
      .gns-button {
          display: inline-block;
          text-align: center;
          text-decoraton: none;
          vertical-align: middle;
          cursor: pointer;
          border: 1px solid transparent;
          padding: 0.375rem 0.75rem;
          border-radius: 0.20rem;
      }
      .gns-button:focus {
          box-shadow: 0px 0px 9px rgba(200, 200, 200, 0.75);
          border: 1px solid rgb(98, 98, 98);
      }
      @media (min-width: 576px) {
          .gns-container {
              max-width: 540px;
          }
      }
      @media (min-width: 768px) {
          .gns-container {
              max-width: 720px;
          }
      }
      @media (min-width: 992px) {
          .gns-container {
              max-width: 960px;
          }
      }
      @media (min-width: 1200px) {
          .gns-container {
              max-width: 1140px;
          }
      }
      @media (min-width: 1400px) {
          .gns-container {
              max-width: 1320px;
          }
      }
    </style>
  </head>
  <body>
    <div class="gns-container">
      <div class="gns-header">
        <h1>GNU Name System Business Card</h1>
        <p>Please fill in the information below to generate your business
          card.</p>
        <p>Want a more detailed card? Use the <a href="/full">full
            form</a>.</p>
      </div>
      <form name="gnsinput" action="/submit/simple" method="get">
        <fieldset class="gns-form-group">
          <div class="gns-field">
            <label class="gns-label" for="name">Full Name:</label>
            <input class="gns-text-input" name="name" type="text" required>
          </div>
          <div class="gns-field">
            <label class="gns-label" for="email">E-mail:</label>
            <input class="gns-text-input" name="email" type="email" required>
          </div>
          <div class="gns-field">
            <label class="gns-label" for="homepage">Homepage:</label>
            <input class="gns-text-input" name="homepage" type="text" required>
          </div>
        </fieldset>
        <fieldset class="gns-form-group">
          <div class="gns-field">
            <label class="gns-label" for="gnskey">GNS Public Key</label>
            <input class="gns-text-input" name="gnskey" type="text" required>
          </div>
          <div class="gns-field">
            <label class="gns-label" for="gnsnick">GNS Nickname:</label>
            <input class="gns-text-input" name="gnsnick" type="text" required>
          </div>
        </fieldset>
        <fieldset class="gns-form-group">
          <div class="gns-field">
            <input class="gns-check-input" name="gnspng" id="gnspng" type="checkbox" value="true">
            <label class="gns-label" for="gnspng">Generate only QR Code (as PNG)</label>
          </div>
        </fieldset>
        <fieldset class="gns-form-group">
          <div class="gns-field">
            <input class="gns-button"
                   type="submit"
                   value="Generate Business Card">
          </div>
        </fieldset>
      </form>
    </div>
  </body>
</html>