File tree 13 files changed +94
-35
lines changed
13 files changed +94
-35
lines changed Original file line number Diff line number Diff line change 7
7
/// @group base
8
8
9
9
$header-height : 80vh ;
10
+ $header-height-mobile : $header-height / 1.5 ;
10
11
11
12
@keyframes headerAnimation {
12
13
from {
@@ -19,6 +20,18 @@ $header-height: 80vh;
19
20
}
20
21
}
21
22
23
+ @keyframes headerAnimationMobile {
24
+ from {
25
+ height : 100vh ;
26
+ background : $white ;
27
+ }
28
+ to {
29
+ height : $header-height / 1.5 ;
30
+ background : $black ;
31
+ }
32
+ }
33
+
34
+
22
35
.landing {
23
36
display : block ;
24
37
@@ -27,6 +40,10 @@ $header-height: 80vh;
27
40
color : $white ;
28
41
height : $header-height ;
29
42
@include vertical-inner ;
43
+ @include media-breakpoint-down (xs) {
44
+ padding-top : 65px ;
45
+ height : $header-height-mobile ;
46
+ }
30
47
}
31
48
32
49
& __withIntro {
@@ -37,6 +54,9 @@ $header-height: 80vh;
37
54
animation-duration : 2s ;
38
55
animation-delay : 2s ;
39
56
animation-fill-mode : backwards ;
57
+ @include media-breakpoint-down (xs) {
58
+ animation-name : headerAnimationMobile;
59
+ }
40
60
}
41
61
42
62
}
Original file line number Diff line number Diff line change 4
4
padding-top : $spacer-xl * 2 ;
5
5
padding-bottom : $spacer-xl ;
6
6
7
+ @include media-breakpoint-down (xs) {
8
+ padding-top : $spacer-xl ;
9
+ }
10
+
7
11
a {
8
12
color : $black !important ;
9
13
}
12
16
margin-bottom : 4px ;
13
17
}
14
18
19
+ // nav {
20
+ // border: 1px solid red;
21
+ // @include media-breakpoint-down(xs) {
22
+ // margin-left: inherit !important;
23
+ // margin-right: auto !important;
24
+ // }
25
+ // }
26
+
15
27
}
Original file line number Diff line number Diff line change 6
6
left : 0 ;
7
7
width : 100% ;
8
8
padding : $spacer ;
9
- @include media-breakpoint-down (xs) {
10
- padding-left : $spacer-lg ;
11
- }
12
9
}
Original file line number Diff line number Diff line change @@ -36,9 +36,11 @@ $logo-font-size: 102px;
36
36
font-size : $logo-font-size / 1.25 ;
37
37
}
38
38
@include media-breakpoint-down (xs) {
39
- font-size : $logo-font-size / 4 ;
39
+ font-size : $logo-font-size / 2.25 ;
40
+ line-height : 1.05 ;
40
41
padding-left : $grid-gutter-width ;
41
42
padding-right : $grid-gutter-width ;
43
+ margin-bottom : 12px ;
42
44
}
43
45
}
44
46
@@ -51,7 +53,7 @@ $logo-font-size: 102px;
51
53
text-transform : lowercase ;
52
54
@include media-breakpoint-down (xs) {
53
55
padding-left : 5px ;
54
- font-size : $h4 -font-size ;
56
+ font-size : $h6 -font-size ;
55
57
}
56
58
}
57
59
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ class Nav extends React.Component {
60
60
exact
61
61
// isActive={this.isActive}
62
62
className = { `${ styles . navLink } ` }
63
- activeClassName = { `${ styles . navLink__active } ` }
63
+ activeClassName = { `${ styles . navLink__active } d-none d-md-block ` }
64
64
onClick = { ( e ) => this . scrollToProjects ( e ) }
65
65
>
66
66
< LocaleString string = { 'Selected Work' } />
@@ -122,7 +122,7 @@ class Nav extends React.Component {
122
122
123
123
return (
124
124
< nav className = { `${ styles . nav } d-flex` } >
125
- < ul className = 'nav ml-md- auto' >
125
+ < ul className = 'nav ml-auto' >
126
126
127
127
{ /* root url */ }
128
128
{ ( ! this . props . credits && ! this . props . social ) &&
Original file line number Diff line number Diff line change 23
23
padding : 0 ;
24
24
opacity : 0.5 ;
25
25
transition : all 0.25s ;
26
+ & ::first-letter {
27
+ text-transform : capitalize ;
28
+ }
26
29
& :hover {
27
30
opacity : 1 ;
28
31
}
Original file line number Diff line number Diff line change 6
6
7
7
& __header {
8
8
margin-bottom : $spacer-xl ;
9
+ @include media-breakpoint-down (xs) {
10
+ h1 {
11
+ font-size : $h2-font-size ;
12
+ }
13
+ }
9
14
}
10
15
11
16
}
Original file line number Diff line number Diff line change @@ -12,24 +12,19 @@ class Projects extends Component {
12
12
constructor ( props ) {
13
13
super ( props )
14
14
this . state = {
15
- filterByProjectTypeID : null ,
16
- hasChanged : false
15
+ filterByProjectTypeID : null
17
16
}
18
17
this . changeFilterSelection = this . changeFilterSelection . bind ( this )
19
18
}
20
19
21
20
componentDidUpdate ( prevProps , prevState ) {
22
21
// console.log(prevProps, prevState);
23
- if ( prevState . filterByProjectTypeID != this . state . filterByProjectTypeID ) {
24
- this . setState ( {
25
- hasChanged : true
26
- } )
27
- }
22
+ // if (prevState.filterByProjectTypeID != this.state.filterByProjectTypeID) {
23
+ // this.setState({
24
+ // hasChanged: true
25
+ // })
26
+ // }
28
27
}
29
-
30
- // componentWillUpdate() {
31
-
32
- // }
33
28
34
29
list ( ) {
35
30
if ( this . props . data && this . props . data . edges ) {
@@ -108,16 +103,9 @@ class Projects extends Component {
108
103
109
104
{ /* all work */ }
110
105
< aside className = "col-12 col-md-8" >
111
- { this . state . hasChanged &&
112
- < Fade delay = { 250 } >
113
- { this . list ( ) }
114
- </ Fade >
115
- }
116
- { ! this . state . hasChanged &&
117
- < React . Fragment >
118
- { this . list ( ) }
119
- </ React . Fragment >
120
- }
106
+ < React . Fragment >
107
+ { this . list ( ) }
108
+ </ React . Fragment >
121
109
</ aside >
122
110
123
111
</ div >
Original file line number Diff line number Diff line change 10
10
.project_preview {
11
11
margin-bottom : 10px ;
12
12
13
+ picture {
14
+ @include media-breakpoint-down (xs) {
15
+ @include snap-to-side ;
16
+ width : 100vw ;
17
+ }
18
+ }
19
+
13
20
& __preview_image {
14
21
img {
15
22
width : 100% ;
27
34
padding : $spacer 0 ;
28
35
transition : padding 0.5s ;
29
36
position : relative ;
37
+
30
38
}
31
39
32
40
& __arrow {
88
96
89
97
.projects_sidebar {
90
98
position : relative ;
91
- min-height : 120vh ;
99
+ @include media-breakpoint-up (md) {
100
+ min-height : 120vh ;
101
+ }
92
102
h3 {
93
103
line-height : 1 ;
94
104
@include media-breakpoint-down (xs) {
95
105
font-size : $h2-font-size ;
106
+ text-align : center ;
107
+
96
108
}
97
109
}
98
110
}
104
116
/// @group projects
105
117
106
118
.projects__filters {
107
- // border: 1px solid red;
119
+
108
120
a {
109
121
display : block ;
110
122
padding : $spacer-xs 0 ;
113
125
color : $gray-500 ;
114
126
text-decoration : none ;
115
127
}
128
+ @include media-breakpoint-down (xs) {
129
+ text-align : center ;
130
+ }
116
131
}
117
132
118
133
& __link_active {
Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ class ReelPlayer extends React.Component {
124
124
< div className = { styles . reel__overlay } onClick = { ( e ) => this . setFullVideo ( e ) } >
125
125
< div className = { styles . reel__overlay__inner } >
126
126
{ /* call to action with proximity detection */ }
127
- < h4 ref = { this . props . proximityRef } className = { `${ styles . reel__label } d-none d-md-inline-block ` } >
127
+ < h4 ref = { this . props . proximityRef } className = { `${ styles . reel__label } ` } >
128
128
< Fade bottom delay = { 350 } distance = { "50%" } >
129
129
< div >
130
130
< img alt = "play icon" src = { playSVG } />
Original file line number Diff line number Diff line change 10
10
transition : height 1.25s ;
11
11
12
12
@include media-breakpoint-down (xs) {
13
- height : 250 px ;
13
+ height : 150 px ;
14
14
}
15
15
16
16
& __label {
23
23
font-size : $h2-font-size ;
24
24
font-family : $font-family-sans-serif ;
25
25
z-index : 100 ;
26
+ @include media-breakpoint-down (xs) {
27
+ font-size : $h3-font-size ;
28
+ }
26
29
img {
27
30
width : 20px ;
28
31
margin-right : 15px ;
29
32
position : relative ;
30
33
top : -4px ;
34
+ @include media-breakpoint-down (xs) {
35
+ width : 14px ;
36
+ margin-right : 10px ;
37
+ }
31
38
}
32
39
hr {
33
40
border-color : $white ;
39
46
& :hover {
40
47
hr {
41
48
width : 100% ;
42
-
43
- // transform: scaleX(1)
44
49
}
45
50
}
46
51
}
Original file line number Diff line number Diff line change 18
18
}
19
19
}
20
20
21
+ h2 {
22
+ @include media-breakpoint-down (xs) {
23
+ font-size : $h3-font-size ;
24
+ }
25
+ }
26
+
27
+ // h3 {
28
+ // @include media-breakpoint-down(xs) {
29
+ // font-size: $h3-font-size;
30
+ // }
31
+ // }
32
+
21
33
p {
22
34
font-size : $font-size-lg ;
23
35
line-height : 1.5 ;
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const translations = {
16
16
'Cinematographer' : 'Directeur photo' ,
17
17
'Selected Work' : 'Projets sélectionnés' ,
18
18
'Play Reel' : 'Jouer Démo' ,
19
- 'selected_work_block' : 'Projets <span class="is-sans-serif d-block">sélectionnés</span>' ,
19
+ 'selected_work_block' : 'Projets <span class="is-sans-serif d-md- block">sélectionnés</span>' ,
20
20
'Credits' : 'Crédits' ,
21
21
}
22
22
}
You can’t perform that action at this time.
0 commit comments