diff --git a/content/index.md b/content/index.md index e88baa0bb..f0299a86d 100644 --- a/content/index.md +++ b/content/index.md @@ -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 //DEPS group:artifact:version + or @Grab 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" @@ -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 jbang-catalog.json" url: "/appstore" btn_label: "AppStore" btn_class: "btn--primary" @@ -46,9 +46,9 @@ feature_row2: {#include partials/feature_row feature_row=page.data['feature_row'] /} -
+
{#twitter cdi:testimonials.list.random align="center" width=550 /} -
All Testimonials
+
All Testimonials
{#include partials/feature_row feature_row=page.data['feature_row2'] /} @@ -57,5 +57,15 @@ feature_row2: Below is the latest talk about JBang: "jbang - Unleash the power of Java" - +
+ +
diff --git a/src/main/resources/web/app/main.scss b/src/main/resources/web/app/main.scss index f817fa101..4f1d63c20 100644 --- a/src/main/resources/web/app/main.scss +++ b/src/main/resources/web/app/main.scss @@ -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; + } + } + } + } + } + } +} + diff --git a/templates/partials/feature_row.html b/templates/partials/feature_row.html index 146e2c062..890554108 100644 --- a/templates/partials/feature_row.html +++ b/templates/partials/feature_row.html @@ -18,7 +18,7 @@

{f.title.raw}

{f.excerpt.raw} {! | markdownify !}
{/if} {#if f.containsKey('url')} -

{f.btn_label ?: "Learn More"}

+ {f.btn_label ?: "Learn More"} {/if}