{% import 'pages/_results-heading.html' as results %} {% import 'components/pager.html' as pager %} {% set items = [{ name: 'Johnathan S.', avatar: 'assets/images/people/110/guy-1.jpg', topic: 'UI Designer', course_title: "Angular Routing In-Depth", course_image: "assets/images/paths/angular_routing_200x168.png", rating: 3, following: true }, { name: 'Fabrice M.', avatar: 'assets/images/people/110/guy-2.jpg', topic: 'Web Developer', course_title: 'Build an iOS Application in Swift', course_image: "assets/images/paths/swift_200x168.png", face: true }, { name: 'Diane D.', avatar: 'assets/images/people/110/woman-1.jpg', topic: 'iOS Developer', course_title: 'Build a WordPress Website', course_image: "assets/images/paths/wordpress_200x168.png", rating: 4 }, { name: 'Nicole G.', avatar: 'assets/images/people/110/woman-2.jpg', topic: 'UX Designer', face: true }, { name: 'Abraham K.', avatar: 'assets/images/people/110/guy-3.jpg', topic: 'Entrepreneur', course_title: 'Become a React Native Developer', course_image: "assets/images/paths/react_200x168.png", rating: 3 }, { name: 'Jane D.', avatar: 'assets/images/people/110/woman-3.jpg', topic: 'Android Developer' }] %} {% macro teacher_card(prefix=prefix, item, class=teachers_col) %}
teacher face
{% for rating in range((item.rating or 5)) %} star {% endfor %} {% for rating in range(5 - (item.rating or 5)) %} star_border {% endfor %}
{{ (item.rating or 5) }}/5

{{ item.description or 'Fueled by my passion for understanding the nuances of cross-cultural advertising, I consider myself a forever student, eager to both build on my academic foundations in psychology and sociology and stay in tune with the latest digital marketing strategies through continued coursework.' }}

{{ item.topic }}
{% endmacro %} {{ results.component(label='teachers', sidebar_toggle=results_sidebar_toggle) }}
Top Teachers
{% for item in items.slice(0, 3) %} {{ teacher_card(item=item) }} {% endfor %}
{{ pager.pager() }}
Rising Stars
{% for item in items.slice(3, 6) %} {{ teacher_card(item=item) }} {% endfor %}
{{ pager.pager() }}