landing page style changes

pull/3094/head
LianaHus 6 years ago
parent 0186f9be0a
commit 10b2696280
  1. 47
      src/app/ui/landing-page/landing-page.js
  2. 8
      src/app/ui/landing-page/section.js
  3. 20
      src/app/ui/landing-page/workspace.js

File diff suppressed because one or more lines are too long

@ -3,23 +3,19 @@ let csjs = require('csjs-inject')
var css = csjs`
.text {
background-color : var(--success);
cursor: pointer;
color: var(--primary);
font-weight: normal;
max-width: 300px;
}
.text:hover {
font-weight: bold;
}
.link {
cursor: pointer;
background-color : var(--primary);
color: var(--success);
font-weight: normal;
text-decoration : none;
}
.link:hover {
color: var(--success);
font-weight: bold;
text-decoration : none;
}
@ -29,7 +25,7 @@ class Section {
constructor (title, actions) {
this.title = title
this.actions = actions
this.cardStyle = (this.title === 'Workspaces') ? 'bg-success text-primary' : 'bg-primary text-success border-success'
this.cardStyle = (this.title === 'Workspaces') ? 'bg-success text-light' : 'bg-light text-dark border-dark'
}
render () {

@ -9,35 +9,21 @@ export class Workspace {
export const defaultWorkspaces = (appManager) => {
return [
new Workspace('Solidity Basic', '', () => {
appManager.ensureActivated('solidity')
}, () => {}),
new Workspace('Solidity Unit testing', '', () => {
appManager.ensureActivated('solidity')
appManager.ensureActivated('solidityUnitTesting')
}, () => {}),
new Workspace('Solidity Full Environement', '', () => {
new Workspace('Solidity', '', () => {
appManager.ensureActivated('solidity')
appManager.ensureActivated('run')
appManager.ensureActivated('solidityStaticAnalysis')
appManager.ensureActivated('solidityUnitTesting')
}, () => {}),
new Workspace('Vyper Basic', '', () => {
new Workspace('Vyper', '', () => {
appManager.ensureActivated('vyper')
appManager.ensureActivated('run')
}, () => {}),
new Workspace('Pipeline', '', () => {
appManager.ensureActivated('solidity')
appManager.ensureActivated('run')
appManager.ensureActivated('pipeline')
}, () => {}),
new Workspace('Deploy and Run Solidity', '', () => {
appManager.ensureActivated('solidity')
appManager.ensureActivated('run')
}, () => {}),
new Workspace('Deploy and Run Vyper', '', () => {
appManager.ensureActivated('vyper')
appManager.ensureActivated('run')
}, () => {}),
new Workspace('Debugger', '', () => {
appManager.ensureActivated('debugger')
}, () => {})

Loading…
Cancel
Save