Skip to content

Commit

Permalink
resolves EclipseFdn#29 replace featured story with a static block
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Apr 5, 2021
1 parent 0bbd779 commit b6b8121
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 24 deletions.
3 changes: 1 addition & 2 deletions content/_index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ seo_title: "AsciiDoc Working Group"
headline: "AsciiDoc Working Group"
tagline: "We drive the standardization, adoption, and evolution of the AsciiDoc language. This includes tools for the language and supporting those who use AsciiDoc for software documentation, applications, and services."
date: 2020-09-08T11:00:00-04:00
layout: "single"
hide_breadcrumb: true
hide_sidebar: true
hide_page_title: true
show_featured_story: true
show_featured_story: false
container: "container-fluid"
links: [[href: "https://www.eclipse.org/org/workinggroups/asciidoc-charter.php", text: "Charter"]]
---
Expand Down
7 changes: 7 additions & 0 deletions content/index/purpose.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
block_type: "purpose"
---

== Purpose

Our goal is to support the development, deployment, management, and usage of software documentation, applications, and services that use AsciiDoc.
36 changes: 36 additions & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{{ define "main" }}
<div class="featured-story featured-story-nid-default-featured-story featured-story-light" id="featured-story" data-publish-target="asciidoc">
<div class="container">
<div class="row">
<div class="col-sm-12 col-sm-offset-2 col-md-16 col-md-offset-0 featured-story-block featured-story-block-content match-height-item-by-row featured-container"
style="height: 279px;">
{{ range where .Site.Pages "Params.block_type" "purpose" }}
{{ .Content }}
{{ end }}
{{/*
<h2 class="margin-top-30">Eclipse Foundation Events</h2>
<p>Join the world’s leading technologists and open source leaders at Eclipse Foundation events to share ideas, learn and collaborate.</p>
<ul class="list-inline list-inline-xs-margin">
<li><a class="btn btn-primary" href="https://events.eclipse.org">View Events</a></li>
</ul>
*/}}
</div>
<div class="col-sm-9 col-md-8 featured-side featured-story-block match-height-item-by-row" style="height: 279px;">
<div class="featured-side-content text-center">
<p>
<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 24 24" fill="none" stroke="currentcolor" stroke-width="1" stroke-linecap="round"
stroke-linejoin="round" class="feather feather-mail">
<path d="M4 4h16c1.1.0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1.0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
<polyline points="22,6 12,13 2,6"></polyline>
</svg>
</p>
<p>Sign up to our<br>Mailing list</p>
<p>
<a class="button btn btn-primary" href="https://accounts.eclipse.org/mailing-list/asciidoc-wg">Subscribe</a></p>
</div>
</div>
</div>
</div>
</div>
{{ .Content }}
{{ end }}
20 changes: 15 additions & 5 deletions less/_variables.less
Original file line number Diff line number Diff line change
@@ -1,30 +1,40 @@
/*!
* Copyright (c) 2021 Eclipse Foundation, Inc.
*
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
*
* Contributors:
* Christopher Guindon <[email protected]>
*
*
* SPDX-License-Identifier: EPL-2.0
*/

//== Colors
@brand-primary: #324d7c;
@brand-tertiary: #f15f28;
@brand-secondary: #083194;
@brand-secondary: #083194;
@brand-quaternary: #527bbd;
@brand-quinary: @brand-secondary;
@brand-info: @brand-tertiary;
@brand-info-light: #dbe3f8;
@brand-warning: @brand-primary;

@footer-color: #404040;
@footer-link-color: #404040;
@border-color: #ccc;
@featured-block-list-h2-color: #3d3d3d;

//== Breadcrumb
@breadcrumb-color:#fff;
@breadcrumb-hover:@brand-quaternary;
@breadcrumb-active-color:#fff;


//== Featured story
@featured-story-h2-color: #333;
@featured-story-p-size: 18px;
@featured-story-ad-bg-color: #6b747b;

//== Featured block
@featured-block-list-media-link-bg-color-hover: #d3d3d3;
44 changes: 27 additions & 17 deletions less/styles.less
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/*!
* Copyright (c) 2021 Eclipse Foundation, Inc.
*
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
*
* Contributors:
* Christopher Guindon <[email protected]>
*
*
* SPDX-License-Identifier: EPL-2.0
*/

Expand All @@ -23,11 +23,11 @@
.list-inline {
margin-top: 20px;
}

p {
font-weight: 300;
&:last-child{
margin-bottom:0;
margin-bottom: 0;
}
}

Expand All @@ -41,24 +41,34 @@
}

h1 {
margin-bottom:10px;
margin-top:50px;
margin-bottom: 10px;
margin-top: 50px;
&:after {
display:none;
display: none;
}
}
}
}

.featured-side a{
float:none;
.featured-side a {
float: none;
}

.featured-side .featured-side-content {
color: white;
}

.featured-story {
/* negate container-fluid margin */
margin-left: -15px;
margin-right: -15px;
}

.news-list .news-list-col {
margin-bottom:0;
padding-bottom:0;
margin-bottom: 0;
padding-bottom: 0;
h2.heading-line {
text-align:center;
text-align: center;
border-bottom: 1px solid @border-color;
padding-bottom: 5px;
}
Expand All @@ -76,10 +86,10 @@
}
}

.featured-footer{
margin-top:50px;
.featured-footer {
margin-top: 50px;
}

.logo-eclipse-default-mobile {
max-width:165px;
}
max-width: 165px;
}

0 comments on commit b6b8121

Please sign in to comment.