added last tweets from EthereumRemix

pull/5370/head
LianaHus 4 years ago
parent cbed81c959
commit 200e659373
  1. 46
      apps/remix-ide/src/app/ui/landing-page/landing-page.js

@ -20,7 +20,11 @@ let css = csjs`
text-decoration: underline;
}
.homeContainer {
user-select:none;
user-select: none;
overflow-y: hidden;
}
.mainContent {
flex-grow: 3;
}
.thisJumboton {
padding: 2.5rem 0rem;
@ -32,14 +36,13 @@ let css = csjs`
margin:30px;
padding-right: 90px;
}
.jumboBtnContainer {
}
.headlineContainer {
margin: 0 50px 0 70px;
}
.hpSections {
min-width: 640px;
}
.remixHomeTwitter {
overflow-x: hidden;
overflow-y: auto;
}
.labelIt {
margin-bottom: 0;
}
@ -123,8 +126,6 @@ export class LandingPage extends ViewPlugin {
})
}
const learnMore = () => { window.open('https://remix-ide.readthedocs.io/en/latest/layout.html', '_blank') }
const startSolidity = () => {
this.appManager.ensureActivated('solidity')
this.appManager.ensureActivated('udapp')
@ -211,7 +212,8 @@ export class LandingPage extends ViewPlugin {
const sourceVerifyEnv = createEnvButton('assets/img/sourceVerifyLogo.webp', 'sourceVerifyLogo', 'Sourcify', startSourceVerify)
const moreEnv = createEnvButton('assets/img/moreLogo.webp', 'moreLogo', 'More', startPluginManager)
const invertNum = (globalRegistry.get('themeModule').api.currentTheme().quality === 'dark') ? 1 : 0
const themeQuality = globalRegistry.get('themeModule').api.currentTheme().quality
const invertNum = (themeQuality === 'dark') ? 1 : 0
solEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})`
vyperEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})`
pipelineEnv.getElementsByTagName('img')[0].style.filter = `invert(${invertNum})`
@ -226,16 +228,13 @@ export class LandingPage extends ViewPlugin {
document.location.reload()
}
const img = yo`<img src="assets/img/sleepingRemiCroped.webp"></img>`
const container = yo`<div class="${css.homeContainer} bg-light" data-id="landingPageHomeContainer">
const container = yo`
<div class="${css.homeContainer} d-flex bg-light" data-id="landingPageHomeContainer">
<div class="${css.mainContent}">
<div>
<div class="alert alert-info clearfix py-3 ${css.thisJumboton}">
<div class="${css.headlineContainer}">
<div class="${css.logoContainer}">${img}</div>
</div>
<div class="${css.jumboBtnContainer} px-5">
<button class="btn btn-primary mx-3" href="#" onclick=${() => learnMore()} role="button">Learn more</button>
<button class="btn btn-secondary" onclick=${() => switchToPreviousVersion()}>Use previous version</button>
</div>
<span class="${css.text} text-secondary" onclick=${() => switchToPreviousVersion()}>Previous version</span>
<div class="border-bottom clearfix py-3 ${css.thisJumboton}">
<div class="mx-4 ${css.logoContainer}">${img}</div>
</div><!-- end of jumbotron -->
</div><!-- end of jumbotron container -->
<div class="row ${css.hpSections} mx-4" data-id="landingPageHpSections">
@ -309,8 +308,15 @@ export class LandingPage extends ViewPlugin {
</div>
</div><!-- end of #col2 -->
</div><!-- end of hpSections -->
</div>`
</div>
<div class="border-left mx-2 ${css.remixHomeTwitter}">
<a class="twitter-timeline" data-width="400" data-chrome="nofooter transparent" data-tweet-limit="8" href="https://twitter.com/EthereumRemix">
Tweets by EthereumRemix
</a>
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>
</div>
`
return container
}
}

Loading…
Cancel
Save