forked from kubernetes/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve announcements implementation
Signed-off-by: Celeste Horgan <celeste@cncf.io> Co-authored-by: Tim Bannister <tim@scalefactory.com>
- Loading branch information
1 parent
3b6e9e0
commit 9caa83d
Showing
11 changed files
with
81 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{{ define "main" }} | ||
<link rel="stylesheet" type="text/css" href="{{ "css/newcommunity.css" | relURL }}"> | ||
{{ .Content }} | ||
{{ end }} | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
{{ if .Param "announcement"}} | ||
<section id="announcement"> | ||
<main> | ||
<div class="content announcement"> | ||
<h3> | ||
{{ .Param "announcement_message" | markdownify }} | ||
</h3> | ||
</div> | ||
</main> | ||
</section> | ||
{{ end }} | ||
{{ if .Page.Param "announcement" }} | ||
<section lang="en" id="announcement" style="background-color:{{ .Page.Param "announcement_bg" }}"> | ||
<main> | ||
<div class="content announcement main-section"> | ||
|
||
<h4 class="announcement"> | ||
{{ .Page.Param "announcement_title" | markdownify }} | ||
</h4> | ||
<p class="announcement">{{ .Page.Param "announcement_message_compact" | markdownify }}</p> | ||
|
||
</div> | ||
</main> | ||
</section> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{ if .Page.Param "announcement" }} | ||
<section lang="en" id="fp-announcement" style="background-color:{{ .Page.Param "announcement_bg" }}"> | ||
<main> | ||
<div class="content announcement main-section"> | ||
|
||
<h3> | ||
{{ .Page.Param "announcement_title" | markdownify }} | ||
</h3> | ||
<p>{{ .Page.Param "announcement_message_full" | markdownify }}</p> | ||
|
||
</div> | ||
</main> | ||
</section> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,25 @@ | ||
.announcement { | ||
padding: 20px; | ||
margin: 20px 0; | ||
border-radius: 3px; | ||
background-color: #eeeeee; | ||
.announcement.content { | ||
margin-bottom: 0px; | ||
} | ||
|
||
.announcement > p, .gridPage #announcement .content p, .announcement > h4, .announcement > h3 { | ||
color: #ffffff; | ||
} | ||
|
||
#announcement { | ||
padding-top: 75px; | ||
padding-bottom: 25px; | ||
} | ||
|
||
#hero { | ||
padding-top: 40px; | ||
} | ||
|
||
#fp-announcement { | ||
min-height: 30vh; | ||
} | ||
|
||
#fp-announcement main { | ||
margin-top: 125px; | ||
padding-bottom: 35px; | ||
} |