summaryrefslogtreecommitdiffstats
path: root/tpl/index.pug
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-02-06 11:08:53 +0100
committerVolpeon <git@volpeon.ink>2022-02-06 11:08:53 +0100
commitaefacb0a07a9ef66172dfccb24714717585f86b1 (patch)
tree37107453c3da350d7bcbdc7d4d77f4f514b58622 /tpl/index.pug
parentAdded checkbox and switch (diff)
downloadiro-design-aefacb0a07a9ef66172dfccb24714717585f86b1.tar.gz
iro-design-aefacb0a07a9ef66172dfccb24714717585f86b1.tar.bz2
iro-design-aefacb0a07a9ef66172dfccb24714717585f86b1.zip
Added form
Diffstat (limited to 'tpl/index.pug')
-rw-r--r--tpl/index.pug34
1 files changed, 34 insertions, 0 deletions
diff --git a/tpl/index.pug b/tpl/index.pug
index 8595be0..2ebb625 100644
--- a/tpl/index.pug
+++ b/tpl/index.pug
@@ -11,6 +11,7 @@ include objects/field-label.pug
11include objects/radio.pug 11include objects/radio.pug
12include objects/checkbox.pug 12include objects/checkbox.pug
13include objects/switch.pug 13include objects/switch.pug
14include objects/form.pug
14 15
15mixin box 16mixin box
16 +container(padX=true padY=true inPage=true theme="raised") 17 +container(padX=true padY=true inPage=true theme="raised")
@@ -268,3 +269,36 @@ html
268 +switch(accent=true disabled=true)= 'Cats' 269 +switch(accent=true disabled=true)= 'Cats'
269 +switch(accent=true disabled=true)= 'Dogs' 270 +switch(accent=true disabled=true)= 'Dogs'
270 +switch(accent=true checked=true disabled=true)= 'Foxes' 271 +switch(accent=true checked=true disabled=true)= 'Foxes'
272
273 //-----------------------------------------
274
275 +h1-heading(level='xl')= 'Form'
276 +rule(level='medium')
277
278 +box
279 +form
280 +form-item('Username')
281 +text-field(placeholder='Example: Volpeon')
282
283 +form-item('Password', 'At least 6 characters, all characters allowed')
284 +text-field(placeholder='Example: hunter2', type='password')
285
286 +form-item('Bio')
287 +text-field(placeholder='Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam...')
288
289 +form-item('Favorite animal')
290 +radio(name="form-demo-1" checked=true)= 'Foxes'
291 +radio(name="form-demo-1")= 'Other'
292
293 +form-item('Notification settings')
294 +switch= 'In-app notifications'
295 br
296 +switch= 'Desktop notifications'
297 br
298 +switch= 'Email notifications'
299
300 +form-item('')
301 +checkbox= 'I\'ve read and accept the terms and conditions'
302
303 +form-item('')
304 +a-button(variant='primary')= 'Register'