Skip to content

Commit

Permalink
Added a CTA to a page and improve search (#669)
Browse files Browse the repository at this point in the history
* Added a CTA to a page

Signed-off-by: Chris Abraham <[email protected]>

* Don't add search increments to browser history

Signed-off-by: Chris Abraham <[email protected]>

---------

Signed-off-by: Chris Abraham <[email protected]>
  • Loading branch information
cjyabraham authored Jun 30, 2024
1 parent 4518611 commit f7435a0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
13 changes: 12 additions & 1 deletion website/assets/scss/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
width: unset;
}

.cncf-button {
.cncf-button,
.cncf-button-primary {
color: $white;
background-color: $black;
border: 0;
Expand All @@ -35,3 +36,13 @@
background-color: $gray-700;
}
}

.cncf-button-primary {
background-color: $pink;
&:hover {
background-color: #c53490;
color: $white;
text-decoration: none;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ While the checklist provides a meticulous list of action items, this detailed do

**Note**: This document is open source. If we missed anything, please submit a pull request or issue so we can update it — thank you!

<div class="section-group">
{{% blocks/section color="gray-300" %}}
<h3>Get your Accessbile Conference Checklist</h3>
<p>To make it really easy, we've captured everything in this document in an event checklist.</p>
<a class="cncf-button-primary" href="https://docs.google.com/spreadsheets/d/1lC1woVTu8YNWykCJ2FwBgy3aJEWbVUP0cZT3-Nw1hj0/edit#gid=0">
Download Checklist
</a>
{{% /blocks/section %}}
</div>

## General information

### DEIA: Diversity + Equity + Inclusion + Accessibility
Expand Down
4 changes: 2 additions & 2 deletions website/layouts/_default/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ <h1 class="thin">{{ .Title }}</h1>

var newUrl = baseUrl + "?" + urlParams.toString();
// Update the browser history (optional)
window.history.pushState({}, null, newUrl);
history.replaceState(null, '', newUrl);
}
</script>

</div>
{{ end }}
{{ end }}

0 comments on commit f7435a0

Please sign in to comment.