diff --git a/apps/remix-ide/src/app/plugins/remixGuide.tsx b/apps/remix-ide/src/app/plugins/remixGuide.tsx index 852ebc50bf..3dcda2829a 100644 --- a/apps/remix-ide/src/app/plugins/remixGuide.tsx +++ b/apps/remix-ide/src/app/plugins/remixGuide.tsx @@ -7,6 +7,7 @@ import { RemixUIGridView } from '@remix-ui/remix-ui-grid-view' import { RemixUIGridSection } from '@remix-ui/remix-ui-grid-section' import { RemixUIGridCell } from '@remix-ui/remix-ui-grid-cell' import * as Data from './remixGuideData.json' +import './remixGuide.css' //@ts-ignore const _paq = (window._paq = window._paq || []) @@ -123,6 +124,7 @@ export class RemixGuidePlugin extends ViewPlugin { plugin={this} title={cell.title} tagList={cell.tagList} + classList='RGCellStyle' expandViewEl={ cell.expandViewElement } @@ -134,10 +136,9 @@ export class RemixGuidePlugin extends ViewPlugin { this.renderComponent() }} logo={cell.expandViewElement.logo} + logoURL={"https://www.youtube.com/@" + cell.authorURL} > - - - + })} diff --git a/apps/remix-ide/src/app/plugins/remixGuideData.json b/apps/remix-ide/src/app/plugins/remixGuideData.json index 5d22dd561e..2eacf913e1 100644 --- a/apps/remix-ide/src/app/plugins/remixGuideData.json +++ b/apps/remix-ide/src/app/plugins/remixGuideData.json @@ -5,7 +5,7 @@ "sections": [ { "title": "Remix Basics", - "hScrollable": "true", + "hScrollable": "false", "cells": [ { "title": "Intro to Remix", @@ -73,7 +73,7 @@ }, { "title": "Solidity Basics", - "hScrollable": "true", + "hScrollable": "false", "cells": [ { "title": "Hello World", @@ -140,7 +140,7 @@ }, { "title": "Remix Techniques", - "hScrollable": "true", + "hScrollable": "false", "cells": [ { "title": "Proxy Contracts", @@ -209,7 +209,7 @@ }, { "title": "Low Level Solidity Videos", - "hScrollable": "true", + "hScrollable": "false", "cells": [ { "title": "EVM Storage", diff --git a/apps/remix-ide/src/remixAppManager.js b/apps/remix-ide/src/remixAppManager.js index d2a4ecd46c..f3fffa42df 100644 --- a/apps/remix-ide/src/remixAppManager.js +++ b/apps/remix-ide/src/remixAppManager.js @@ -83,7 +83,7 @@ let requiredModules = [ 'dgit', 'pinnedPanel', 'pluginStateLogger', - 'remixGuide', + //'remixGuide', 'environmentExplorer', 'templateSelection', 'matomo', diff --git a/libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx b/libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx index 96deee2398..fb45c5a0da 100644 --- a/libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx +++ b/libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx @@ -17,6 +17,7 @@ interface RemixUIGridCellProps { pinStateCallback?: any logo?: string logos?: string[] + logoURL?: string title: string hideTitle?: boolean tagList?: string[] // max 8, others will be ignored @@ -77,7 +78,12 @@ export const RemixUIGridCell = (props: RemixUIGridCellProps) => {
{ !props.hideTitle &&
- { props.logo && } + { props.logo && props.logoURL !== '' ? + + + : + + } { props.logos && props.logos.map((logo) => )} { props.title &&