File tree Expand file tree Collapse file tree 5 files changed +42
-6
lines changed
static/images/landing-page Expand file tree Collapse file tree 5 files changed +42
-6
lines changed Original file line number Diff line number Diff line change @@ -62,22 +62,28 @@ $carousel-height: 500px;
62
62
padding-top : 2rem ;
63
63
padding-bottom : 2rem ;
64
64
}
65
+
65
66
.landing-gray-area {
66
67
padding-top : 3rem ;
67
- padding-bottom : 3 rem ;
68
+ padding-bottom : 1 rem ;
68
69
background-color : #eee ;
69
70
}
71
+
70
72
.landing-entry {
71
73
line-height : 48px ;
74
+ margin-bottom : 2rem ;
75
+
72
76
.inline-svg-icon {
73
77
font-size : x-large ;
74
78
}
79
+
75
80
h2 {
76
81
font-weight : 600 ;
77
82
font-size : 14px ;
78
83
letter-spacing : 3px ;
79
84
text-transform : uppercase ;
80
85
}
86
+
81
87
p {
82
88
font-weight : 500 ;
83
89
font-size : 28px ;
@@ -99,6 +105,7 @@ $carousel-height: 500px;
99
105
100
106
.entry-image {
101
107
width : 100% ;
108
+
102
109
img {
103
110
max-width : 100% ;
104
111
max-height : 100% ;
@@ -108,6 +115,33 @@ $carousel-height: 500px;
108
115
}
109
116
}
110
117
118
+ .landing-aspect-2-1 {
119
+ padding-top : 50% * 6 / 4 * 1.025 ;
120
+ position : relative ;
121
+
122
+ > img {
123
+ position : absolute ;
124
+ left : 0 ;
125
+ top : 0 ;
126
+ width : 100% ;
127
+ height : 100% ;
128
+ }
129
+ }
130
+
131
+ @media screen and (max-width : $breakpoint-small ) {
132
+ .landing-aspect-2-1 {
133
+ padding-top : 0 ;
134
+ height : 200px ;
135
+ text-align : center ;
136
+
137
+ > img {
138
+ position : relative ;
139
+ width : initial ;
140
+ height : initial ;
141
+ }
142
+ }
143
+ }
144
+
111
145
.latest-news {
112
146
padding : 0 50px ;
113
147
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ <h2>Our Team</h2>
22
22
{{ partial "arrow-link.html" (dict "link" (relref . "team") "alt" "View all") }}
23
23
</ div >
24
24
< div class ="landing-entry grid-8-12 ">
25
- < div class ="entry-image ">
25
+ < div class ="entry-image landing-aspect-2-1 ">
26
26
< img src ="{{ "/images/landing-page/API-image.jpg" | relURL }}" alt="API Image" width="288" height="296" />
27
27
</ div >
28
28
< h2 > Our API</ h2 >
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ <h3 class="uk-card-title">
9
9
</ h3 >
10
10
</ div >
11
11
< div class ="uk-card-footer ">
12
- < a href ="{{ .link | relURL }} " title ="Learn more "
13
- > Learn more {{ partial "font-awesome.html" "solid/long-arrow-alt-right" }}</ a
14
- >
12
+ {{ partial "arrow-link.html" (dict "link" .link "alt" "Learn more") }}
15
13
</ div >
16
14
</ div >
Original file line number Diff line number Diff line change @@ -6,11 +6,15 @@ <h2 class="uk-text-center">Latest News</h2>
6
6
{{ end }}
7
7
{{ $items := apply (.Site.GetPage "/blog").Pages "partial" "latest-blog" "." }}
8
8
9
+ <!-- {range first 0 ((.Site.GetPage "/news").Resources.ByType "page") }
10
+ { $items = $items | append (dict "source" "news" "title" .Title "date" .PublishDate "link" (relref $currentPage "flu#updates" ) ) }
11
+ {end} -->
12
+
9
13
{{ $top := 6 }}
10
14
11
15
< div class ="uk-position-relative " tabindex ="-1 " uk-slider >
12
16
< div class ="uk-slider-container ">
13
- < ul class ="uk-slider-items uk-child-width-1-2@s uk-child-width-1-4 @m uk-grid uk-grid-match ">
17
+ < ul class ="uk-slider-items uk-child-width-1-2@s uk-child-width-1-3 @m uk-grid uk-grid-match ">
14
18
{{ range first $top (sort $items "date" "desc") }}
15
19
< li >
16
20
{{ partial "landing/latest-card.html" . }}
You can’t perform that action at this time.
0 commit comments