Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ae80747
commit c9e9bd2
Showing
24 changed files
with
145 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,5 @@ | |
{{ caller() }} | ||
</div> | ||
</div> | ||
|
||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% from 'components/FormInput/FormInput.html' import FormInput %} | ||
|
||
{% macro Form(value='', type='', description='', label='') %} | ||
|
||
{{ FormInput(value=value) }} | ||
<label>{{ label }}</label> | ||
|
||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% from 'components/Form/Form.html' import Form %} | ||
|
||
{{ Form(label='Label', type='text', value='pietje', description='desc') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% macro FormCheckbox() %} | ||
<input type="checkbox"> | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% from 'components/FormCheckbox/FormCheckbox.html' import FormCheckbox %} | ||
|
||
{{ FormCheckbox() }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/*------------------------------------*\ | ||
#COMPONENTS-FORM-FIELD | ||
\*------------------------------------*/ | ||
|
||
.c-form-field { | ||
|
||
} | ||
|
||
.c-form-field--error { | ||
|
||
color: var(--color-alert-50); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% macro FormField(label='', error='', description='') %} | ||
|
||
<div class="c-form-field {% if error == 'true' %} c-form-field--error {% endif %}"> | ||
<label>{{ label }}</label> | ||
{{ caller() }} | ||
<small>{{ description }}</small> | ||
</div> | ||
|
||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% from 'components/FormField/FormField.html' import FormField %} | ||
{% from 'components/FormInput/FormInput.html' import FormInput %} | ||
|
||
{% call FormField(label='Label', error='true', description='Dit is een beschrijving') %} | ||
{% call FormInput(type='text', value='Tekst') %}{% endcall %} | ||
{% endcall %} | ||
|
||
{% call FormField(label='Label', description='Dit is een beschrijving') %} | ||
{% call FormInput(type='text') %}{% endcall %} | ||
{% endcall %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% macro FormInput(type='text', value='', placeholder='', disabled='false') %} | ||
|
||
<input type="{{ type }}" placeholder="{{ placeholder }}" value="{{ value }}" {% if disabled == 'true' %} disabled {% endif %}> | ||
|
||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% from 'components/FormInput/FormInput.html' import FormInput %} | ||
|
||
{{ FormInput(type='text', value='', placeholder='Met placeholder') }} | ||
{{ FormInput(type='text', value='Disabled', disabled="true") }} | ||
{{ FormInput(type='email', value='Met value', placeholder='') }} | ||
{{ FormInput(type='number', value='Met value', placeholder='') }} | ||
{{ FormInput(type='password', value='ditismijnpassword', placeholder='') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% macro FormRadiobutton() %} | ||
<input type="radio"> | ||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% from 'components/FormRadiobutton/FormRadiobutton.html' import FormRadiobutton %} | ||
|
||
{{ FormRadiobutton() }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
.c-form-select { | ||
border: 1px solid var(--color-neutral-30); | ||
border-radius: var(--border-radius-10); | ||
box-shadow: 0px 1px 3px color(var(--color-neutral-10) alpha(10%)); | ||
width: 100%; | ||
overflow: hidden; | ||
position: relative; | ||
background: url('image.svg') right 0.5rem center no-repeat; | ||
|
||
& select { | ||
border: none; | ||
box-shadow: none; | ||
background: transparent; | ||
background-image: none; | ||
-webkit-appearance: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{% macro FormSelect() %} | ||
|
||
<div class="c-form-select"> | ||
<select> | ||
{{ caller() }} | ||
</select> | ||
</div> | ||
|
||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% from 'components/FormSelect/FormSelect.html' import FormSelect %} | ||
|
||
{% call FormSelect() %} | ||
<option>Value 1</option> | ||
<option>Value 2</option> | ||
<option>Value 3</option> | ||
{% endcall %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% macro FormTextarea(placeholder='') %} | ||
|
||
<textarea cols="50" rows="6" placeholder="{{ placeholder }}">{{ caller() }}</textarea> | ||
|
||
{% endmacro %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% from 'components/FormTextarea/FormTextarea.html' import FormTextarea %} | ||
|
||
{% call FormTextarea(placeholder='Placeholder') %}Dit is een textarea.{% endcall %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{% from 'components/Icon/Icon.html' import Icon %} | ||
|
||
{% call Icon(icon='printer') %}{% endcall %} | ||
{{ Icon(icon='printer') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% from 'components/Media/Media.html' import Media %} | ||
|
||
{% call Media(type='image', url='https://upload.wikimedia.org/wikipedia/commons/thumb/0/07/Canis_lupus_laying.jpg/266px-Canis_lupus_laying.jpg', caption='My caption') %}{% endcall %} | ||
{% call Media(type='video', url='https://player.vimeo.com/video/155640569?title=0&byline=0&portrait=0') %}{% endcall %} | ||
{{ Media(type='image', url='https://upload.wikimedia.org/wikipedia/commons/thumb/0/07/Canis_lupus_laying.jpg/266px-Canis_lupus_laying.jpg', caption='My caption') }} | ||
{{ Media(type='video', url='https://player.vimeo.com/video/155640569?title=0&byline=0&portrait=0') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{% from 'components/Pagination/Pagination.html' import Pagination %} | ||
|
||
{% call Pagination() %}{% endcall %} | ||
{{ Pagination() }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.