Skip to content

Commit

Permalink
fixed thumbn.s
Browse files Browse the repository at this point in the history
  • Loading branch information
LianaHus committed Aug 15, 2024
1 parent b080a01 commit 7002f89
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 9 deletions.
7 changes: 4 additions & 3 deletions apps/remix-ide/src/app/plugins/remixGuide.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 || [])

Expand Down Expand Up @@ -123,6 +124,7 @@ export class RemixGuidePlugin extends ViewPlugin {
plugin={this}
title={cell.title}
tagList={cell.tagList}
classList='RGCellStyle'
expandViewEl={
cell.expandViewElement
}
Expand All @@ -134,10 +136,9 @@ export class RemixGuidePlugin extends ViewPlugin {
this.renderComponent()
}}
logo={cell.expandViewElement.logo}
logoURL={"https://www.youtube.com/@" + cell.authorURL}
>
<a href={"https://www.youtube.com/@" + cell.authorURL} target="__blank">
<img src={"//img.youtube.com/vi/" + this.videoID + "/0.jpg"} style={{ height: '70px', width: '70px' }}></img>
</a>
<img src={"//img.youtube.com/vi/" + cell.expandViewElement.videoID + "/0.jpg"} style={{ height: '100px', width: 'fit-content' }}></img>
</RemixUIGridCell>
})}
</RemixUIGridSection>
Expand Down
8 changes: 4 additions & 4 deletions apps/remix-ide/src/app/plugins/remixGuideData.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"sections": [
{
"title": "Remix Basics",
"hScrollable": "true",
"hScrollable": "false",
"cells": [
{
"title": "Intro to Remix",
Expand Down Expand Up @@ -73,7 +73,7 @@
},
{
"title": "Solidity Basics",
"hScrollable": "true",
"hScrollable": "false",
"cells": [
{
"title": "Hello World",
Expand Down Expand Up @@ -140,7 +140,7 @@
},
{
"title": "Remix Techniques",
"hScrollable": "true",
"hScrollable": "false",
"cells": [
{
"title": "Proxy Contracts",
Expand Down Expand Up @@ -209,7 +209,7 @@
},
{
"title": "Low Level Solidity Videos",
"hScrollable": "true",
"hScrollable": "false",
"cells": [
{
"title": "EVM Storage",
Expand Down
2 changes: 1 addition & 1 deletion apps/remix-ide/src/remixAppManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ let requiredModules = [ // services + layout views + system views
'dgit',
'pinnedPanel',
'pluginStateLogger',
'remixGuide',
//'remixGuide',
'environmentExplorer',
'templateSelection',
'matomo',
Expand Down
8 changes: 7 additions & 1 deletion libs/remix-ui/grid-view/src/lib/remix-ui-grid-cell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -77,7 +78,12 @@ export const RemixUIGridCell = (props: RemixUIGridCellProps) => {
<div className={ `${pinned ? "" : "border-dark "}` + "d-flex mx-0 p-2 bg-light border border-secondary remixui_grid_cell_container " + props.classList || ''} data-id={"remixUIGS" + props.title}>
<div className="d-flex remixui_grid_cell w-100 flex-column">
{ !props.hideTitle && <div className='d-flex flex-row pb-1 mb-1 align-items-end' style={{ minWidth: '8rem', height: '1rem' }}>
{ props.logo && <img className='remixui_grid_view_logo mr-1' src={props.logo} style={{ width: '1rem', height: '1rem' }}/> }
{ props.logo && props.logoURL !== '' ?
<a href={props.logoURL} target="__blank">
<img className='remixui_grid_view_logo mr-1' src={props.logo} style={{ width: '1rem', height: '1rem' }}/>
</a> :
<img className='remixui_grid_view_logo mr-1' src={props.logo} style={{ width: '1rem', height: '1rem' }}/>
}
{ props.logos && props.logos.map((logo) => <img className='remixui_grid_view_logo mr-1' src={logo} style={{ width: '1rem', height: '1rem' }}/>)}
{ props.title &&
<CustomTooltip
Expand Down

0 comments on commit 7002f89

Please sign in to comment.