Open Event Frontend earlier displayed all the speakers of an event on the main info page only, now a separate route for speakers is created and a separate page is added to display the speakers of an event. The design and layout of speakers page is kept similar to that on Open Event Web app. The info page only shows the featured speakers for an event and the complete list of speakers with additional information is present on speakers route.
Getting the event speakers data
The event data is obtained from the public model and a query is made for the speakers to get the required data. The speakers are fetched only for the sessions which are accepted, this is done by applying a filter while the query is made.
Adding template for displaying speakers
A template is added to display three speakers in a row. The speakers data obtained from the model is looped through and details of every speaker is passed to the speaker-item component, which handles the design and layout for every item in the speakers list.
Adding component for speaker-item
A component for displaying the speaker-item is added to templates/component/public directory. The component contains of an accordion which displays the speaker details like biography, social links and the sessions that would be taken by him.
The accordion with speaker image and other details appears for every speaker of an event.
- Open Event Frontend Repository: https://github.com/fossasia/open-event-frontend/
- Pull Request: https://github.com/fossasia/open-event-frontend/pull/1472
- Issue: https://github.com/fossasia/open-event-frontend/issues/1329
- Additional Resources: https://guides.emberjs.com/v2.5.0/, https://guides.emberjs.com/release/components/defining-a-component/