Add speaker pictures

This commit is contained in:
Vencislav Atanasov 2024-09-24 02:05:34 +03:00
parent 66ac808f42
commit c5776739e0
2 changed files with 2 additions and 3 deletions

View File

@ -4,7 +4,6 @@ import { getSpeakerName, isTrackHidden } from './utils.js';
import { Fragment, useState } from 'react'; import { Fragment, useState } from 'react';
import useScheduleTable from '../hooks/useScheduleTable.js'; import useScheduleTable from '../hooks/useScheduleTable.js';
import Event from './Event.jsx'; import Event from './Event.jsx';
import defaultSpeaker from '../assets/default-speaker.png';
import './Schedule.scss'; import './Schedule.scss';
import { langs } from './constants.js'; import { langs } from './constants.js';
import Speaker from './Speaker.jsx'; import Speaker from './Speaker.jsx';
@ -99,13 +98,13 @@ export default function Schedule({
<div className="grid members"> <div className="grid members">
{speakers.map(speaker => <div key={speaker.id} className="col4 wmember"> {speakers.map(speaker => <div key={speaker.id} className="col4 wmember">
<a href={'#'.concat(speaker.id)}> <a href={'#'.concat(speaker.id)}>
<img width="100" height="100" src={defaultSpeaker} alt={getSpeakerName(speaker)} /> <img width="100" height="100" src={speaker.picture} alt={getSpeakerName(speaker)} />
</a> </a>
</div>)} </div>)}
</div> </div>
{speakers.map(speaker => <Fragment key={speaker.id}> {speakers.map(speaker => <Fragment key={speaker.id}>
<div className="speaker" id={'speaker-'.concat(speaker.id)}> <div className="speaker" id={'speaker-'.concat(speaker.id)}>
<img width="100" height="100" src={defaultSpeaker} alt={getSpeakerName(speaker)}/> <img width="100" height="100" src={speaker.picture} alt={getSpeakerName(speaker)}/>
<h3>{getSpeakerName(speaker)}</h3> <h3>{getSpeakerName(speaker)}</h3>
<div className="icons"> <div className="icons">
{speaker.twitter && <a href={'https://twitter.com/'.concat(speaker.twitter)}> {speaker.twitter && <a href={'https://twitter.com/'.concat(speaker.twitter)}>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB