|
|
@ -18,6 +18,11 @@ function HomeTabFeatured(props:HomeTabFeaturedProps) { |
|
|
|
props.plugin.verticalIcons.select('LearnEth') |
|
|
|
props.plugin.verticalIcons.select('LearnEth') |
|
|
|
_paq.push(['trackEvent', 'hometab', 'featuredSection', 'LearnEth']) |
|
|
|
_paq.push(['trackEvent', 'hometab', 'featuredSection', 'LearnEth']) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const handleStartRemixGuide = async () => { |
|
|
|
|
|
|
|
_paq.push(['trackEvent', 'hometab', 'featuredSection', 'watchOnRemixGuide']) |
|
|
|
|
|
|
|
await props.plugin.appManager.activatePlugin(['remixGuide']) |
|
|
|
|
|
|
|
await props.plugin.call('tabs', 'focus', 'remixGuide') |
|
|
|
|
|
|
|
} |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
<div className="pt-1 pl-2" id="hTFeaturedeSection"> |
|
|
|
<div className="pt-1 pl-2" id="hTFeaturedeSection"> |
|
|
|
<div className="mb-2 remix_ui-carousel-container"> |
|
|
|
<div className="mb-2 remix_ui-carousel-container"> |
|
|
@ -80,19 +85,18 @@ function HomeTabFeatured(props:HomeTabFeaturedProps) { |
|
|
|
<div style={{ fontSize: '0.8rem', lineHeight: '1.25rem' }} className="mb-3"> |
|
|
|
<div style={{ fontSize: '0.8rem', lineHeight: '1.25rem' }} className="mb-3"> |
|
|
|
<FormattedMessage id="home.learnEthPromoText" /> |
|
|
|
<FormattedMessage id="home.learnEthPromoText" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<span |
|
|
|
<button |
|
|
|
className="remixui_home_text btn-sm btn-secondary mt-2 text-decoration-none mb-3" |
|
|
|
className="remixui_home_text btn-sm btn-secondary mt-2 text-decoration-none mb-3" |
|
|
|
style={{ cursor: 'pointer' }} |
|
|
|
|
|
|
|
onClick={()=>handleStartLearneth()} |
|
|
|
onClick={()=>handleStartLearneth()} |
|
|
|
> |
|
|
|
> |
|
|
|
<FormattedMessage id="home.learnEthPromoButton" /> |
|
|
|
<FormattedMessage id="home.learnEthPromoButton" /> |
|
|
|
</span> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div className="mr-1 pr-1 d-flex align-items-center justify-content-center h-100"> |
|
|
|
<div className="mr-1 pr-1 d-flex align-items-center justify-content-center h-100"> |
|
|
|
<a href="https://www.youtube.com/@EthereumRemix/videos" target="__blank"> |
|
|
|
<button className="btn" onClick={() => handleStartRemixGuide()}> |
|
|
|
<img src={'assets/img/YouTubeLogo.webp'} className="remixui_carouselImage" alt=""></img> |
|
|
|
<img src={'assets/img/YouTubeLogo.webp'} className="remixui_carouselImage" alt=""></img> |
|
|
|
</a> |
|
|
|
</button> |
|
|
|
<div className="h6 w-50 p-2 pl-4 align-self-center" style={{ flex: '1' }}> |
|
|
|
<div className="h6 w-50 p-2 pl-4 align-self-center" style={{ flex: '1' }}> |
|
|
|
<h5> |
|
|
|
<h5> |
|
|
|
<FormattedMessage id="home.remixYouTube" /> |
|
|
|
<FormattedMessage id="home.remixYouTube" /> |
|
|
@ -103,14 +107,12 @@ function HomeTabFeatured(props:HomeTabFeaturedProps) { |
|
|
|
<div style={{ fontSize: '0.8rem' }} className="mb-3"> |
|
|
|
<div style={{ fontSize: '0.8rem' }} className="mb-3"> |
|
|
|
<FormattedMessage id="home.remixYouTubeText2" /> |
|
|
|
<FormattedMessage id="home.remixYouTubeText2" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<a |
|
|
|
<button |
|
|
|
className="remixui_home_text btn-sm btn-secondary mt-2 text-decoration-none mb-3" |
|
|
|
className="remixui_home_text btn-sm btn-secondary mt-2 text-decoration-none mb-3" |
|
|
|
onClick={() => _paq.push(['trackEvent', 'hometab', 'featuredSection', 'youTubeMore'])} |
|
|
|
onClick={() => handleStartRemixGuide()} |
|
|
|
target="__blank" |
|
|
|
|
|
|
|
href="https://www.youtube.com/@EthereumRemix/videos" |
|
|
|
|
|
|
|
> |
|
|
|
> |
|
|
|
<FormattedMessage id="home.remixYouTubeMore" /> |
|
|
|
<FormattedMessage id="home.remixYouTubeMore" /> |
|
|
|
</a> |
|
|
|
</button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</Carousel> |
|
|
|
</Carousel> |
|
|
|