Skip to content

Commit

Permalink
Initial implementation of keep-in-touch section
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Kele <[email protected]>
  • Loading branch information
raulkele committed Nov 25, 2022
1 parent f155c37 commit 5df2294
Show file tree
Hide file tree
Showing 2 changed files with 83 additions and 19 deletions.
52 changes: 43 additions & 9 deletions docs/stylesheets/custom.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* General css */
.default-bg {
background: none!important;
background-color: var(--md-default-bg-color)!important;
Expand All @@ -14,6 +15,8 @@

}

/* Card related css */

.centered-content-grid ul.centered-content-grid__list {
display: flex;
flex-flow: row wrap;
Expand All @@ -22,29 +25,60 @@
margin: 0;
}

.centered-content-grid ul.centered-content-grid__list > li.centered-content-grid__item{
.centered-content-grid ul.centered-content-grid__list > li.centered-content-grid__item {
display: flex;
flex: 1 0 48%;
gap: 0.6rem;
margin: 0;
}

.centered-content-grid ul.centered-content-grid__list > li.centered-content-grid__item div.item_content{
color: var(--md-typeset-color)!important;
}


.centered-content-grid ul.centered-content-grid__list > li.centered-content-grid__item div.item_content h2.card_title{
.centered-content-grid ul.centered-content-grid__list > li.centered-content-grid__item div.item_content h2.card_title {
font-weight: 700;
margin-top: 0.175em;
}

.centered-content-grid ul.centered-content-grid__list > li.centered-content-grid__item div.content_icon{
.centered-content-grid ul.centered-content-grid__list > li.centered-content-grid__item div.content_icon {
fill: currentcolor;
background-color: var(--md-default-fg-color--lightest);
border-radius: 100%;
flex-shrink: 0;
height: 2.2rem;
padding: 0.55rem 0.4rem 0.4rem 0.4rem;
width: 2.2rem;
}

/* Column related css */
.content-container-centered div.centered-content-column-wrapper {
margin-bottom: 0;
padding: 5.2rem 0;
}

.content-container-centered div.centered-content-column-wrapper .content-container-column {
font-weight: 400;
}

@media screen and (min-width: 60em) {
.content-container-centered div.centered-content-column-wrapper {
display:flex;
flex-wrap: nowrap;
gap: 6.4rem;
}
.content-container-centered div.centered-content-column-wrapper .content-container-column {
margin-top: 0;
}

.content-container-centered div.centered-content-column-wrapper .content-container-column:first-child {
flex: 2 0;
}

.content-container-centered div.centered-content-column-wrapper .content-container-column:last-child {
flex: 1 0;
}
}


/* Custom rulesets based on material theme */
.md-button.md-button--custom {
background-color: var(--md-default-fg-color--lighter);
border-color: var(--md-default-fg-color--lighter);
color: var(--md-primary-bg-color);
}
50 changes: 40 additions & 10 deletions material/overrides/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,25 @@ <h1>OCI-native Image Builder</h1>
<div class="content_icon">
{% include ".icons/fontawesome/solid/download.svg" %}
</div>
<div class="item_content">
<div>
<h2 class="card_title">Single Binary</h2>
<p>One statically built binary for simplified download and install with no additional dependencies or services.</p>
</div>
</div>
</li>
<li class="centered-content-grid__item md-typeset">
<div class="content_icon">
{% include ".icons/fontawesome/solid/repeat.svg" %}
</div>
<div class="item_content">
</div>
<div>
<h2 class="card_title">Repeatable</h2>
<p>Hermetically sealed environment for image builds using LXC containers so that builds are repeatable without side-effects.</p>
</div>
</li>
<li class="centered-content-grid__item md-typeset">
<div class="content_icon">
{% include ".icons/fontawesome/solid/lock.svg" %}
</div>
<div class="item_content">
</div>
<div>
<h2 class="card_title">Unprivileged</h2>
<p>Build using user namespaces and avoid privileges on host.</p>
</div>
Expand All @@ -58,16 +58,16 @@ <h2 class="card_title">Unprivileged</h2>
<div class="content_icon">
{% include ".icons/fontawesome/solid/forward.svg" %}
</div>
<div class="item_content">
<div>
<h2 class="card_title">Incremental</h2>
<p>Build only the images necessary and rebuild only if any input changed.</p>
</div>
</li>
<li class="centered-content-grid__item md-typeset">
<div class="content_icon">
{% include ".icons/fontawesome/brands/github.svg" %}
</div>
<div class="item_content">
</div>
<div>
<h2 class="card_title">GitHub Action</h2>
<p>Integrated with GitHub as a build-and-push <a href="https://github.com/marketplace/actions/stacker-build-and-push-action">action</a>.</p>
</div>
Expand All @@ -76,7 +76,7 @@ <h2 class="card_title">GitHub Action</h2>
<div class="content_icon">
{% include ".icons/fontawesome/brands/github-alt.svg" %}
</div>
<div class="item_content">
<div>
<h2 class="card_title">Open source</h2>
<p>Released as an open source project under Apache2 License.</p>
</div>
Expand All @@ -86,6 +86,36 @@ <h2 class="card_title">Open source</h2>
</div>
</div>
</section>
<section class="tx-container default-bg">
<div class="md-grid md-typeset">
<div class="content-container-centered">
<div class="centered-content-column-wrapper">
<div class="content-container-column">
<h1>Keep in touch left side title</h1>
<div class="column-content">
<!-- Paragraphs can be added as desired -->
<p>
By joining the Insiders program, you'll get immediate access to the latest features while also helping support the ongoing development of Material for MkDocs.
hanks to our awesome sponsors, this project is actively maintained and kept in good shape.
</p>
<p>
Together, we can build documentation that simply works!
</p>
<p><a class="md-button md-button--custom">Link to something else</a></p>
</div>
</div>
<div class="content-container-column">
<h1>Right side title</h1>
<div class="column-content">
<!-- Paragraphs can be added as desired -->
<p>First paragraph</p>
<p>Second paragraph</p>
</div>
</div>
</div>
</div>
</div>
</section>
{% endblock %}
{% block content %}{% endblock %}
{% block footer %}
Expand Down

0 comments on commit 5df2294

Please sign in to comment.