Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancements and Optimizations in WebSite ✨ #1236

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@
<script src="{{ "/assets/vendor/anchor-js/anchor.min.js" | relative_url}}"></script>
<script src="{{ "/assets/vendor/jquery/dist/jquery.min.js" | relative_url}}"></script>
<script>anchors.add('.org-type h4');</script>
{% if page.url == "/community/" %}
<script src="{{ "/assets/js/community.js" | relative_url}}"></script>
{% elsif page.url == "/" %}
<script src="{{ "/assets/js/home.js" | relative_url}}"></script>
{% endif %}
</body>
</html>
<!-- Proudly powered by GitHub Pages ~ Generated {{ site.time }} -->
8 changes: 4 additions & 4 deletions _includes/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,23 @@
<label for="field0" class="d-inline-block mb-1">
Full name
</label>
<input id="field0" name="fullName1" type="text" class="form-control form-control-lg input-block" placeholder="First and last name" required>
<input id="field0" name="fullName1" type="text" class="form-control form-control-lg input-block" placeholder="First and last name" autocomplete="name" required>
<span class="form-control-invalid-text">Your full name is required.</span>
</div>

<div class="mb-3">
<label for="field1" class="d-inline-block mb-1">
Email address
</label>
<input id="field1" name="emailAddress" type="email" class="form-control form-control-lg input-block" placeholder="[email protected]" required>
<input id="field1" name="emailAddress" type="email" class="form-control form-control-lg input-block" placeholder="[email protected]" autocomplete="email" required>
<span class="form-control-invalid-text">A valid email address is required.</span>
</div>

<div class="mb-3">
<label for="field2" class="d-inline-block mb-1">
Company/Agency
</label>
<input id="field2" name="company" type="text" class="form-control form-control-lg input-block" placeholder="Acme, Inc" required>
<input id="field2" name="company" type="text" class="form-control form-control-lg input-block" placeholder="Acme, Inc" autocomplete="organization" required>
<span class="form-control-invalid-text">A valid company name is required.</span>
</div>

Expand All @@ -35,7 +35,7 @@
<span class="form-control-invalid-text">A valid comment is required.</span>
</div>

<input id="country" type="hidden" name="country" value="">
<input id="country" type="hidden" name="country" value="" autocomplete="country-name">
<input id="subdivision" type="hidden" name="subdivision" value="">
<input id="city" type="hidden" name="city" value="">
<input type="hidden" name="elqCustomerGUID" value="">
Expand Down
7 changes: 6 additions & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@
<link rel="stylesheet" type="text/css" href="{{ "/assets/css/style.css" | relative_url }}">
<link rel="preload" as="font" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i" crossorigin>
{% seo %}
{% if page.url == "/community/" %}
<script defer src="{{ "/assets/js/community.js" | relative_url}}"></script>
{% elsif page.url == "/" %}
<script defer src="{{ "/assets/js/home.js" | relative_url}}"></script>
{% endif %}
</head>

<body{% if page.id %} id="{{ page.id }}"{% endif %} class="{{ page.layout }}">

<div class="page-header pt-4 pb-5">
<div class="container-lg">
<div class="text-center">
<a href="{{ "/" | relative_url}}"><img class="logo py-3" src="{{ "/assets/img/logomark.svg" | relative_url}}" alt="GitHub and Government"></a>
<a href="{{ "/" | relative_url}}"><img class="logo py-3" src="{{ "/assets/img/logomark.svg" | relative_url}}" alt="GitHub and Government" decoding="async"></a>
<ul>
<li class="text-center d-block d-sm-inline-block px-1 px-md-3"><a href="{{ "/community/" | relative_url}}" class="text-white">Who's using GitHub</a></li>
<li class="text-center d-block d-sm-inline-block px-1 px-md-3"><a href="https://github.com/government/welcome#readme" class="text-white">Peer Group</a></li>
Expand Down
9 changes: 5 additions & 4 deletions _layouts/form-page.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{% include header.html %}

<script defer src="{{ "/assets/js/utm_form-1.0.3.min.js" | relative_url }}"></script>
<script defer src="https://js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js"></script>
<script defer src="{{ "/assets/js/validate.js" | relative_url }}"></script>
<script defer src="{{ "/assets/js/geoip.js" | relative_url }}"></script>

</div>
<div id="{{ page.title | replace: ' ','-' }}" class="container-lg p-responsive">
<div class="text-center my-4 my-md-6">
Expand All @@ -23,9 +28,5 @@ <h1 class="alt-h2 pt-4 pb-3 pt-sm-5">{{ page.title }}</h1>
{% endif %}

<!---for form --->
<script src="{{ "/assets/js/utm_form-1.0.3.min.js" | relative_url }}"></script>
<script src="https://js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js"></script>
<script src="{{ "/assets/js/validate.js" | relative_url }}"></script>
<script src="{{ "/assets/js/geoip.js" | relative_url }}"></script>

{% include footer.html %}
1 change: 1 addition & 0 deletions assets/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
body {
font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 16px;
scroll-behavior: smooth;
}

// HEADER
Expand Down
2 changes: 1 addition & 1 deletion aws-govcloud.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ <h1 class="alt-h1 mb-2 text-white lh-condensed">GitHub Enterprise on AWS GovClou
<div class="container-md p-responsive">
<div class="d-md-flex flex-items-center flex-row-reverse py-6">
<div class="col-8 col-sm-6 col-md-4 text-center text-md-left mx-auto">
<img src="{{"/assets/img/foundingfather.png" | relative_url}}" class="width-fit d-inline-block" alt="Octocat in founding father dress">
<img src="{{"/assets/img/foundingfather.png" | relative_url}}" class="width-fit d-inline-block" alt="Octocat in founding father dress" decoding="async">
</div>
<div class="col-md-8 pr-md-6 text-center text-md-left">
<h2 class="alt-h2">What is GovCloud?</h2>
Expand Down
2 changes: 1 addition & 1 deletion community.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ permalink: /community/
<div id="to-top" class="text-center border-top border-bottom mb-3 mb-md-5">
<div class="alt-h3 py-3 py-md-5">
<label for="filter" class="sr-only">Search for civic hackers or research lists</label>
<input id="filter" type="text" class="" placeholder="Type to search..."> or jump to the <a href="#civic_hackers">civic hackers</a> or <a href="#research">research</a> lists.
<input id="filter" type="search" class="" placeholder="Type to search..."> or jump to the <a href="#civic_hackers">civic hackers</a> or <a href="#research">research</a> lists.
</div>
</div>

Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,21 +110,21 @@ <h2 class="alt-h2 text-center mb-3 mt-lg-6" id="more-than-just-code">More than j
<div class="col-md-4 float-left animate-out mb-4">
<h3 class="alt-h3 mb-3">Open Source</h3>
<p><a href="https://github.com/showcases/government" target="_blank">
<img src="assets/img/open-source.png" class="img-border" alt="Pull request launching gov.uk"/></a>
<img src="assets/img/open-source.png" class="img-border" alt="Pull request launching gov.uk" decoding="async"/></a>
</p>
<small>The UK Government launched GOV.UK with a pull request</small>
</div>
<div class="col-md-4 float-left animate-out mb-4">
<h3 class="alt-h3 mb-3">Open Data</h3>
<p><a href="https://github.com/showcases/open-data" target="_blank">
<img src="assets/img/open-data.png" class="img-border" alt="GeoJSON diff of Illinois 4th Congressional District"/></a>
<img src="assets/img/open-data.png" class="img-border" alt="GeoJSON diff of Illinois 4th Congressional District" decoding="async"/></a>
</p>
<small>CFPB builds data visualizations and analysis tools with GitHub</small>
</div>
<div class="col-md-4 float-left animate-out mb-4">
<h3 class="alt-h3 mb-3">Open Government</h3>
<p><a href="https://github.com/showcases/policies" target="_blank">
<img src="assets/img/open-gov.png" class="img-border" alt="Project Open Data"/></a>
<img src="assets/img/open-gov.png" class="img-border" alt="Project Open Data" decoding="async"/></a>
</p>
<small>Find the US government’s open source projects at <a href="https://code.gov/">Code.gov</a></small>
</div>
Expand Down