Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
HarikaMunipalle committed Nov 6, 2023
1 parent 51cfe05 commit 23f535a
Show file tree
Hide file tree
Showing 13 changed files with 10,546 additions and 4,595 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,10 @@ _site
node_modules
.bundle
.jekyll-cache/
Gemfile.lock
.DS_Store
assets/img
assets/fonts
assets/js/uswds.js
assets/js/uswds.min.js
assets/js/uswds.min.js.map
109 changes: 38 additions & 71 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,43 +1,34 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (5.2.6)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
addressable (2.8.5)
public_suffix (>= 2.0.2, < 6.0)
colorator (1.1.0)
concurrent-ruby (1.1.8)
em-websocket (0.5.2)
concurrent-ruby (1.2.2)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
ethon (0.14.0)
http_parser.rb (~> 0)
ethon (0.16.0)
ffi (>= 1.15.0)
eventmachine (1.2.7)
execjs (2.8.1)
extras (0.3.0)
forwardable-extended (~> 2.5)
fastimage (2.2.3)
ffi (1.15.0)
ffi (1.16.3-x64-mingw-ucrt)
forwardable-extended (2.6.0)
html-proofer (3.19.1)
html-proofer (3.19.4)
addressable (~> 2.3)
mercenary (~> 0.3)
nokogumbo (~> 2.0)
parallel (~> 1.3)
nokogiri (~> 1.13)
parallel (~> 1.10)
rainbow (~> 3.0)
typhoeus (~> 1.3)
yell (~> 2.0)
http_parser.rb (0.6.0)
i18n (0.9.5)
http_parser.rb (0.8.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
jekyll (3.9.1)
jekyll (3.9.3)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 0.7)
i18n (>= 0.7, < 2)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 2.0)
kramdown (>= 1.17, < 3)
Expand All @@ -46,65 +37,39 @@ GEM
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
jekyll-assets (3.0.12)
activesupport (~> 5.0)
execjs (~> 2.7)
extras (~> 0.2)
fastimage (~> 2.0, >= 1.8)
jekyll (>= 3.5, < 4.0)
jekyll-sanity (~> 1.2)
liquid-tag-parser (~> 1.0)
nokogiri (~> 1.8)
pathutil (~> 0.16)
sprockets (>= 3.3, < 4.1.beta)
jekyll-feed (0.15.1)
jekyll (>= 3.7, < 5.0)
jekyll-paginate-v2 (3.0.0)
jekyll (>= 3.0, < 5.0)
jekyll-redirect-from (0.16.0)
jekyll (>= 3.3, < 5.0)
jekyll-sanity (1.6.0)
jekyll (>= 3.1, < 5.0)
pathutil (~> 0.16)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-seo-tag (2.7.1)
jekyll-seo-tag (2.8.0)
jekyll (>= 3.8, < 5.0)
jekyll-sitemap (1.4.0)
jekyll (>= 3.7, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (2.3.1)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.3)
liquid-tag-parser (1.9.0)
extras (~> 0.3)
liquid (>= 3.0, < 5.0)
listen (3.5.1)
liquid (4.0.4)
listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.3.6)
mini_portile2 (2.5.1)
minitest (5.14.4)
nokogiri (1.11.4)
mini_portile2 (~> 2.5.0)
nokogiri (1.15.4-x64-mingw-ucrt)
racc (~> 1.4)
nokogumbo (2.0.5)
nokogiri (~> 1.8, >= 1.8.4)
parallel (1.20.1)
parallel (1.23.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.6)
racc (1.5.2)
rack (2.2.3)
rainbow (3.0.0)
rb-fsevent (0.11.0)
public_suffix (5.0.3)
racc (1.7.3)
rack (2.2.8)
rainbow (3.1.1)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.5)
rouge (3.26.0)
rexml (3.2.6)
rouge (3.30.0)
safe_yaml (1.0.5)
sass (3.7.4)
sass-listen (~> 4.0.0)
Expand All @@ -114,31 +79,33 @@ GEM
sprockets (3.7.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
thread_safe (0.3.6)
typhoeus (1.4.0)
ethon (>= 0.9.0)
tzinfo (1.2.9)
thread_safe (~> 0.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
tzinfo-data (1.2023.3)
tzinfo (>= 1.0.0)
wdm (0.1.1)
webrick (1.8.1)
yell (2.2.2)

PLATFORMS
ruby
x64-mingw-ucrt

DEPENDENCIES
html-proofer (~> 3.18)
jekyll (~> 3.9)
jekyll-assets (~> 3.0)
jekyll-feed (~> 0.15)
jekyll-paginate-v2 (= 3.0.0)
jekyll-redirect-from
jekyll-seo-tag
jekyll-sitemap
kramdown-parser-gfm (~> 1.1.0)
sprockets (~> 3.7)
tzinfo-data
wdm (~> 0.1.0)
webrick

RUBY VERSION
ruby 2.6.6p146
ruby 3.1.4p223

BUNDLED WITH
1.17.2
2.4.21
2 changes: 0 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,7 @@ permalink: pretty

markdown: kramdown
plugins:
- jekyll-feed
- jekyll-paginate-v2
- jekyll-redirect-from
- jekyll-sitemap # See additional instructions for url parameter above.
- jekyll-seo-tag

Expand Down
16 changes: 8 additions & 8 deletions _includes/meta.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,21 @@
<!-- Favicons
================================================== -->
<!-- 128x128 -->
<link rel="shortcut icon" type="image/ico" href="{% asset favicons/favicon.ico @path %}">
<link rel="icon" type="image/png" href="{% asset favicons/favicon.png @path %}">
<link rel="shortcut icon" type="image/ico" href="{{site.baseurl}}/assets/img/favicons/favicon.ico">
<link rel="icon" type="image/png" href="{{site.baseurl}}/assets/img/favicons/favicon.png">
<!-- 192x192, as recommended for Android
http://updates.html5rocks.com/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
-->
<link rel="icon" type="image/png" sizes="192x192" href="{% asset favicons/favicon-192.png @path %}">
<link rel="icon" type="image/png" sizes="192x192" href="{{site.baseurl}}/assets/img/favicons/favicon-192.png">
<!-- 57x57 (precomposed) for iPhone 3GS, pre-2011 iPod Touch and older Android devices -->
<link rel="apple-touch-icon-precomposed" href="{% asset favicons/favicon-57.png @path %}">
<link rel="apple-touch-icon-precomposed" href="{{site.baseurl}}/assets/img/favicons/favicon-57.png">
<!-- 72x72 (precomposed) for 1st generation iPad, iPad 2 and iPad mini -->
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{% asset favicons/favicon-72.png @path %}">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{site.baseurl}}/assets/img/favicons/favicon-72.png">
<!-- 114x114 (precomposed) for iPhone 4, 4S, 5 and post-2011 iPod Touch -->
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{% asset favicons/favicon-114.png @path %}">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{site.baseurl}}/assets/img/favicons/favicon-114.png">
<!-- 144x144 (precomposed) for iPad 3rd and 4th generation -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{% asset favicons/favicon-144.png @path %}">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{site.baseurl}}/assets/img/favicons/favicon-144.png">
<!-- CSS
================================================== -->
{% asset index.scss %}
<link rel="stylesheet" type="text/css" href="{{ site.baseurl }}/assets/css/index.css?{{ site.time | date: '%s%N' }}">
</head>
10 changes: 4 additions & 6 deletions _includes/scripts.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<!-- Digital Analytics Program roll-up, see https://analytics.usa.gov for data -->
{% if site.dap.agency %}
<script
id="_fed_an_ua_tag"
src="https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency={{site.dap.agency}}{% if site.dap.subagency %}&subagency={{site.dap.subagency}}{% endif %}"
></script>
<script id="_fed_an_ua_tag"
src="https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency={{site.dap.agency}}{% if site.dap.subagency %}&subagency={{site.dap.subagency}}{% endif %}"></script>
{% endif %}

<script type="text/javascript">
Expand Down Expand Up @@ -34,5 +32,5 @@
</script>
{% endif %}

{% asset uswds.min.js %}
{% asset app.js %}
<script src="{{ site.baseurl }}/assets/js/uswds.min.js?{{ site.time | date: '%s%N' }}"></script>
<script src="{{ site.baseurl }}/assets/js/app.js?{{ site.time | date: '%s%N' }}"></script>
15 changes: 15 additions & 0 deletions _plugins/asset-helper.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require 'fileutils'

module AssetHelper
def self.process(site, payload)
return if @processed
FileUtils.cp_r('node_modules/uswds/dist/js/', 'assets/', verbose: true)
FileUtils.cp_r('node_modules/uswds/dist/img/', 'assets/', verbose: true)
FileUtils.cp_r('node_modules/uswds/dist/fonts/', 'assets/', verbose: true)
@processed = true
end
end

Jekyll::Hooks.register :site, :after_reset do |site, payload|
AssetHelper.process(site, payload)
end
8 changes: 5 additions & 3 deletions _assets/css/index.scss → assets/css/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
---
---
/*
Customize US Web Design System SASS
See all at designsystem.digital.gov/documentation/settings
Expand All @@ -7,7 +9,7 @@
// $theme-hero-image: asset_path("whatever-the-default-is.png");
$theme-show-notifications: false;

@import "uswds";
@import "scss/uswds";

// Example - Override the background image in the hero component using CSS:
//.usa-hero {
Expand Down Expand Up @@ -164,7 +166,7 @@ $theme-show-notifications: false;
}

.home-page-backgrund {
background-image: linear-gradient( #00000000, #27355c ), url("../assets/img/home-page.jpg");
background-image: linear-gradient( #00000000, #27355c ), url("../img/home-page.jpg");
background-color: black;
background-repeat: no-repeat;
font-size: 1.06rem;
Expand Down Expand Up @@ -204,7 +206,7 @@ $theme-show-notifications: false;
}

a.no-decoration::after{
content: url(../assets/img/circle-chevron-right-solid.svg);
content: url(../img/circle-chevron-right-solid.svg);
width: 1.5rem;
display: inline-block;
height: 1.5rem;
Expand Down
2 changes: 2 additions & 0 deletions assets/js/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// Add your custom javascript here
console.log("Hi from Federalist");
23 changes: 23 additions & 0 deletions assets/js/uswds-init.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/* eslint-disable no-var */
(function uswdsInit () {
"use strict";
var loadingClass = "usa-js-loading";
var fallback;

document.documentElement.classList.add(loadingClass);
function revertClass() {
document.documentElement.classList.remove(loadingClass);
}

fallback = setTimeout(revertClass, 8000);

function verifyLoaded() {
if (window.uswdsPresent) {
clearTimeout(fallback);
revertClass();
document.removeEventListener("load", verifyLoaded, true);
}
}

document.addEventListener("load", verifyLoaded, true);
}());
2 changes: 2 additions & 0 deletions assets/js/uswds-init.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions assets/js/uswds-init.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added assets/uploads/cloud-gov-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 23f535a

Please sign in to comment.