File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,21 +6,24 @@ import './speakers.css';
66
77const SpeakerRow = ( { speaker, isEven } ) => {
88 const Content = (
9- < Row className = { `speaker-content ${ isEven ? 'flex-row-reverse' : '' } ` } >
10- < Col md = { 4 } className = "speaker-img-col" >
11- < img
12- src = { speaker . imgPath }
13- alt = { speaker . name }
14- className = "speaker-img"
15- />
16- </ Col >
17- < Col md = { 8 } className = "speaker-info-col" >
18- < div className = { `speaker-info ${ isEven ? 'text-end' : 'text-start' } ` } >
19- < h2 className = "speaker-name" > { speaker . name } </ h2 >
20- < p className = "speaker-bio" > { speaker . bio } </ p >
21- </ div >
22- </ Col >
23- </ Row >
9+ < >
10+ < Row className = { `speaker-content ${ isEven ? 'flex-row-reverse' : '' } ` } >
11+ < Col md = { 4 } className = "speaker-img-col" >
12+ < img
13+ src = { speaker . imgPath }
14+ alt = { speaker . name }
15+ className = "speaker-img"
16+ />
17+ </ Col >
18+ < Col md = { 8 } className = "speaker-info-col" >
19+ < div className = { `speaker-info ${ isEven ? 'text-end' : 'text-start' } ` } >
20+ < h2 className = "speaker-name" > { speaker . name } </ h2 >
21+ < p className = "speaker-bio" > { speaker . bio } </ p >
22+ </ div >
23+ </ Col >
24+ </ Row >
25+ { speaker . link && < div className = "view-profile-text" > View Profile →</ div > }
26+ </ >
2427 ) ;
2528
2629 if ( speaker . link ) {
Original file line number Diff line number Diff line change 2626 background-color : rgba (255 , 255 , 255 , 0.05 );
2727 border-radius : 10px ;
2828 transition : all 0.3s ease;
29+ position : relative;
2930}
3031
3132.speaker-row .clickable {
3637 text-decoration : none !important ;
3738 color : inherit !important ;
3839 display : block;
40+ position : relative;
3941}
4042
4143.speaker-row : hover {
4446 background-color : rgba (255 , 255 , 255 , 0.08 );
4547}
4648
47- .speaker-row .clickable : hover ::after {
48- content : "View Profile →" ;
49- position : absolute;
50- bottom : 20px ;
51- right : 40px ;
49+ .view-profile-text {
50+ display : none;
5251 color : var (--imp-text-color );
5352 font-size : 0.9em ;
5453 opacity : 0.8 ;
54+ position : absolute;
55+ bottom : 20px ;
56+ right : 40px ;
57+ }
58+
59+ .speaker-row .clickable : hover .view-profile-text {
60+ display : block;
5561}
5662
5763.speaker-content {
113119 font-size : 1em ;
114120 }
115121
116- .speaker-row . clickable : hover :: after {
122+ .view-profile-text {
117123 position : static;
118124 display : block;
119125 text-align : center;
You can’t perform that action at this time.
0 commit comments