Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 17 additions & 7 deletions content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ excerpt: Lets Students, Educators and Professional Developers create, edit and r
feature_row:
- image_path: /assets/images/carbon-deps.png
title: "Embedded Dependencies"
excerpt: "Automatic fetching of any dependency using `//DEPS group:artifact:version`
or `@Grab` annotations directly from the source code."
excerpt: "Automatic fetching of any dependency using <code>//DEPS group:artifact:version</code>
or <code>@Grab</code> annotations directly from the source code."
- image_path: /assets/images/carbon-install.png
title: "Install & Run Anywhere"
excerpt: "JBang installs and run on Windows, Linux, macOS, Docker and Github Actions as well as usable from Maven and Gradle plugins"
Expand All @@ -29,7 +29,7 @@ feature_row2:
excerpt: "You can use any Java, from version 8 and up"
- image_path: /assets/images/feature-appstore.png
title: "JBang AppStore"
excerpt: "Use the JBang AppStore to find others application or publish your own from a git backed `jbang-catalog.json`"
excerpt: "Use the JBang AppStore to find others application or publish your own from a git backed <code>jbang-catalog.json</code>"
url: "/appstore"
btn_label: "AppStore"
btn_class: "btn--primary"
Expand All @@ -46,9 +46,9 @@ feature_row2:

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

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

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

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

<iframe width="1280" height="720" src="https://youtube.com/embed/cpKwBbz1sf0" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
</iframe>
<div class="fluid-width-video-wrapper" style="width: 100%; position: relative; padding-bottom: 56.25%; box-sizing: border-box;">
<iframe
style="position: absolute; top: 0; left: 0; height: 100%; width: 100%"
width="1280"
height="720"
src="https://youtube.com/embed/cpKwBbz1sf0"
frameborder="0"
allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen
>
</iframe>
</div>
48 changes: 48 additions & 0 deletions src/main/resources/web/app/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,51 @@ a:hover {
@import "minimal-mistakes"; // main partials

@import "https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css";

.layout--splash {
input#search-input {
margin-left: 1rem;
margin-bottom: .1em;
}

.feature__wrapper {
margin: 0;
padding: 2em 0;

a.btn--cta {
margin-top: 1.25em
}

.twitter-tweet {
margin-top: 0 !important;
margin-bottom: 0 !important;
}

&:not(.twitter-wrapper) {
@include breakpoint($small) {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1em;

.feature__item {
display: grid;
grid-template-rows: subgrid;
grid-row: span 2;

width: 100%;

.archive__item {
display: grid;
grid-template-rows: subgrid;
grid-row: span 2;

&-teaser {
align-self: center;
}
}
}
}
}
}
}

2 changes: 1 addition & 1 deletion templates/partials/feature_row.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h2 class="archive__item-title">{f.title.raw}</h2>
<div class="archive__item-excerpt">{f.excerpt.raw} {! | markdownify !}</div>
{/if}
{#if f.containsKey('url')}
<p><a href="{f.url}" class="btn {f.btn_class}">{f.btn_label ?: "Learn More"}</a></p>
<a href="{f.url}" class="btn btn--cta {f.btn_class}">{f.btn_label ?: "Learn More"}</a>
{/if}
</div>
</div>
Expand Down