Skip to content

Commit 98d9876

Browse files
authored
Merge pull request #520 from simonbaird/add-mission-vision
Add new vision and mission statement to home page
2 parents 19c0136 + c2d1ebd commit 98d9876

7 files changed

Lines changed: 120 additions & 71 deletions

File tree

website/assets/css/custom.css

Lines changed: 67 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,18 @@ body.article {
153153

154154
footer.footer {
155155
/* Cosmetic tweak so the footer color continues to the bottom for short pages */
156-
padding-bottom: 15em;
156+
padding: 12rem 1.5rem 1.5rem 1.5rem;
157+
158+
/* Cosmetic tweak so the footer background is visible at the bottom of the final wavy divider */
159+
margin-top: -2em;
160+
}
161+
162+
footer.footer p {
163+
font-size: 80%;
164+
opacity: 0.6;
165+
margin: 2rem auto;
166+
text-align: center;
167+
max-width: 35rem;
157168
}
158169

159170
h3.button {
@@ -189,13 +200,6 @@ h3.button {
189200
stroke: white;
190201
}
191202

192-
a.all-downloads {
193-
display: block;
194-
position: absolute;
195-
color: var(--color-gray-30);
196-
padding-left: 1rem;
197-
}
198-
199203
p.big {
200204
font-size: 115%;
201205
}
@@ -446,7 +450,7 @@ p.big {
446450
max-width: var(--doc-max-width--landing);
447451
margin: 2rem auto;
448452
padding: 0 20px 0 20px;
449-
min-height: calc(100vh - 183px);
453+
/* min-height: calc(100vh - 183px); */
450454
}
451455

452456
.hero-header {
@@ -475,15 +479,24 @@ p.big {
475479
}
476480

477481
.hero-intro p.announcement {
478-
margin-top: 2em;
479482
padding: 1em;
480-
border: solid 1px var(--ec-icon-purple);
481-
border-radius: 0.25em;
482483
font-style: italic;
483-
font-size: 90%;
484+
font-size: 75%;
485+
color: var(--ec-icon-purple);
486+
}
487+
488+
.hero-intro p.mission {
489+
padding: 1em;
490+
font-style: italic;
491+
font-size: 130%;
484492
color: var(--ec-icon-purple);
485493
}
486494

495+
.hero-intro p.mission span {
496+
opacity: 0.3;
497+
font-weight: bold;
498+
}
499+
487500
.hero-highlights {
488501
display: grid;
489502
grid-template-columns: auto auto;
@@ -520,29 +533,33 @@ p.big {
520533
line-height: var(--doc-line-height);
521534
}
522535

523-
a.all-downloads{
524-
position:relative!important;
525-
padding:0;
526-
margin: 0;
536+
.#all-downloads {
537+
/* This is hidden to begin with, see 07-download.js */
538+
display: none!important;
527539
}
528540

529-
.hero-links{
530-
display: grid;
531-
grid-template-columns: auto;
532-
grid-template-columns: auto;
541+
.hero-links {
542+
display: flex;
543+
flex-direction: row;
533544
justify-content: center;
545+
align-items: center;
546+
gap: 1rem;
534547
text-align: center;
548+
padding-bottom: 2.5em;
535549
}
536550

537551
.hero-links h3.button {
538552
padding-top: 10px;
539-
margin: 0 auto;
540-
margin-top: 1em;
541-
margin-bottom: 2em;
553+
margin: 1em 0.5em;
542554
}
543555

544-
.hero-links h3.button#download{
545-
margin-bottom: 5px;
556+
.hero-links h3.button a {
557+
white-space: nowrap;
558+
}
559+
560+
.hero-links h3.button:hover {
561+
transform: translateY(-1px);
562+
background-color: var(--ec-icon-purple);
546563
}
547564

548565
.hero h2 {
@@ -590,18 +607,35 @@ a.all-downloads{
590607
}
591608

592609
}
610+
611+
/* Stack the hero-link (download) buttons on small screens */
612+
@media screen and (max-width: 768px) {
613+
.hero-links {
614+
flex-direction: column;
615+
gap: 0.5rem;
616+
}
617+
618+
.hero-links h3.button {
619+
margin: 0.5rem 0;
620+
width: 100%;
621+
max-width: 220px;
622+
text-align: left;
623+
}
624+
}
593625
/* end index page hero section */
594626

595627
/* begin front page divider */
596628
.divider {
597-
min-height: 80px;
629+
min-height: 40px;
630+
background-color: transparent;
631+
opacity: 0.8;
598632
}
599633

600634
.flowing {
601635
display: block;
602636
width: 100%;
603-
height: 60px;
604-
max-height: 60px;
637+
height: 20px;
638+
max-height: 20px;
605639
margin: 0;
606640
z-index: 5;
607641
position: absolute;
@@ -626,31 +660,31 @@ g.parallax4 {
626660
}
627661

628662
.parallax1>use {
629-
animation: move-forever1 10s linear infinite;
663+
animation: move-forever1 14s linear infinite;
630664

631665
&:nth-child(1) {
632666
animation-delay: -2s;
633667
}
634668
}
635669

636670
.parallax2>use {
637-
animation: move-forever2 8s linear infinite;
671+
animation: move-forever2 12s linear infinite;
638672

639673
&:nth-child(1) {
640674
animation-delay: -2s;
641675
}
642676
}
643677

644678
.parallax3>use {
645-
animation: move-forever3 6s linear infinite;
679+
animation: move-forever3 10s linear infinite;
646680

647681
&:nth-child(1) {
648682
animation-delay: -2s;
649683
}
650684
}
651685

652686
.parallax4>use {
653-
animation: move-forever4 4s linear infinite;
687+
animation: move-forever4 8s linear infinite;
654688

655689
&:nth-child(1) {
656690
animation-delay: -2s;

website/assets/js/07-download.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
document.addEventListener('DOMContentLoaded', async () => {
22
const download = document.querySelector('#download a');
3+
const downloadAll = document.querySelector('#all-downloads a');
34
if (!download) {
45
return
56
}
67
try {
7-
const response = await fetch('https://api.github.com/repos/conforma/cli/releases/tags/snapshot');
8+
const response = await fetch('https://api.github.com/repos/conforma/cli/releases/latest');
89
const snapshot = await response.json();
910
const uap = new UAParser();
1011
const os = uap.getOS().name.replace('macOS', 'darwin').toLowerCase();
1112
const arch = uap.getCPU().architecture;
1213
const file = `ec_${os}_${arch}`;
1314
const asset = snapshot.assets.find(a => a.name === file);
1415
if (asset) {
15-
download.parentNode.insertAdjacentHTML('afterend', `<a class="all-downloads" href=${download.href}>(All downloads)</a>`)
16+
// Update the download button href to the user's specific platform/arch
1617
download.href = asset.browser_download_url;
1718
download.title = `${uap.getOS().name} / ${uap.getCPU().architecture}`;
19+
// Unhide the download all button
20+
downloadAll.style.display = 'inline-flex';
1821
}
19-
} catch(e) {
22+
} catch (e) {
2023
// Unable to fetch the releases leave the download link as is
2124
return;
2225
}

website/config/_default/hugo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ languageCode = 'en-us'
33
title = 'Conforma'
44
theme = 'github.com/basil/antora-default-ui-hugo-theme'
55
publishDir = '../public'
6-
copyright = "Red Hat, Inc. All rights reserved."
6+
copyright = 'Red Hat, Inc. All rights reserved. <a href="https://github.com/conforma/conforma.github.io">Source</a>.'
77
relativeURLs = true
88
staticDir = ["static", "antora"]
99
paginate = 12

website/content/_index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
kind: home
33
---
4+
### [{{< icon "arrow-down-circle" >}} Download](https://github.com/conforma/cli/releases/latest){#download .button}
45

5-
### [{{< icon "arrow-down-circle" >}} Download](https://github.com/conforma/cli/releases/tag/snapshot){#download .button}
6+
### [{{< icon "arrow-down-circle" >}} All downloads](https://github.com/conforma/cli/releases/latest){#all-downloads .button}
67

78
### [{{< icon "book-open" >}} Getting Started](docs/user-guide/hitchhikers-guide.html){.button}

website/layouts/_default/contribute.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,29 @@ <h2>Collaboration is Welcomed!</h2>
1818
We encourage you to reach out and be part of our community.
1919
</p>
2020
<p>
21-
If you'd like to report an issue with Conforma (formerly Enterprise Contract), or if you have questions
21+
If you'd like to report an issue with Conforma, or if you have questions
2222
about the code, visit the appropriate GitHub repository:
2323
</p>
2424
<div class="github">
2525
<div class="github-repos">
2626
{{ partial "github-repo.html" (dict
2727
"name" "cli"
28-
"description" "Enterprise Contract command line interface"
28+
"description" "Conforma CLI"
2929
"repo_url" "https://github.com/conforma/cli"
3030
"issue_url" "https://github.com/conforma/cli/issues"
3131
"discussion_url" "https://github.com/conforma/cli/discussions"
3232
) }}
3333

3434
{{ partial "github-repo.html" (dict
3535
"name" "policy"
36-
"description" "Rego policies related to Konflux Enterprise Contract"
36+
"description" "Conforma Policy"
3737
"repo_url" "https://github.com/conforma/policy"
3838
"issue_url" "https://github.com/conforma/policy/issues"
3939
) }}
4040

4141
{{ partial "github-repo.html" (dict
4242
"name" "community"
43-
"description" "A repo for community utilization. If you're unsure where to open an issue, you can use this repository"
43+
"description" "Conforma Community. If you're unsure where to open an issue, use this repository"
4444
"repo_url" "https://github.com/conforma/community"
4545
"issue_url" "https://github.com/conforma/community/issues"
4646
"discussion_url" "https://github.com/conforma/community/discussions"

website/layouts/index.html

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<div class="hero-intro">
2020
<p>Securely verify supply chain artifacts, and enforce policies about how they were built and tested, in a manageable, scalable, and declarative way.</p>
2121

22-
<p class="announcement">Note: Conforma was previously known as "Enterprise Contract", often abbreviated as "EC". Please bear with us as we update the documentation and other resources to use the new name.</p>
2322
</div>
2423

2524
<div class="hero-links">{{ .Content }}</div>
@@ -51,10 +50,32 @@
5150

5251
</div>
5352
</div>
53+
54+
<div class="hero-intro">
55+
<p class="announcement">Note that Conforma was originally known as "Enterprise Contract". You might find it still refered to as "Enterprise Contract", or "EC" in some of the older content on this website.</p>
56+
</div>
57+
58+
<div class="divider">
59+
{{ partial "svg-wave-divider.html"}}
60+
</div>
61+
62+
{{/* Recycling the hero-intro class even though this is not the intro */}}
63+
<div class="hero-intro">
64+
<p class="mission"><span>Vision:</span> A world where every
65+
software supply chain includes robust policy enforcement and secure artifact
66+
verification by default.</p>
67+
68+
<p class="mission"><span>Mission:</span> To create user-friendly,
69+
standards-based tooling to empower software, release, and security engineers to
70+
consistently deliver artifacts that verifiably and transparently meet business,
71+
quality, and security policies.</p>
72+
</div>
73+
5474
<div class="divider">
5575
{{ partial "svg-wave-divider.html"}}
5676
</div>
57-
<div class="blog-excerpts">
77+
78+
<div class="blog-excerpts" style="padding-top: 2em; padding-bottom: 0em;">
5879
<h2>Recently Published</h2>
5980
<article class="doc">
6081
{{ $posts := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
@@ -64,7 +85,7 @@ <h2>Recently Published</h2>
6485

6586
{{/* This div is not really for pagination but the CSS does what we want and also I'm lazy */}}
6687
<div class="pagination-centered">
67-
<div class="pagination pagination-default" style="padding: 3em 0; opacity: 70%;">
88+
<div class="pagination pagination-default" style="padding: 2.5em 0 0 0; opacity: 70%;">
6889
{{/* Note the hard coded url here should match what's in website/config/_default/menu.toml) */}}
6990
<a href="/posts">More articles &hellip;</a>
7091
</div>
Lines changed: 16 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,17 @@
1-
<svg class="flowing"
2-
xmlns="http://www.w3.org/2000/svg"
3-
xmlns:xlink="http://www.w3.org/1999/xlink"
4-
viewBox="0 24 150 28 "
5-
preserveAspectRatio="none">
6-
<defs>
7-
<path id="gentle-wave"
8-
d="M-160 44c30 0
9-
58-18 88-18s
10-
58 18 88 18
11-
58-18 88-18
12-
58 18 88 18
13-
v44h-352z" />
14-
</defs>
15-
<g class="parallax1">
16-
<use xlink:href="#gentle-wave" x="50" y="3"/>
17-
</g>
18-
<g class="parallax2">
19-
<use xlink:href="#gentle-wave" x="50" y="0"/>
20-
</g>
21-
<g class="parallax3">
22-
<use xlink:href="#gentle-wave" x="50" y="9"/>
23-
</g>
24-
<g class="parallax4">
25-
<use xlink:href="#gentle-wave" x="50" y="6"/>
26-
</g>
1+
<svg
2+
class="flowing"
3+
xmlns="http://www.w3.org/2000/svg"
4+
xmlns:xlink="http://www.w3.org/1999/xlink"
5+
viewBox="0 24 150 28"
6+
preserveAspectRatio="none">
7+
<defs>
8+
<path
9+
id="gentle-wave"
10+
d="M-160 44c30 0 58-18 88-18s 58 18 88 18 58-18 88-18 58 18 88 18 v44h-352z"
11+
/>
12+
</defs>
13+
<g class="parallax1"><use xlink:href="#gentle-wave" x="50" y="3"/></g>
14+
<g class="parallax2"><use xlink:href="#gentle-wave" x="50" y="0"/></g>
15+
<g class="parallax3"><use xlink:href="#gentle-wave" x="50" y="9"/></g>
16+
<g class="parallax4"><use xlink:href="#gentle-wave" x="50" y="6"/></g>
2717
</svg>

0 commit comments

Comments
 (0)