Skip to content

Commit b138763

Browse files
committed
Merge branch 'sgratzl/tuneimage' into sgratzl/news
2 parents 202bf0c + d62f334 commit b138763

File tree

5 files changed

+42
-6
lines changed

5 files changed

+42
-6
lines changed
-67 Bytes
Loading

themes/delphi/assets/css/pages/_landing.scss

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,28 @@ $carousel-height: 500px;
6262
padding-top: 2rem;
6363
padding-bottom: 2rem;
6464
}
65+
6566
.landing-gray-area {
6667
padding-top: 3rem;
67-
padding-bottom: 3rem;
68+
padding-bottom: 1rem;
6869
background-color: #eee;
6970
}
71+
7072
.landing-entry {
7173
line-height: 48px;
74+
margin-bottom: 2rem;
75+
7276
.inline-svg-icon {
7377
font-size: x-large;
7478
}
79+
7580
h2 {
7681
font-weight: 600;
7782
font-size: 14px;
7883
letter-spacing: 3px;
7984
text-transform: uppercase;
8085
}
86+
8187
p {
8288
font-weight: 500;
8389
font-size: 28px;
@@ -99,6 +105,7 @@ $carousel-height: 500px;
99105

100106
.entry-image {
101107
width: 100%;
108+
102109
img {
103110
max-width: 100%;
104111
max-height: 100%;
@@ -108,6 +115,33 @@ $carousel-height: 500px;
108115
}
109116
}
110117

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+
111145
.latest-news {
112146
padding: 0 50px;
113147
}

themes/delphi/layouts/landing.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h2>Our Team</h2>
2222
{{ partial "arrow-link.html" (dict "link" (relref . "team") "alt" "View all") }}
2323
</div>
2424
<div class="landing-entry grid-8-12">
25-
<div class="entry-image">
25+
<div class="entry-image landing-aspect-2-1">
2626
<img src="{{ "/images/landing-page/API-image.jpg" | relURL }}" alt="API Image" width="288" height="296" />
2727
</div>
2828
<h2>Our API</h2>

themes/delphi/layouts/partials/landing/latest-card.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ <h3 class="uk-card-title">
99
</h3>
1010
</div>
1111
<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") }}
1513
</div>
1614
</div>

themes/delphi/layouts/partials/landing/latest-news.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ <h2 class="uk-text-center">Latest News</h2>
66
{{ end }}
77
{{ $items := apply (.Site.GetPage "/blog").Pages "partial" "latest-blog" "." }}
88

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+
913
{{ $top := 6 }}
1014

1115
<div class="uk-position-relative" tabindex="-1" uk-slider>
1216
<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">
1418
{{ range first $top (sort $items "date" "desc") }}
1519
<li>
1620
{{ partial "landing/latest-card.html" . }}

0 commit comments

Comments
 (0)