Skip to content

Commit b950bb0

Browse files
authored
Merge pull request #128 from piotrpdev/fix/styles
2 parents 846ce72 + d8b84dc commit b950bb0

File tree

3 files changed

+66
-8
lines changed

3 files changed

+66
-8
lines changed

content/index.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ excerpt: Lets Students, Educators and Professional Developers create, edit and r
1212
feature_row:
1313
- image_path: /assets/images/carbon-deps.png
1414
title: "Embedded Dependencies"
15-
excerpt: "Automatic fetching of any dependency using `//DEPS group:artifact:version`
16-
or `@Grab` annotations directly from the source code."
15+
excerpt: "Automatic fetching of any dependency using <code>//DEPS group:artifact:version</code>
16+
or <code>@Grab</code> annotations directly from the source code."
1717
- image_path: /assets/images/carbon-install.png
1818
title: "Install & Run Anywhere"
1919
excerpt: "JBang installs and run on Windows, Linux, macOS, Docker and Github Actions as well as usable from Maven and Gradle plugins"
@@ -29,7 +29,7 @@ feature_row2:
2929
excerpt: "You can use any Java, from version 8 and up"
3030
- image_path: /assets/images/feature-appstore.png
3131
title: "JBang AppStore"
32-
excerpt: "Use the JBang AppStore to find others application or publish your own from a git backed `jbang-catalog.json`"
32+
excerpt: "Use the JBang AppStore to find others application or publish your own from a git backed <code>jbang-catalog.json</code>"
3333
url: "/appstore"
3434
btn_label: "AppStore"
3535
btn_class: "btn--primary"
@@ -46,9 +46,9 @@ feature_row2:
4646

4747
{#include partials/feature_row feature_row=page.data['feature_row'] /}
4848

49-
<div class="feature__wrapper">
49+
<div class="feature__wrapper twitter-wrapper">
5050
{#twitter cdi:testimonials.list.random align="center" width=550 /}
51-
<center><a href="/testimonials" class="btn btn--primary">All Testimonials</a></center>
51+
<center><a href="/testimonials" class="btn btn--cta btn--primary">All Testimonials</a></center>
5252
</div>
5353

5454
{#include partials/feature_row feature_row=page.data['feature_row2'] /}
@@ -57,5 +57,15 @@ feature_row2:
5757

5858
Below is the latest talk about JBang: "jbang - Unleash the power of Java"
5959

60-
<iframe width="1280" height="720" src="https://youtube.com/embed/cpKwBbz1sf0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
61-
</iframe>
60+
<div class="fluid-width-video-wrapper" style="width: 100%; position: relative; padding-bottom: 56.25%; box-sizing: border-box;">
61+
<iframe
62+
style="position: absolute; top: 0; left: 0; height: 100%; width: 100%"
63+
width="1280"
64+
height="720"
65+
src="https://youtube.com/embed/cpKwBbz1sf0"
66+
frameborder="0"
67+
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
68+
allowfullscreen
69+
>
70+
</iframe>
71+
</div>

src/main/resources/web/app/main.scss

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,51 @@ a:hover {
3838
@import "minimal-mistakes"; // main partials
3939

4040
@import "https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css";
41+
42+
.layout--splash {
43+
input#search-input {
44+
margin-left: 1rem;
45+
margin-bottom: .1em;
46+
}
47+
48+
.feature__wrapper {
49+
margin: 0;
50+
padding: 2em 0;
51+
52+
a.btn--cta {
53+
margin-top: 1.25em
54+
}
55+
56+
.twitter-tweet {
57+
margin-top: 0 !important;
58+
margin-bottom: 0 !important;
59+
}
60+
61+
&:not(.twitter-wrapper) {
62+
@include breakpoint($small) {
63+
display: grid;
64+
grid-template-columns: repeat(3, 1fr);
65+
gap: 1em;
66+
67+
.feature__item {
68+
display: grid;
69+
grid-template-rows: subgrid;
70+
grid-row: span 2;
71+
72+
width: 100%;
73+
74+
.archive__item {
75+
display: grid;
76+
grid-template-rows: subgrid;
77+
grid-row: span 2;
78+
79+
&-teaser {
80+
align-self: center;
81+
}
82+
}
83+
}
84+
}
85+
}
86+
}
87+
}
88+

templates/partials/feature_row.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h2 class="archive__item-title">{f.title.raw}</h2>
1818
<div class="archive__item-excerpt">{f.excerpt.raw} {! | markdownify !}</div>
1919
{/if}
2020
{#if f.containsKey('url')}
21-
<p><a href="{f.url}" class="btn {f.btn_class}">{f.btn_label ?: "Learn More"}</a></p>
21+
<a href="{f.url}" class="btn btn--cta {f.btn_class}">{f.btn_label ?: "Learn More"}</a>
2222
{/if}
2323
</div>
2424
</div>

0 commit comments

Comments
 (0)