Re-organise
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
34a2740106
commit
6891a7517a
440 changed files with 0 additions and 16 deletions
16
workshop-tailwind-css/code/loops-2.txt
Normal file
16
workshop-tailwind-css/code/loops-2.txt
Normal file
|
@ -0,0 +1,16 @@
|
|||
{% for menu_item in menu_items.findAll() %}
|
||||
|
||||
{% set linkClasses = [
|
||||
'block px-2 py-3 text-2xl uppercase duration-200 ease-out transition-color font-display
|
||||
text-blue-dark hover:bg-orange focus:bg-orange hover:text-gray-dark focus:text-gray-dark',
|
||||
|
||||
menu_item.is_active ? 'text-white bg-blue'
|
||||
] %}
|
||||
|
||||
<li>
|
||||
<a class="{{ linkClasses|join(' ')|trim }}" href="#0">
|
||||
{{ menu_item.title }}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
{% endfor %}
|
Loading…
Add table
Add a link
Reference in a new issue