Skip to content

Commit

Permalink
current state
Browse files Browse the repository at this point in the history
  • Loading branch information
richgarner71 committed Jan 30, 2025
1 parent 160422a commit dacd11a
Show file tree
Hide file tree
Showing 9 changed files with 404 additions and 29 deletions.
File renamed without changes.
File renamed without changes.
7 changes: 3 additions & 4 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,12 @@ uswds.paths.src.theme = './node_modules/@uswds/uswds/dist/theme';
uswds.paths.src.fonts = './node_modules/@uswds/uswds/dist/fonts';
uswds.paths.src.img = './node_modules/@uswds/uswds/dist/img';
uswds.paths.src.js = './node_modules/@uswds/uswds/dist/js';
uswds.paths.src.projectSass = "./sass";
uswds.paths.dist.js = './assets/uswds/js';
uswds.paths.dist.css = './assets/uswds/css';
uswds.paths.dist.img = './assets/uswds/images';
uswds.paths.dist.fonts = './assets/uswds/fonts';
uswds.paths.dist.css = './assets/css';
uswds.paths.dist.theme = './sass/uswds';

uswds.paths.dist.css = './assets/uswds/css';
uswds.paths.dist.theme = './sass';

//Version
uswds.settings.version = 3;
Expand Down
17 changes: 17 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<link href="./assets/css/_usa-banner.css" type="stylesheet">


<div id="content"></div>

<p>This is a test to pull in one HTML file and load it into a div on the index page.</p>
<p>The issue is that I cannot get the sass file to generate a stylesheet (usa-banner).</p>

<p>Note: The intention here is to minimize dependancy on pre-processors and compilers. I want to be able to generate the CSS files and use them wiothout the need to regenerate them again.</p>

<script type="text/javascript">
function load_home() {
document.getElementById("content").innerHTML='<object type="text/html" data="pages/banner.html" ></object>';
}

load_home();
</script>
2 changes: 0 additions & 2 deletions index.js

This file was deleted.

10 changes: 4 additions & 6 deletions banner.html → pages/banner.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{% comment %}
This appears at the top of the page letting the user know it's an official government website
{% endcomment %}
<link href="../assets/uswds/css/_usa-banner.css" type="stylesheet">

<div>
<a class="usa-skipnav" href="#main-content">Skip to main content</a>
Expand All @@ -10,7 +8,7 @@
<div class="usa-banner__inner">
<!-- added custom styles to ensure header is centered -->
<div class="grid-col-auto" style="display: inline-flex;">
{% image_with_class "./node_modules/@uswds/uswds/dist/img/us_flag_small.png" "usa-banner__header-flag" "U.S. flag" %}
<img src="./node_modules/@uswds/uswds/dist/img/us_flag_small.png" class="usa-banner__header-flag" alt="U.S. flag"/>
</div>
<div class="grid-col-fill tablet:grid-col-auto" style="display: inline-flex;">
<p class="usa-banner__header-text">An official website of the United States government</p>
Expand All @@ -26,7 +24,7 @@
<div class="usa-banner__content usa-accordion__content" id="gov-banner">
<div class="grid-row grid-gap-lg">
<div class="usa-banner__guidance tablet:grid-col-6">
{% comment %} {% image_with_class "./node_modules/@uswds/uswds/dist/img/icon-dot-gov.svg" "usa-banner__icon usa-media-block__img" "Dot gov" %} {% endcomment %}
<img src="./node_modules/@uswds/uswds/dist/img/icon-dot-gov.svg" class="usa-banner__icon usa-media-block__img" alt="Dot gov" />
<div class="usa-media-block__body">
<p>
<strong>The .gov means it’s official.</strong>
Expand All @@ -36,7 +34,7 @@
</div>
</div>
<div class="usa-banner__guidance tablet:grid-col-6">
{% comment %} {% image_with_class "./node_modules/@uswds/uswds/dist/img/icon-https.svg" "usa-banner__icon usa-media-block__img" "Https" %} {% endcomment %}
<img src="./node_modules/@uswds/uswds/dist/img/icon-https.svg" class="usa-banner__icon usa-media-block__img" alt="Https" />
<div class="usa-media-block__body">
<p>
<strong>Secure .gov websites use HTTPS</strong>
Expand Down
Loading

0 comments on commit dacd11a

Please sign in to comment.