generated from CDCgov/template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds basic header and footer for front end (#24)
* adds basic header and footer * add
- Loading branch information
1 parent
4490b3b
commit ff0d5e4
Showing
8 changed files
with
167 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
import Image from 'next/image' | ||
export default function FooterComponent() { | ||
return ( | ||
<footer className="usa-footer"> | ||
<div className="usa-footer__secondary-section max-w-full bg-primary-darker"> | ||
<div className="grid-container usa-nav-container"> | ||
<div className="grid-row grid-gap"> | ||
<div | ||
className=" | ||
usa-footer__logo | ||
grid-row | ||
mobile-lg:grid-col-8 mobile-lg:grid-gap-1 | ||
" | ||
> | ||
<div className="mobile-lg:grid-col-auto"> | ||
<Image | ||
src="/CDC_logo.png" | ||
className="usa-footer__logo-img" | ||
alt="CDC logo" | ||
width={62} | ||
height={36} | ||
/> | ||
</div> | ||
<div className="mobile-lg:grid-col-auto"> | ||
<p className=" text-base-lightest usa-footer__logo-heading">Centers for Disease Control and Prevention</p> | ||
</div> | ||
</div> | ||
<div | ||
className=" | ||
usa-footer__logo | ||
grid-row | ||
mobile-lg:grid-col-4 mobile-lg:grid-gap-1 | ||
" | ||
> | ||
<div className="mobile-lg:grid-col-auto"> | ||
<p className="text-base-lightest usa_footer-trademark">© 2023 CDC. All rights reserved.</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> | ||
|
||
|
||
) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@import '@trussworks/react-uswds/lib/uswds.css'; | ||
@import '@trussworks/react-uswds/lib/index.css'; | ||
|
||
.usa-button { | ||
background-color: #005ea2; | ||
} | ||
|
||
.usa-modal__close { | ||
background-color: rgba(0,0,0,0); | ||
} | ||
|
||
.usa-button--unstyled { | ||
background-color: rgba(0,0,0,0); | ||
} | ||
|
||
|
||
@media (min-width: 64em) { | ||
.usa-header--basic .usa-navbar { | ||
position: relative; | ||
width: 50%; | ||
} | ||
} | ||
|
||
|
||
.footer-primary { | ||
div{ | ||
background: #162E51; | ||
color: white !important; | ||
min-height: 84px; | ||
a { | ||
color: white !important; | ||
} | ||
} | ||
.usa_footer-trademark { | ||
font-family: Public Sans,sans-serif!important; | ||
font-size: 14px; | ||
font-weight: 300; | ||
line-height: 23px; | ||
letter-spacing: 0em; | ||
text-align: right; | ||
} | ||
|
||
} | ||
|
||
|
||
.hover\:text-base-lightest:hover, .text-base-lightest { | ||
color: #f0f0f0 !important; | ||
} | ||
|
||
.usa-nav-container { | ||
max-width: 88rem!important; | ||
} | ||
|
||
.main-body{ | ||
min-height: 40rem; | ||
margin-top: 1rem; | ||
margin-bottom: 1rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export default function HeaderComponent() { | ||
return ( | ||
<header className="usa-header usa-header--basic bg-primary-darker"> | ||
<div className="usa-nav-container max-w-full"> | ||
<div className="usa-navbar w-full"> | ||
<div className="usa-logo"> | ||
<em className="usa-logo__text text-base-lightest"> | ||
<a className="text-base-lightest" href="/" title="DIBBs Pipeline Demo Site">DIBBs Pipeline Demo Site</a> | ||
</em> | ||
</div> | ||
</div> | ||
</div> | ||
</header> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.