fixed layout for resize

pull/1/head
LianaHus 5 years ago
parent 1afc556839
commit dc50ba4b7e
  1. 29
      src/app/ui/landing-page/landing-page.js

@ -38,6 +38,8 @@ let css = csjs`
.jumboBtnContainer { .jumboBtnContainer {
float: left; float: left;
padding-top: 15px; padding-top: 15px;
display: flex;
white-space: nowrap;
} }
.headlineContainer { .headlineContainer {
float: left; float: left;
@ -45,16 +47,15 @@ let css = csjs`
margin: 0 50px 0 70px; margin: 0 50px 0 70px;
} }
.hpSections { .hpSections {
min-width: 620px;
margin: 0 60px; margin: 0 60px;
} }
.solidityBtn {
margin-right: 40px;
}
.labelIt { .labelIt {
margin-bottom: 0; margin-bottom: 0;
} }
.seeAll { .seeAll {
margin-top: 7px; margin-top: 7px;
white-space: nowrap;
} }
.importFrom p { .importFrom p {
margin-right: 10px; margin-right: 10px;
@ -66,10 +67,9 @@ let css = csjs`
.logoContainer img{ .logoContainer img{
height: 65px; height: 65px;
} }
.learnmore { .enviroments {
margin-right: 20px; display: flex;
} }
} }
` `
@ -193,18 +193,18 @@ export class LandingPage extends BaseApi {
<div class="${css.headlineContainer}"> <div class="${css.headlineContainer}">
<h2 class="">The new layout has arrived</h2> <h2 class="">The new layout has arrived</h2>
</div> </div>
<div class="${css.jumboBtnContainer}"> <div class="${css.jumboBtnContainer} px-5">
<button class="btn btn-primary btn-lg ${css.learnmore}" href="#" onclick=${() => { learnMore() }} role="button">Learn more</button> <button class="btn btn-primary btn-lg mx-3" href="#" onclick=${() => { learnMore() }} role="button">Learn more</button>
<button class="btn btn-secondary btn-lg" onclick=${() => { switchToPreviousVersion() }}>Use previous version</button> <button class="btn btn-secondary btn-lg" onclick=${() => { switchToPreviousVersion() }}>Use previous version</button>
</div> </div>
</div><!-- end of jumbotron --> </div><!-- end of jumbotron -->
</div><!-- end of jumbotron container --> </div><!-- end of jumbotron container -->
<div class="row ${css.hpSections}"> <div class="row ${css.hpSections}">
<div id="col1" class="col-sm-6"> <div id="col1" class="col-sm-6">
<div class="environment mb-5"> <div class="mb-5">
<h4>Environments</h4> <h4>Environments</h4>
<div> <div class="${css.enviroments} pt-2">
<button class="btn btn-lg btn-secondary ${css.solidityBtn}" onclick=${() => { startSolidity() }}>Solidity</button> <button class="btn btn-lg btn-secondary mr-3" onclick=${() => { startSolidity() }}>Solidity</button>
<button class="btn btn-lg btn-secondary" onclick=${() => { startVyper() }}>Vyper</button> <button class="btn btn-lg btn-secondary" onclick=${() => { startVyper() }}>Vyper</button>
</div> </div>
</div> </div>
@ -240,7 +240,12 @@ export class LandingPage extends BaseApi {
<h4>Featured Plugins</h4> <h4>Featured Plugins</h4>
<p class="mb-1 ${css.text}" onclick=${() => { startPipeline() }}>Pipeline</p> <p class="mb-1 ${css.text}" onclick=${() => { startPipeline() }}>Pipeline</p>
<p class="mb-1 ${css.text}" onclick=${() => { startDebugger() }}>Debugger</p> <p class="mb-1 ${css.text}" onclick=${() => { startDebugger() }}>Debugger</p>
<p class="mb-1"><button onclick=${() => { startPluginManager() }} class="btn btn-sm btn-secondary ${css.seeAll}">See all Plugins <i class="fas fa-plug" ></i></button></p> <p class="mb-1">
<button onclick=${() => { startPluginManager() }} class="btn btn-sm btn-secondary ${css.seeAll}">
See all Plugins
<i class="fas fa-plug p-1" ></i>
</button>
</p>
</div> </div>
<div class="resources"> <div class="resources">
<h4>Resources</h4> <h4>Resources</h4>

Loading…
Cancel
Save