Skip to content

Commit 1c55ec1

Browse files
committed
Improve responsive layout of landing page header and quickconvert sections
1 parent f7db4cc commit 1c55ec1

File tree

4 files changed

+37
-19
lines changed

4 files changed

+37
-19
lines changed

public/styles/landingpage/quickconvert.styl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
background #404040
44
padding-bottom 15px
55

6+
.convert-arrow
7+
padding-top 130px
8+
69
.quickConvertCanvas
710
width 388px
8-
max-width 388px
11+
max-width 100%
912
height 300px
1013
max-heigth 300px
1114

12-
.convert-arrow
13-
padding-top 200px
14-
1515
#renderArea1
1616
background-image url('../img/preview_renderArea1.png')
1717

public/styles/landingpage/teaser.styl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,30 @@ header
22
h1
33
font-weight bold
44

5+
h2
6+
font-size 1.8em
7+
8+
.container
9+
max-width 900px
10+
11+
.row
12+
display flex
13+
flex-wrap nowrap
14+
align-items center
15+
@media (max-width: 767px)
16+
flex-wrap wrap
17+
518
.pitch
619
margin-top 4em
20+
flex 1 1 auto
721

822
#makey
923
background url('../img/makey-assembled.png')
24+
background-size contain
25+
background-repeat no-repeat
1026
width 355px
1127
height 453px
28+
flex 0 0 auto
1229
&:hover
1330
background url('../img/makey-disassembled.png')
1431

views/landingpage/quickconvert.jade

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
section.quickConvert
22
.container
33
.row
4-
.col-lg-5.text-center
4+
.col-lg-5.col-md-6.col-sm-6.col-xs-12.text-center
55
h3
66
center Original Model
77
canvas#renderArea1.quickConvertCanvas(touch-action="none")
8-
.col-lg-2.text-center.convert-arrow
8+
.col-lg-2.hidden-md.hidden-sm.hidden-xs.text-center.convert-arrow
99
svg(xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24' width='120' height='64' fill='white')
1010
path(d='M28 4l-1.41 1.41L32.17 11H4v2h28.17l-5.58 5.59L28 20l8-8z')
11-
.col-lg-5.text-center
11+
.col-lg-5.col-md-6.col-sm-6.col-xs-12.text-center
1212
h3
1313
center With LEGO Bricks
1414
canvas#renderArea2.quickConvertCanvas(touch-action="none")

views/landingpage/teaser.jade

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
header
22
.container
3-
.col-lg-8.pitch
4-
h1 Brickify
5-
h2 3D-Printing + LEGO = Faster Prototyping
3+
.row
4+
.col-sm-8.pitch
5+
h1 Brickify
6+
h2 3D-Printing + LEGO = Faster Prototyping
67

7-
.drop
8-
label#loadButton.btn.btn-primary.dropper(for='fileInput')
9-
img#spinner(src='./img/spinner.gif')
8+
.drop
9+
label#loadButton.btn.btn-primary.dropper(for='fileInput')
10+
img#spinner(src='./img/spinner.gif')
1011

11-
input#fileInput(
12-
type='file'
13-
accept='.stl'
14-
style='display: none'
15-
)
12+
input#fileInput(
13+
type='file'
14+
accept='.stl'
15+
style='display: none'
16+
)
1617

17-
#makey.col-lg-4
18+
#makey.col-sm-4

0 commit comments

Comments
 (0)