From 618d6c3f95f96c2131ee3c44ae74edca8f6435cb Mon Sep 17 00:00:00 2001 From: LianaHus Date: Thu, 13 Aug 2020 09:43:07 +0200 Subject: [PATCH] added last tweets from EthereumRemix --- .../src/app/ui/landing-page/landing-page.js | 194 +++++++++--------- 1 file changed, 100 insertions(+), 94 deletions(-) diff --git a/apps/remix-ide/src/app/ui/landing-page/landing-page.js b/apps/remix-ide/src/app/ui/landing-page/landing-page.js index bc6b00c906..f74a8177ca 100644 --- a/apps/remix-ide/src/app/ui/landing-page/landing-page.js +++ b/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,91 +228,95 @@ export class LandingPage extends ViewPlugin { document.location.reload() } const img = yo`` - const container = yo`
-
-
-
-
${img}
-
-
- - -
-
-
-
-
-
-

Environments

-
- ${solEnv} - ${vyperEnv} -
-
-
-

File

-

- - createNewFile()}>New File -

-

- - - Open Files - - -

-

- - connectToLocalhost()}>Connect to Localhost -

-

-
- - - - - - -
-
-
-
-
-

Featured Plugins

-
- ${pipelineEnv} - ${mythXEnv} - ${sourceVerifyEnv} - ${debuggerEnv} - ${moreEnv} -
-
-
-

Resources

-

- - Documentation -

-

- - Gitter channel -

-

- - Medium Posts -

-
-
-
-
` - + const container = yo` +
+
+
+ switchToPreviousVersion()}>Previous version +
+
${img}
+
+
+
+
+
+

Environments

+
+ ${solEnv} + ${vyperEnv} +
+
+
+

File

+

+ + createNewFile()}>New File +

+

+ + + Open Files + + +

+

+ + connectToLocalhost()}>Connect to Localhost +

+

+
+ + + + + + +
+
+
+
+
+

Featured Plugins

+
+ ${pipelineEnv} + ${mythXEnv} + ${sourceVerifyEnv} + ${debuggerEnv} + ${moreEnv} +
+
+
+

Resources

+

+ + Documentation +

+

+ + Gitter channel +

+

+ + Medium Posts +

+
+
+
+
+ +
+ ` return container } }