update home page as per internal dicussions

* change promo p to be html safe
* add promo call to action button range which content based
* change working groups section to button range which content based
* retab all scss files

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>
remotes/1691122796531141036/master
Toshaan Bharvani 3 years ago
parent e541722395
commit 294e5b5690

@ -6,7 +6,9 @@ promo:
- Open Developer Community for the POWER Architecture
- <i>“The Most Open and High-Performance Processor Architecture and Ecosystem in the Industry”</i>
- Create the Future with POWER
calltoaction: Join us
calltoaction:
- title: Join us
link: /join/
image: promobg.png
articles:
- header: Open Innovation
@ -44,6 +46,9 @@ sections:
- title: Systems
image: systems.jpg
link: /tags/systems
buttons:
- title: Working Groups
link: /groups/
dark:
- With its open ecosystem approach, active participation from its global membership base and powerful foundation of the POWER ISA, the OpenPOWER Foundation is the premiere organization to facilitate truly effective collaboration and drive meaningful, accessible innovation across the open hardware industry.
subscribe:

@ -4,16 +4,14 @@
main {
&.home {
@media screen and (max-width: $lg) {
padding-top:50px;
padding-top: 50px;
padding-bottom: 0;
}

@media screen and (min-width: $lg) and (max-width: $xl) {
padding-top:70px;
padding-top: 70px;
}
}
}

.post__article {
position: relative;
&:not(:last-child) {
@ -38,11 +36,9 @@ main {
&._dark {
color: #fff;
background-color: #1b1c1f;

@media screen and (max-width: $lg) {
padding: 3.5rem 0;
}
@media screen and (min-width: $lg) and (max-width: $xl) {
padding: 4.4rem 0;
}
@ -53,23 +49,18 @@ main {
}
&__title {
margin-bottom: 1em;

@media screen and (max-width: $lg) {
margin-top: 0.6em;
}
@media screen and (min-width: $lg) and (max-width: $xl) {
margin-top: 0.8em;
}
}
&__form {
margin-top: 4.1em;

@media screen and (max-width: $lg) {
margin-top: 2em;
}
@media screen and (min-width: $lg) and (max-width: $xl) {
margin-top: 3em;
}
@ -81,4 +72,4 @@ main {
border-style: solid none;
border-color: #1b1c1f;
}
}
}

@ -3,13 +3,11 @@
position: relative;
padding-top: 150px;
@media screen and (max-width: $lg) {
min-height:460px;
min-height: 460px;
}

@media screen and (min-width: $lg) and (max-width: $xl) {
min-height:580px;
min-height: 580px;
}

color: #fff;
background-position: 50% 50%;
background-repeat: no-repeat;
@ -27,22 +25,22 @@
&__container {
position: relative;
margin-bottom: 70px;
font-size: 1.5rem;
@media screen and (max-width: $lg) {
padding-top:17.5vw;
padding-top: 17.5vw;
}

@media screen and (min-width: $lg) and (max-width: $xl) {
padding-top:10vw;
padding-top: 10vw;
}

.promo-wrapper {
width: 50%;
@media screen and (max-width: $lg) {
width:100%;
width: 100%;
}

}

p {
margin-bottom: 0;
}
}
&__title {
&._large {

@ -8,9 +8,13 @@
<div class="promo__container container text-center">
<h1>{{ .Param "promo.header" }}</h1>
{{ range .Param "promo.p" }}
<p>{{ . }}</p>
<p>{{ . | safeHTML }}</p>
{{ end }}
<p>
{{ range .Param "promo.calltoaction" }}
<a class="btn btn-light btn-outline-primary" href="{{ .link | relURL }}">{{ .title }}</a>
{{ end }}
<p><a class="btn btn-light btn-outline-primary" href="{{ "/join/" | relURL }}">{{ .Param "promo.calltoaction" }}</a></p>
</p>
</div>
</section>
<main id="main" class="main home" >
@ -50,7 +54,11 @@
<a class="post__title" href="{{ .link }}">{{ .title }}</a>
</article>
{{ end }}
<p class="text-center mt-3 mt-lg-0"><a class="btn btn-outline-primary" href="{{ "/groups/" | relURL }}">Working Groups</a></p>
<p class="text-center mt-3 mt-lg-0">
{{ range .Param "sections.buttons" }}
<a class="btn btn-outline-primary" href="{{ .link | relURL }}">{{ .title }}</a>
{{ end }}
</p>
</div>
</section>
<section class="teaser__section _dark">

Loading…
Cancel
Save