update learneth Promos

pull/5159/head
ryestew 5 months ago committed by Aniket
parent 6d0f3ca151
commit aa5f0edd82
  1. 1
      apps/remix-ide/src/app/tabs/locales/en/home.json
  2. BIN
      apps/remix-ide/src/assets/img/remi-desk-470.webp
  3. 10
      libs/remix-ui/home-tab/src/lib/components/homeTabFeatured.tsx
  4. 25
      libs/remix-ui/home-tab/src/lib/components/homeTabFeaturedPlugins.tsx

@ -37,6 +37,7 @@
"home.ozerc1155TemplateDesc": "Create an ERC1155 token by importing OpenZeppelin library.",
"home.gnosisSafeMultisigTemplateDesc": "Create Multi-Signature wallets using this template.",
"home.zeroxErc20TemplateDesc": "Create an ERC20 token by importing 0xProject contract.",
"home.learnEthPluginDesc": "Learn about Remix, Solidity, and other Web3 projects.",
"home.learn": "Learn",
"home.learnEth1": "Remix Basics",
"home.learnEth1Desc": "An introduction to Remix's interface and basic operations.",

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

@ -67,7 +67,7 @@ function HomeTabFeatured(props:HomeTabFeaturedProps) {
</div>
<div className="mr-1 pr-1 d-flex align-items-center justify-content-center h-100">
<a href="https://remix-project.org" target="__blank">
<img src={'assets/img/bgRemi_small.webp'} className="remixui_carouselImage" alt=""></img>
<img src={'assets/img/remi-desk-470.webp'} className="remixui_carouselImage" alt=""></img>
</a>
<div className="h6 w-50 p-2 pl-4 align-self-center" style={{ flex: '1' }}>
<h5>
@ -79,10 +79,12 @@ function HomeTabFeatured(props:HomeTabFeaturedProps) {
<span
className="remixui_home_text btn-sm btn-secondary mt-2 text-decoration-none mb-3"
onClick={async () => {
await props.plugin.appManager.activatePlugin(['learneth'])
await props.plugin.verticalIcons.select('learneth')
_paq.push(['trackEvent', 'hometab', 'featuredSection', 'LearnEth'])}
await props.plugin.appManager.activatePlugin(['LearnEth', 'solidity', 'solidityUnitTesting'])
props.plugin.verticalIcons.select('LearnEth')
await props.plugin.call('LearnEth', 'home')
}
}
>
<FormattedMessage id="home.learnEthPromoButton" />
</span>

@ -67,10 +67,10 @@ function HomeTabFeaturedPlugins({ plugin }: HomeTabFeaturedPluginsProps) {
plugin.verticalIcons.select('solidityStaticAnalysis')
_paq.push(['trackEvent', 'hometabActivate', 'userActivate', 'solidityStaticAnalysis'])
}
const startSourceVerify = async () => {
await plugin.appManager.activatePlugin(['solidity', 'sourcify'])
plugin.verticalIcons.select('sourcify')
_paq.push(['trackEvent', 'hometabActivate', 'userActivate', 'sourcify'])
const startLearnEth = async () => {
await plugin.appManager.activatePlugin(['LearnEth', 'solidity', 'solidityUnitTesting'])
plugin.verticalIcons.select('LearnEth')
_paq.push(['trackEvent', 'hometabActivate', 'userActivate', 'LearnEth'])
}
const startCookbook = async () => {
await plugin.appManager.activatePlugin(['cookbookdev'])
@ -125,6 +125,16 @@ function HomeTabFeaturedPlugins({ plugin }: HomeTabFeaturedPluginsProps) {
remixMaintained={true}
callback={() => startCodeAnalyzer()}
/>
<PluginButton
imgPath="assets/img/learnEthLogo.webp"
envID="learnEthLogo"
envText="LearnEth Tutorials"
description={intl.formatMessage({
id: 'home.learnEthPluginDesc'
})}
remixMaintained={true}
callback={() => startLearnEth()}
/>
<PluginButton
imgPath="assets/img/cookbook.webp"
envID="cookbookLogo"
@ -141,13 +151,6 @@ function HomeTabFeaturedPlugins({ plugin }: HomeTabFeaturedPluginsProps) {
remixMaintained={true}
callback={() => startSolidity()}
/>
<PluginButton
imgPath="assets/img/sourcifyNewLogo.webp"
envID="sourcifyLogo"
envText="Sourcify"
description={intl.formatMessage({ id: 'home.sourcifyPluginDesc' })}
callback={() => startSourceVerify()}
/>
<PluginButton
imgPath="assets/img/unitTesting.webp"
envID="sUTLogo"

Loading…
Cancel
Save