Skip to content

Commit

Permalink
Updates and Adding more pages (#19)
Browse files Browse the repository at this point in the history
* Phase 1 of the Explore PRA page

* Added content to the explore PRA page

* Removed the security policy file

I removed the security file since it was copied from another site.

* Removed references to netlify

Removed references to netlify since it's not being used.

* Fixed a button on the homepage

* Added back the security policy

Apparently the security policy is needed.

* Checking webhook and adding remaining pages
  • Loading branch information
natashapl authored Sep 29, 2024
1 parent af38e9c commit 7abb87c
Show file tree
Hide file tree
Showing 13 changed files with 539 additions and 10,821 deletions.
8 changes: 4 additions & 4 deletions _data/assetPaths.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
"search.svg": "/assets/assets/search-2D3FZK3P.svg",
"unfold_more.svg": "/assets/assets/unfold_more-WL443JWS.svg",
"warning.svg": "/assets/assets/warning-5OR6W6GJ.svg",
"admin.js": "/assets/js/admin-PYHXV7Z7.js",
"admin.map": "/assets/js/admin-PYHXV7Z7.js.map",
"admin.js": "/assets/js/admin-TRAB3TNM.js",
"admin.map": "/assets/js/admin-TRAB3TNM.js.map",
"app.js": "/assets/js/app-3EMHKZGG.js",
"app.map": "/assets/js/app-3EMHKZGG.js.map",
"index.css": "/assets/styles/index-KORG5IGY.css",
"index.map": "/assets/styles/index-KORG5IGY.css.map"
"index.css": "/assets/styles/index-YYR3RIAV.css",
"index.map": "/assets/styles/index-YYR3RIAV.css.map"
}
4 changes: 2 additions & 2 deletions _includes/layouts/explore-pra-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,6 @@ <h2>More information</h2>
</li>
</ul>
</section>
</div>

{{ content }}
{{ content }}
</div>
11 changes: 11 additions & 0 deletions _includes/layouts/find-out-if-you-need-pra.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
layout: layouts/page
---

<div class="find-out-if-you-need-pra-wrapper static-content">
<h1 class="margin-top-0">Find out if you need PRA clearance</h1>
<p>If you still need to find out whether you need PRA clearance, you’ve come to the right spot. We can walk you
through relevant considerations and help you get an answer.</p>

{{ content }}
</div>
11 changes: 11 additions & 0 deletions _includes/layouts/get-pra-clearance.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
layout: layouts/page
---

<div class="find-out-if-you-need-pra-wrapper static-content">
<h1 class="margin-top-0">Get PRA clearance</h1>
<p>If you are ready to get PRA clearance, congratulations! We’re here to walk you through the steps. If you are
still not sure whether you need PRA clearance for your research, please refer to the previous sections.</p>

{{ content }}
</div>
2 changes: 1 addition & 1 deletion _includes/theme/js/admin.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
require('netlify-cms');
//require('netlify-cms');
13 changes: 13 additions & 0 deletions _includes/theme/styles/_templates.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ h4 {
line-height: lh('heading', 2);
}

.usa-header {
&--extended {
.usa-nav {
border-top-width: units(2px);
}
}
}

.usa-section {
padding-top: units(7);
padding-bottom: 0;
Expand Down Expand Up @@ -75,6 +83,11 @@ h4 {
&.more-information-section {
padding-top: units(2);
}

&.usa-layout-docs {
min-height: 40vh;
border-top: none;
}
}

.usa-card__container {
Expand Down
2 changes: 2 additions & 0 deletions admin/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ backend:

##
## Uncomment when doing local development on Netlify CMS
## Install netlify-cms ^2.10.192 and netlify-cms-proxy-server ^1.3.23
## Add "dev:cms": "npx netlify-cms-proxy-server" to package.json scripts
## Run `npx netlify-cms-proxy-server` to start working locally
## In another terminal, start the app with `npm start`
## See https://www.netlifycms.org/docs/beta-features/#working-with-a-local-git-repository
Expand Down
8 changes: 6 additions & 2 deletions admin/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,27 @@
---
<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Content Manager</title>
</head>

<body>
<!-- Include the script that builds the page and powers Netlify CMS -->
<!-- Include the script that builds the page -->
<script async src="{{ assetPaths['admin.js'] }}"></script>
<link href="{{ '/admin/config.yml' | url }}" type="text/yaml" rel="cms-config-url">
<style>
img[alt="Logo"] {
margin-left: 75px;
width: 150px;
}

button {
margin-top: 0px !important;
}
</style>
</body>
</html>

</html>
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h4 class="usa-card__heading">New to PRA?</h4>
</p>
</div>
<div class="usa-card__footer">
<a href="#" class="usa-button">Explore PRA</a>
<a href="{{ '/explore-pra/' | url }}" class="usa-button">Explore PRA</a>
</div>
</div>
</li>
Expand All @@ -56,7 +56,8 @@ <h4 class="usa-card__heading">Not sure if you need PRA clearance?</h4>
</p>
</div>
<div class="usa-card__footer">
<a href="#" class="usa-button">Find out</a>
<a href="{{ '/find-out-if-you-need-pra/' | url }}" class="usa-button">Find out <span
class="usa-sr-only">if you need PRA clearance</span></a>
</div>
</div>
</li>
Expand All @@ -78,7 +79,7 @@ <h4 class="usa-card__heading">Ready to get PRA clearance?</h4>
</p>
</div>
<div class="usa-card__footer">
<a class="usa-link" href="{{ '/get-pra-clearance/' | url }}">Get PRA clearance</a>
<a href="{{ '/get-pra-clearance/' | url }}" class="usa-button">Get PRA clearance</a>
</div>
</div>
</li>
Expand Down
Loading

0 comments on commit 7abb87c

Please sign in to comment.