Skip to content

Commit

Permalink
Merge pull request ethereum#1808 from ethereum/swap_it_style_fixes_l
Browse files Browse the repository at this point in the history
landing page
  • Loading branch information
yann300 authored Apr 5, 2019
2 parents 862a6ab + b98d56d commit 143a831
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 41 deletions.
2 changes: 1 addition & 1 deletion src/app/components/plugin-manager-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class PluginManagerComponent extends ApiFactory {
</button>`

return yo`
<article class="list-group-item" title="${name}" >
<article class="list-group-item py-1" title="${name}" >
<div class="${css.row} justify-content-between align-items-center">
<h6 class="${css.displayName}">${displayName}</h6>
${activationButton}
Expand Down
2 changes: 0 additions & 2 deletions src/app/panels/styles/terminal-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ var css = csjs`
display : flex;
align-items : center;
width : 100%;
border-bottom-style : ridge;
max-height : 35px;
}
.clear {
Expand Down Expand Up @@ -148,7 +147,6 @@ var css = csjs`
left : 0;
cursor : ns-resize;
z-index : 999;
border-top : 2px solid var(--primary);
}
.ghostbar {
position : absolute;
Expand Down
10 changes: 9 additions & 1 deletion src/app/panels/terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,22 @@ class Terminal {
`
self._view.term = yo`
<div class="${css.terminal_container}" onscroll=${throttle(reattach, 10)} onclick=${focusinput}>
<div style="
background-color: grey;
position: absolute;
height: 100%;
width: 100%;
opacity: 0.1;
z-index: -1;
"></div>
<div class=${css.terminal}>
${self._view.journal}
${self._view.cli}
</div>
</div>
`
self._view.el = yo`
<div class="border ${css.panel}" style="height: 180px;">
<div class="${css.panel}" style="height: 180px;">
${self._view.bar}
${self._view.term}
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/staticanalysis/staticAnalysisView.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ staticAnalysisView.prototype.renderModules = function () {
</label>
`
})
return yo`<div class="${css.analysisModulesContainer} list-group-item">
return yo`<div class="${css.analysisModulesContainer} list-group-item py-1">
<label class="${css.label}"><b>${category[0].categoryDisplayName}</b></label>
${entriesDom}
</div>`
Expand Down
98 changes: 66 additions & 32 deletions src/app/ui/landing-page/landing-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ let css = csjs`
flex-wrap : wrap;
align-content : space-around;
padding : 20px;
max-width : 340px;
min-height : 300px;
max-width : 300px;
min-height : 200px;
background-color: var(--light);
font-family : "Lucida Console", Monaco, monospace;
}
Expand All @@ -36,6 +36,22 @@ let css = csjs`
}
.im:hover {
}
.getStarted {
margin-top : 50px;
width : 100%;
font-size : xx-large;
align-self : center;
}
.text {
cursor: pointer;
font-weight: normal;
max-width: 300px;
user-select: none;
}
.text:hover {
font-weight: bold;
}
}
`

Expand All @@ -47,6 +63,7 @@ export class LandingPage extends ApiFactory {

constructor (appManager, appStore) {
super()
this.appStore = appStore
this.sections = []
let load = function (item) {
let compilerImport = new CompilerImport()
Expand All @@ -69,18 +86,30 @@ export class LandingPage extends ApiFactory {
}
})
}
let fileExplorer = globalRegistry.get('fileexplorer/browser').api
var actionsStart = [
{ label: 'New file',
type: 'callback',
payload: () => {
let fileExplorer = globalRegistry.get('fileexplorer/browser').api
fileExplorer.createNewFile()
}
},
{ label: 'Open file',
{
// Open a file
label: yo`
<label class="${css.text} m-0 h6 text-dark">
Open file
<input title="open file" type="file" onchange="${
(event) => {
event.stopPropagation()
fileExplorer.uploadFile(event)
}
}" multiple />
</label>
`,
type: `callback`,
description: ``,
payload: () => { this.alert(`-imported from gist-`) }
payload: () => {}
},
{ label: 'Import from Gist',
type: `callback`,
Expand Down Expand Up @@ -116,22 +145,17 @@ export class LandingPage extends ApiFactory {
}
]

var actionsHelp = [
var actionsResources = [
{ label: 'Remix documentation', type: `link`, description: ``, payload: `https://remix.readthedocs.io/en/latest/#` },
{ label: 'Access local file system. remixd', description: ``, type: `link`, payload: `https://remix.readthedocs.io/en/latest/tutorial_remixd_filesystem.html` },
{ label: 'Medium posts', type: `link`, description: ``, payload: `https://medium.com/remix-ide` },
{ label: 'Plugins & modules', type: `link`, description: ``, payload: `https://github.com/ethereum/remix-plugin/blob/master/readme.md` },
{ label: 'GitHub repo', type: `link`, description: ``, payload: `https://github.com/ethereum/remix-ide` },
{ label: 'Gitter channel', type: `link`, description: ``, payload: `https://gitter.im/ethereum/remix` },
{ label: 'Stack Overflow', type: `link`, description: ``, payload: `https://stackoverflow.com/questions/tagged/remix` },
{ label: 'Reddit', type: `link`, description: ``, payload: `https://www.reddit.com/r/ethdev/search?q=remix&restrict_sr=1` }
{ label: 'Gitter channel', type: `link`, description: ``, payload: `https://gitter.im/ethereum/remix` }
]

var sectionStart = new Section('Start', actionsStart)
let sectionHelp = new Section('Help', actionsHelp)
let sectionResources = new Section('Resources', actionsResources)

this.sectionWorkspaceMain = []
this.sectionWorkspaceOthers = []
// this.sectionWorkspaceOthers = []
defaultWorkspaces(appManager).forEach((workspace) => {
if (workspace.isMain) {
this.sectionWorkspaceMain.push({
Expand All @@ -141,17 +165,17 @@ export class LandingPage extends ApiFactory {
payload: () => { workspace.activate() }
})
} else {
this.sectionWorkspaceOthers.push({
/* this.sectionWorkspaceOthers.push({
label: workspace.title,
type: 'callback',
description: workspace.description,
payload: () => { workspace.activate() }
})
}) */
}
})

this.sections.push(sectionStart)
this.sections.push(sectionHelp)
this.sections.push(sectionResources)
}

get profile () {
Expand All @@ -169,29 +193,37 @@ export class LandingPage extends ApiFactory {
render () {
let logo = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0d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YuMjEyIAkJCQkiLz4NCgkJCTwvZz4NCgkJPC9nPg0KCQk8ZyBvcGFjaXR5PSIwLjYiPg0KCQkJPGc+DQoJCQkJPHBvbHlnb24gZmlsbD0iIzAxMDEwMSIgcG9pbnRzPSIyNTUuOTY5LDEyNi43ODEgMTUwLjczMywxNzQuNjExIDI1NS45NjksMjM2LjgxOCAzNjEuMjA0LDE3NC42MTEgCQkJCSIvPg0KCQkJPC9nPg0KCQk8L2c+DQoJCTxnIG9wYWNpdHk9IjAuNDUiPg0KCQkJPGc+DQoJCQkJPHBvbHlnb24gZmlsbD0iIzAxMDEwMSIgcG9pbnRzPSIxNTAuNzM0LDE3NC42MTIgMjU1Ljk2OSwyMzYuODE4IDI1NS45NjksMTI2Ljc4MiAyNTUuOTY5LDAuMDAxIAkJCQkiLz4NCgkJCTwvZz4NCgkJPC9nPg0KCQk8ZyBvcGFjaXR5PSIwLjgiPg0KCQkJPGc+DQoJCQkJPHBvbHlnb24gZmlsbD0iIzAxMDEwMSIgcG9pbnRzPSIyNTUuOTY5LDAgMjU1Ljk2OSwxMjYuNzgxIDI1NS45NjksMjM2LjgxOCAzNjEuMjA0LDE3NC42MTEgCQkJCSIvPg0KCQkJPC9nPg0KCQk8L2c+DQoJPC9nPg0KPC9nPg0KPC9zdmc+DQo='
let totalLook = yo`
<div class="${css.landingPage}">
<div class="border-left ${css.landingPage}">
</div>
`

let main = yo`<div class="container m-4"></div>`
let main = yo`<div class="container"></div>`
for (let i = 0; i < this.sectionWorkspaceMain.length; i++) {
main.appendChild(yo`
<span class="btn btn-secondary btn-lg m-2" onclick="${this.sectionWorkspaceMain[i].payload}">
<span class="btn btn-secondary btn-lg m-2" style=" font-size: x-large;" onclick="${this.sectionWorkspaceMain[i].payload}">
${this.sectionWorkspaceMain[i].label}
</span>
`)
}
let icon = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB3aWR0aD0iMTc5MiIgaGVpZ2h0PSIxNzkyIiB2aWV3Qm94PSIwIDAgMTc5MiAxNzkyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik0xNzU1IDQ1M3EzNyAzOCAzNyA5MC41dC0zNyA5MC41bC00MDEgNDAwIDE1MCAxNTAtMTYwIDE2MHEtMTYzIDE2My0zODkuNSAxODYuNXQtNDExLjUtMTAwLjVsLTM2MiAzNjJoLTE4MXYtMTgxbDM2Mi0zNjJxLTEyNC0xODUtMTAwLjUtNDExLjV0MTg2LjUtMzg5LjVsMTYwLTE2MCAxNTAgMTUwIDQwMC00MDFxMzgtMzcgOTEtMzd0OTAgMzcgMzcgOTAuNS0zNyA5MC41bC00MDAgNDAxIDIzNCAyMzQgNDAxLTQwMHEzOC0zNyA5MS0zN3Q5MCAzN3oiLz48L3N2Zz4='

let others = yo`<div class="container m-4"></div>`
main.appendChild(yo`
<span style="padding-left: 60px; "onclick="${() => { globalRegistry.get('verticalicon').api.select('pluginManager') }}">
Check out all plugins here
<img class="btn btn-secondary btn-lg m-2" style="max-width: 53px; max-height: 53px" src="${icon}" />
</span>
`)

/* let others = yo`<div class="container m-4"></div>`
for (let i = 0; i < this.sectionWorkspaceOthers.length; i++) {
others.appendChild(yo`
<span class="btn btn-secondary btn-sm m-2" onclick="${this.sectionWorkspaceOthers[i].payload}">
${this.sectionWorkspaceOthers[i].label}
</span>
`)
}
} */

let docs = yo`<div class="container m-4"></div>`
let docs = yo`<div class="container m-5"></div>`
for (let i = 0; i < this.sections.length; i++) {
docs.appendChild(yo`
<div class="${css.sectionContainer} p-2">
Expand All @@ -202,16 +234,18 @@ export class LandingPage extends ApiFactory {

totalLook.appendChild(yo`
<div class="container-fluid">
<div class="row">
<div class="card m-4 p-4" style="min-width: 50%;">
<img class="card-img-top ${css.im}" src="${logo}" />
<div class="card-body-fluid m-4">
<h5 class="card-header m-4">Workspaces</h5>
<h6>Create, compile and execute smart contracts</h6>
<p>${main}</p>
<h6> Most used plugins</h6>
<p>${others}</p>
<div class="row" style="flex-wrap: nowrap;">
<div class="column m-5" style="min-width: 50%;">
<div class="card p-4">
<img class="card-img-top ${css.im}" src="${logo}" />
<div class="card-body-fluid">
<h5 class="card-header m-4">Workspaces</h5>
<p>${main}</p>
</div>
</div>
<div>
<span class="btn btn-secondary ${css.getStarted}" onclick=${() => { tooltip(' not implemented yet :P ') }}>Get Started</span>
</div>
</div>
<div>
${docs}
Expand Down
8 changes: 4 additions & 4 deletions src/app/ui/landing-page/section.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,24 @@ class Section {

render () {
let sectionLook = yo`
<div class="card border-0 bg-light bd-light text-dark p-1" style="min-width: 300px; min-height: 210px;">
<div class="card-header font-weight-bold" style="user-select: none;">${this.title}</div>
<div class="card border-0 bg-light text-dark p-1" style="min-width: 300px; min-height: 180px;">
<div class="card-header h5 font-weight-bold" style="user-select: none;">${this.title}</div>
<p></p>
</div>
`
for (var i = 0; i < this.actions.length; i++) {
if (this.actions[i].type === `callback`) {
sectionLook.appendChild(yo`
<div>
<span class="${css.text} text-dark" onclick=${this.actions[i].payload} >
<span class="${css.text} p-3 h6 text-dark" onclick=${this.actions[i].payload} >
${this.actions[i].label}
</span>
</div>
`)
} else if (this.actions[i].type === `link`) {
sectionLook.appendChild(yo`
<div >
<a class="${css.link} text-dark text-decoration-none" href=${this.actions[i].payload} target="_blank" >
<a class="${css.link} text-dark p-3 h6 text-decoration-none" href=${this.actions[i].payload} target="_blank" >
${this.actions[i].label}
</a>
</div>
Expand Down

0 comments on commit 143a831

Please sign in to comment.