@solexllc/usx-react 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -0
- package/dist/index.cjs +6017 -0
- package/dist/index.js +6015 -0
- package/package.json +48 -0
- package/src/components/accordion/Accordion.jsx +170 -0
- package/src/components/accordion/accordion.django.html +47 -0
- package/src/components/accordion/accordion.html +304 -0
- package/src/components/accordion/config.json +31 -0
- package/src/components/alert/Alert.tsx +88 -0
- package/src/components/alert/alert.django.html +45 -0
- package/src/components/alert/alert.html +192 -0
- package/src/components/alert/config.json +70 -0
- package/src/components/attribution/Attribution.tsx +40 -0
- package/src/components/attribution/attribution.django.html +21 -0
- package/src/components/attribution/attribution.html +26 -0
- package/src/components/attribution/config.json +32 -0
- package/src/components/avatar/Avatar.tsx +85 -0
- package/src/components/avatar/avatar.django.html +27 -0
- package/src/components/avatar/avatar.html +101 -0
- package/src/components/avatar/config.json +59 -0
- package/src/components/avatar-group/AvatarGroup.tsx +43 -0
- package/src/components/avatar-group/avatar-group.django.html +8 -0
- package/src/components/avatar-group/avatar-group.html +208 -0
- package/src/components/avatar-group/config.json +60 -0
- package/src/components/back-to-top/BackToTop.tsx +60 -0
- package/src/components/back-to-top/back-to-top.django.html +38 -0
- package/src/components/back-to-top/back-to-top.html +107 -0
- package/src/components/back-to-top/config.json +44 -0
- package/src/components/banner/Banner.tsx +111 -0
- package/src/components/banner/banner.django.html +80 -0
- package/src/components/banner/banner.html +411 -0
- package/src/components/banner/config.json +47 -0
- package/src/components/block/Block.tsx +78 -0
- package/src/components/block/block.django.html +26 -0
- package/src/components/block/block.html +162 -0
- package/src/components/block/config.json +88 -0
- package/src/components/breadcrumb/Breadcrumb.tsx +83 -0
- package/src/components/breadcrumb/breadcrumb.django.html +24 -0
- package/src/components/breadcrumb/breadcrumb.html +108 -0
- package/src/components/breadcrumb/config.json +74 -0
- package/src/components/button/Button.tsx +121 -0
- package/src/components/button/button.django.html +58 -0
- package/src/components/button/button.html +363 -0
- package/src/components/button/config.json +103 -0
- package/src/components/button-group/ButtonGroup.tsx +33 -0
- package/src/components/button-group/button-group.django.html +9 -0
- package/src/components/button-group/button-group.html +159 -0
- package/src/components/button-group/config.json +25 -0
- package/src/components/calendar-date/CalendarDate.tsx +40 -0
- package/src/components/calendar-date/calendar-date.django.html +8 -0
- package/src/components/calendar-date/calendar-date.html +17 -0
- package/src/components/calendar-date/config.json +17 -0
- package/src/components/card/Card.tsx +137 -0
- package/src/components/card/card.django.html +40 -0
- package/src/components/card/card.html +67 -0
- package/src/components/card/config.json +115 -0
- package/src/components/card-group/CardGroup.tsx +23 -0
- package/src/components/card-group/card-group.django.html +6 -0
- package/src/components/card-group/card-group.html +164 -0
- package/src/components/card-group/config.json +21 -0
- package/src/components/carousel/Carousel.tsx +101 -0
- package/src/components/carousel/carousel.django.html +41 -0
- package/src/components/carousel/carousel.html +64 -0
- package/src/components/carousel/config.json +38 -0
- package/src/components/character-count/CharacterCount.tsx +77 -0
- package/src/components/character-count/character-count.django.html +19 -0
- package/src/components/character-count/character-count.html +110 -0
- package/src/components/character-count/config.json +78 -0
- package/src/components/checkbox/Checkbox.tsx +90 -0
- package/src/components/checkbox/checkbox.django.html +16 -0
- package/src/components/checkbox/checkbox.html +266 -0
- package/src/components/checkbox/config.json +71 -0
- package/src/components/checkbox-group/CheckboxGroup.tsx +67 -0
- package/src/components/checkbox-group/checkbox-group.django.html +12 -0
- package/src/components/checkbox-group/checkbox-group.html +36 -0
- package/src/components/checkbox-group/config.json +50 -0
- package/src/components/clickable/Clickable.tsx +78 -0
- package/src/components/clickable/clickable.django.html +5 -0
- package/src/components/clickable/clickable.html +133 -0
- package/src/components/clickable/config.json +26 -0
- package/src/components/code/Code.tsx +60 -0
- package/src/components/code/code.django.html +21 -0
- package/src/components/code/code.html +71 -0
- package/src/components/code/config.json +40 -0
- package/src/components/collection/Collection.tsx +99 -0
- package/src/components/collection/collection.django.html +48 -0
- package/src/components/collection/collection.html +384 -0
- package/src/components/collection/config.json +60 -0
- package/src/components/combobox/Combobox.tsx +114 -0
- package/src/components/combobox/combobox.django.html +61 -0
- package/src/components/combobox/combobox.html +509 -0
- package/src/components/combobox/config.json +80 -0
- package/src/components/copy-to-clipboard/CopyToClipboard.tsx +48 -0
- package/src/components/copy-to-clipboard/config.json +30 -0
- package/src/components/copy-to-clipboard/copy-to-clipboard.django.html +16 -0
- package/src/components/copy-to-clipboard/copy-to-clipboard.html +68 -0
- package/src/components/date-picker/DatePicker.jsx +83 -0
- package/src/components/date-picker/config.json +71 -0
- package/src/components/date-picker/date-picker.django.html +67 -0
- package/src/components/date-picker/date-picker.html +104 -0
- package/src/components/date-range-picker/DateRangePicker.jsx +113 -0
- package/src/components/date-range-picker/config.json +92 -0
- package/src/components/date-range-picker/date-range-picker.django.html +66 -0
- package/src/components/date-range-picker/date-range-picker.html +190 -0
- package/src/components/error-message/ErrorMessage.tsx +23 -0
- package/src/components/error-message/config.json +19 -0
- package/src/components/error-message/error-message.django.html +2 -0
- package/src/components/error-message/error-message.html +2 -0
- package/src/components/eyebrow/Eyebrow.tsx +15 -0
- package/src/components/eyebrow/config.json +15 -0
- package/src/components/eyebrow/eyebrow.django.html +4 -0
- package/src/components/eyebrow/eyebrow.html +4 -0
- package/src/components/fieldset/Fieldset.tsx +54 -0
- package/src/components/fieldset/config.json +47 -0
- package/src/components/fieldset/fieldset.django.html +22 -0
- package/src/components/fieldset/fieldset.html +17 -0
- package/src/components/file-input/FileInput.jsx +174 -0
- package/src/components/file-input/config.json +80 -0
- package/src/components/file-input/file-input.django.html +57 -0
- package/src/components/file-input/file-input.html +258 -0
- package/src/components/file-list/FileList.jsx +105 -0
- package/src/components/file-list/config.json +43 -0
- package/src/components/file-list/file-list.django.html +30 -0
- package/src/components/file-list/file-list.html +61 -0
- package/src/components/footer/Footer.tsx +365 -0
- package/src/components/footer/config.json +83 -0
- package/src/components/footer/footer.django.html +260 -0
- package/src/components/footer/footer.html +392 -0
- package/src/components/form-group/FormGroup.tsx +26 -0
- package/src/components/form-group/config.json +22 -0
- package/src/components/form-group/form-group.django.html +4 -0
- package/src/components/form-group/form-group.html +17 -0
- package/src/components/header/Branding.tsx +101 -0
- package/src/components/header/Header.tsx +229 -0
- package/src/components/header/HeaderBranding.jsx +4 -0
- package/src/components/header/config.json +58 -0
- package/src/components/header/header.django.html +194 -0
- package/src/components/header/header.html +823 -0
- package/src/components/hero/Hero.tsx +64 -0
- package/src/components/hero/config.json +70 -0
- package/src/components/hero/hero.django.html +22 -0
- package/src/components/hero/hero.html +75 -0
- package/src/components/hint/Hint.tsx +23 -0
- package/src/components/hint/config.json +19 -0
- package/src/components/hint/hint.django.html +2 -0
- package/src/components/hint/hint.html +2 -0
- package/src/components/icon/Icon.tsx +46 -0
- package/src/components/icon/config.json +60 -0
- package/src/components/icon/icon.django.html +26 -0
- package/src/components/icon/icon.html +289 -0
- package/src/components/icon/icons_list.json +247 -0
- package/src/components/icon-list/IconList.tsx +59 -0
- package/src/components/icon-list/config.json +86 -0
- package/src/components/icon-list/icon-list.django.html +17 -0
- package/src/components/icon-list/icon-list.html +227 -0
- package/src/components/identifier/Identifier.tsx +193 -0
- package/src/components/identifier/config.json +133 -0
- package/src/components/identifier/identifier.django.html +99 -0
- package/src/components/identifier/identifier.html +737 -0
- package/src/components/image/Image.tsx +106 -0
- package/src/components/image/config.json +64 -0
- package/src/components/image/image.django.html +62 -0
- package/src/components/image/image.html +53 -0
- package/src/components/in-page-nav/InPageNav.jsx +76 -0
- package/src/components/in-page-nav/config.json +69 -0
- package/src/components/in-page-nav/in-page-nav.django.html +28 -0
- package/src/components/in-page-nav/in-page-nav.html +183 -0
- package/src/components/indicator/Indicator.tsx +32 -0
- package/src/components/indicator/README.md +1 -0
- package/src/components/indicator/config.json +19 -0
- package/src/components/indicator/indicator.django.html +10 -0
- package/src/components/indicator/indicator.html +42 -0
- package/src/components/input/Input.tsx +85 -0
- package/src/components/input/config.json +73 -0
- package/src/components/input/input.django.html +55 -0
- package/src/components/input/input.html +59 -0
- package/src/components/label/Label.tsx +42 -0
- package/src/components/label/config.json +39 -0
- package/src/components/label/label.django.html +23 -0
- package/src/components/label/label.html +23 -0
- package/src/components/language-selector/LanguageSelector.jsx +224 -0
- package/src/components/language-selector/config.json +107 -0
- package/src/components/language-selector/language-selector.django.html +40 -0
- package/src/components/language-selector/language-selector.html +85 -0
- package/src/components/layout/Layout.tsx +131 -0
- package/src/components/layout/config.json +36 -0
- package/src/components/layout/layout.django.html +28 -0
- package/src/components/layout/layout.html +29 -0
- package/src/components/legend/Legend.tsx +34 -0
- package/src/components/legend/config.json +27 -0
- package/src/components/legend/legend.django.html +11 -0
- package/src/components/legend/legend.html +12 -0
- package/src/components/link/Link.tsx +45 -0
- package/src/components/link/config.json +39 -0
- package/src/components/link/link.django.html +8 -0
- package/src/components/link/link.html +47 -0
- package/src/components/list/List.tsx +82 -0
- package/src/components/list/_list-items.django.html +17 -0
- package/src/components/list/config.json +25 -0
- package/src/components/list/list.django.html +11 -0
- package/src/components/list/list.html +26 -0
- package/src/components/memorable-date/MemorableDate.jsx +167 -0
- package/src/components/memorable-date/config.json +104 -0
- package/src/components/memorable-date/memorable-date.django.html +86 -0
- package/src/components/memorable-date/memorable-date.html +275 -0
- package/src/components/misc-banner/MiscBanner.tsx +112 -0
- package/src/components/misc-banner/config.json +57 -0
- package/src/components/misc-banner/misc-banner.django.html +63 -0
- package/src/components/misc-banner/misc-banner.html +191 -0
- package/src/components/modal/Modal.tsx +71 -0
- package/src/components/modal/config.json +57 -0
- package/src/components/modal/modal.django.html +43 -0
- package/src/components/modal/modal.html +222 -0
- package/src/components/page/Page.jsx +34 -0
- package/src/components/page/config.json +34 -0
- package/src/components/page/page.django.html +5 -0
- package/src/components/page/page.html +23 -0
- package/src/components/pagination/Pagination.tsx +112 -0
- package/src/components/pagination/config.json +135 -0
- package/src/components/pagination/container/PaginationContainer.tsx +38 -0
- package/src/components/pagination/navigation/PaginationNavigation.tsx +219 -0
- package/src/components/pagination/navigation/pagination-navigation.django.html +64 -0
- package/src/components/pagination/pagination.django.html +48 -0
- package/src/components/pagination/pagination.html +613 -0
- package/src/components/pagination/step-options/PaginationStepOptions.tsx +43 -0
- package/src/components/pagination/step-options/pagination-step-options.django.html +7 -0
- package/src/components/pagination/summary/PaginationSummary.tsx +33 -0
- package/src/components/pagination/summary/pagination-summary.django.html +12 -0
- package/src/components/process-list/ProcessList.tsx +52 -0
- package/src/components/process-list/config.json +15 -0
- package/src/components/process-list/process-list.django.html +15 -0
- package/src/components/process-list/process-list.html +90 -0
- package/src/components/prose/Prose.tsx +32 -0
- package/src/components/prose/config.json +28 -0
- package/src/components/prose/prose.django.html +35 -0
- package/src/components/prose/prose.html +91 -0
- package/src/components/radio-buttons/RadioButtons.tsx +82 -0
- package/src/components/radio-buttons/config.json +57 -0
- package/src/components/radio-buttons/radio-buttons.django.html +28 -0
- package/src/components/radio-buttons/radio-buttons.html +189 -0
- package/src/components/range-slider/RangeSlider.jsx +84 -0
- package/src/components/range-slider/config.json +89 -0
- package/src/components/range-slider/range-slider.django.html +65 -0
- package/src/components/range-slider/range-slider.html +106 -0
- package/src/components/required/Required.tsx +25 -0
- package/src/components/required/config.json +20 -0
- package/src/components/required/required.django.html +2 -0
- package/src/components/required/required.html +6 -0
- package/src/components/search/Search.tsx +92 -0
- package/src/components/search/config.json +69 -0
- package/src/components/search/search.django.html +59 -0
- package/src/components/search/search.html +76 -0
- package/src/components/section/Section.tsx +28 -0
- package/src/components/section/config.json +27 -0
- package/src/components/section/section.django.html +5 -0
- package/src/components/section/section.html +16 -0
- package/src/components/select/Select.tsx +107 -0
- package/src/components/select/config.json +80 -0
- package/src/components/select/select.django.html +64 -0
- package/src/components/select/select.html +62 -0
- package/src/components/sidenav/SideNav.tsx +74 -0
- package/src/components/sidenav/config.json +45 -0
- package/src/components/sidenav/sidenav.django.html +29 -0
- package/src/components/sidenav/sidenav.html +84 -0
- package/src/components/site-alert/SiteAlert.tsx +101 -0
- package/src/components/site-alert/config.json +62 -0
- package/src/components/site-alert/site-alert.django.html +34 -0
- package/src/components/site-alert/site-alert.html +312 -0
- package/src/components/skipnav/Skipnav.tsx +41 -0
- package/src/components/skipnav/config.json +29 -0
- package/src/components/skipnav/skipnav.django.html +11 -0
- package/src/components/skipnav/skipnav.html +1 -0
- package/src/components/spinner/Spinner.tsx +46 -0
- package/src/components/spinner/config.json +44 -0
- package/src/components/spinner/spinner.django.html +8 -0
- package/src/components/spinner/spinner.html +219 -0
- package/src/components/status/Status.tsx +28 -0
- package/src/components/status/config.json +47 -0
- package/src/components/status/status.django.html +2 -0
- package/src/components/status/status.html +31 -0
- package/src/components/step-indicator/StepIndicator.tsx +80 -0
- package/src/components/step-indicator/config.json +54 -0
- package/src/components/step-indicator/step-indicator.django.html +29 -0
- package/src/components/step-indicator/step-indicator.html +243 -0
- package/src/components/summary-box/SummaryBox.tsx +41 -0
- package/src/components/summary-box/config.json +30 -0
- package/src/components/summary-box/summary-box.django.html +19 -0
- package/src/components/summary-box/summary-box.html +210 -0
- package/src/components/swap/Swap.tsx +47 -0
- package/src/components/swap/config.json +61 -0
- package/src/components/swap/swap.django.html +14 -0
- package/src/components/swap/swap.html +163 -0
- package/src/components/switch/Switch.tsx +73 -0
- package/src/components/switch/config.json +55 -0
- package/src/components/switch/switch.django.html +28 -0
- package/src/components/switch/switch.html +56 -0
- package/src/components/table/Table.tsx +334 -0
- package/src/components/table/TableBody.tsx +253 -0
- package/src/components/table/TableCell.tsx +37 -0
- package/src/components/table/TableContext.tsx +87 -0
- package/src/components/table/TableFoot.tsx +68 -0
- package/src/components/table/TableGroup.tsx +69 -0
- package/src/components/table/TableHead.tsx +139 -0
- package/src/components/table/TableRow.tsx +56 -0
- package/src/components/table/__pycache__/table_helper.cpython-312.pyc +0 -0
- package/src/components/table/config.json +297 -0
- package/src/components/table/hooks/useRowDetails.ts +34 -0
- package/src/components/table/hooks/useTableGroups.ts +61 -0
- package/src/components/table/hooks/useTableSelect.ts +82 -0
- package/src/components/table/hooks/useTableSort.ts +60 -0
- package/src/components/table/table-body.django.html +68 -0
- package/src/components/table/table-detail-row.django.html +14 -0
- package/src/components/table/table-foot.django.html +31 -0
- package/src/components/table/table-group.django.html +40 -0
- package/src/components/table/table-head.django.html +85 -0
- package/src/components/table/table-row.django.html +98 -0
- package/src/components/table/table.django.html +60 -0
- package/src/components/table/table.html +1186 -0
- package/src/components/table/table_helper.py +298 -0
- package/src/components/table/types.ts +68 -0
- package/src/components/tag/Tag.tsx +75 -0
- package/src/components/tag/config.json +54 -0
- package/src/components/tag/tag.django.html +39 -0
- package/src/components/tag/tag.html +45 -0
- package/src/components/tag-group/TagGroup.tsx +35 -0
- package/src/components/tag-group/config.json +24 -0
- package/src/components/tag-group/tag-group.django.html +11 -0
- package/src/components/tag-group/tag-group.html +36 -0
- package/src/components/task-list/TaskList.tsx +40 -0
- package/src/components/task-list/config.json +41 -0
- package/src/components/task-list/task-list.django.html +21 -0
- package/src/components/task-list/task-list.html +24 -0
- package/src/components/text-area/TextArea.tsx +78 -0
- package/src/components/text-area/config.json +78 -0
- package/src/components/text-area/text-area.django.html +53 -0
- package/src/components/text-area/text-area.html +59 -0
- package/src/components/theme-picker/ThemePicker.tsx +106 -0
- package/src/components/theme-picker/config.json +39 -0
- package/src/components/theme-picker/theme-picker.django.html +32 -0
- package/src/components/theme-picker/theme-picker.html +67 -0
- package/src/components/time-picker/TimePicker.jsx +87 -0
- package/src/components/time-picker/config.json +76 -0
- package/src/components/time-picker/time-picker.django.html +67 -0
- package/src/components/time-picker/time-picker.html +123 -0
- package/src/components/toggle/Toggle.tsx +80 -0
- package/src/components/toggle/config.json +69 -0
- package/src/components/toggle/toggle.django.html +19 -0
- package/src/components/toggle/toggle.html +85 -0
- package/src/components/tooltip/Tooltip.tsx +33 -0
- package/src/components/tooltip/config.json +33 -0
- package/src/components/tooltip/tooltip.django.html +5 -0
- package/src/components/tooltip/tooltip.html +57 -0
- package/src/components/villain/Villain.tsx +47 -0
- package/src/components/villain/config.json +44 -0
- package/src/components/villain/villain.django.html +19 -0
- package/src/components/villain/villain.html +39 -0
- package/src/declarations.d.ts +1 -0
- package/src/index.js +82 -0
- package/src/styles/core.scss +12 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import React, { useState } from 'react';
|
|
2
|
+
import Icon from '../icon/Icon';
|
|
3
|
+
import ClassNames from 'classnames';
|
|
4
|
+
|
|
5
|
+
export interface BannerProps extends React.HTMLAttributes<HTMLElement> {
|
|
6
|
+
id?: string;
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
tld?: string;
|
|
9
|
+
bannerText?: string;
|
|
10
|
+
bannerActionText?: string;
|
|
11
|
+
domainHeading?: string;
|
|
12
|
+
domainText?: string;
|
|
13
|
+
httpsHeading?: string;
|
|
14
|
+
httpsText?: React.ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export default function Banner({
|
|
19
|
+
id = 'gov-banner',
|
|
20
|
+
ariaLabel = 'Official government website',
|
|
21
|
+
tld = '.gov',
|
|
22
|
+
bannerText = 'An official website of the United States government',
|
|
23
|
+
bannerActionText = "Here's how you know",
|
|
24
|
+
domainHeading = `Official websites use ${tld}`,
|
|
25
|
+
domainText = `A ${tld} website belongs to an official government organization in the United States.`,
|
|
26
|
+
httpsHeading = `Secure ${tld} websites use HTTPS`,
|
|
27
|
+
httpsText = (
|
|
28
|
+
<>
|
|
29
|
+
A <strong>lock</strong> (<Icon name="lock" size={1} />) or <strong>https://</strong> means
|
|
30
|
+
you’ve safely connected to the {tld} website. Share sensitive information only on official, secure websites.
|
|
31
|
+
</>
|
|
32
|
+
),
|
|
33
|
+
className = '',
|
|
34
|
+
...props
|
|
35
|
+
}: BannerProps) {
|
|
36
|
+
const [expanded, setExpanded] = useState(false);
|
|
37
|
+
|
|
38
|
+
const toggleExpanded = (e: React.MouseEvent<HTMLButtonElement>) => {
|
|
39
|
+
// USWDS's own usa-banner behavior also delegates clicks on this same
|
|
40
|
+
// aria-controls button (see @uswds/uswds's usa-banner/src/index.js) —
|
|
41
|
+
// stop it from also firing so the two toggles don't cancel each other
|
|
42
|
+
// out, the same guard Accordion uses.
|
|
43
|
+
e.preventDefault();
|
|
44
|
+
e.stopPropagation();
|
|
45
|
+
setExpanded(!expanded);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const classes = ClassNames(
|
|
49
|
+
'usa-banner',
|
|
50
|
+
'usx-banner',
|
|
51
|
+
className
|
|
52
|
+
);
|
|
53
|
+
return (
|
|
54
|
+
<section id={id} className={classes} aria-label={ariaLabel} {...props}>
|
|
55
|
+
<div id={`${id}-accordion`} className="usa-accordion">
|
|
56
|
+
<header className="usa-banner__header">
|
|
57
|
+
<div className="usa-banner__inner">
|
|
58
|
+
<div className="grid-col-auto">
|
|
59
|
+
<img
|
|
60
|
+
aria-hidden="true"
|
|
61
|
+
className="usa-banner__header-flag"
|
|
62
|
+
src={((typeof window !== 'undefined' && (window as { usxBaseUrl?: string }).usxBaseUrl) || '/') + 'img/us_flag_small.png'}
|
|
63
|
+
alt=""
|
|
64
|
+
/>
|
|
65
|
+
</div>
|
|
66
|
+
<div
|
|
67
|
+
className="grid-col-fill tablet:grid-col-auto"
|
|
68
|
+
aria-hidden="true"
|
|
69
|
+
>
|
|
70
|
+
<p className="usa-banner__header-text">
|
|
71
|
+
{bannerText}
|
|
72
|
+
</p>
|
|
73
|
+
<p className="usa-banner__header-action">{bannerActionText}</p>
|
|
74
|
+
</div>
|
|
75
|
+
<button
|
|
76
|
+
type="button"
|
|
77
|
+
className="usa-accordion__button usa-banner__button"
|
|
78
|
+
aria-expanded={expanded}
|
|
79
|
+
aria-controls={`${id}-content`}
|
|
80
|
+
onClickCapture={toggleExpanded}
|
|
81
|
+
>
|
|
82
|
+
<span className="usa-banner__button-text">{bannerActionText}</span>
|
|
83
|
+
</button>
|
|
84
|
+
</div>
|
|
85
|
+
</header>
|
|
86
|
+
<div
|
|
87
|
+
id={`${id}-content`}
|
|
88
|
+
className="usa-banner__content usa-accordion__content"
|
|
89
|
+
hidden={!expanded}
|
|
90
|
+
>
|
|
91
|
+
<div className="grid-row grid-gap-lg">
|
|
92
|
+
<div className="usa-banner__guidance tablet:grid-col-6">
|
|
93
|
+
<p>
|
|
94
|
+
<strong>{domainHeading}</strong>
|
|
95
|
+
<br />
|
|
96
|
+
{domainText}
|
|
97
|
+
</p>
|
|
98
|
+
</div>
|
|
99
|
+
<div className="usa-banner__guidance tablet:grid-col-6">
|
|
100
|
+
<p>
|
|
101
|
+
<strong>{httpsHeading}</strong>
|
|
102
|
+
<br />
|
|
103
|
+
{httpsText}
|
|
104
|
+
</p>
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
</section>
|
|
110
|
+
);
|
|
111
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{% load components %}
|
|
2
|
+
{% load static %}
|
|
3
|
+
{# Django template for Banner #}
|
|
4
|
+
{% with effective_tld=tld|default:'.gov' %}
|
|
5
|
+
<section
|
|
6
|
+
id="{{ id|default:'gov-banner' }}"
|
|
7
|
+
class="usa-banner usx-banner {{ className }}"
|
|
8
|
+
aria-label="{{ ariaLabel|default:'Official government website' }}"
|
|
9
|
+
>
|
|
10
|
+
<div id="{{ id|default:'gov-banner' }}-accordion" class="usa-accordion">
|
|
11
|
+
<header class="usa-banner__header">
|
|
12
|
+
<div class="usa-banner__inner">
|
|
13
|
+
<div class="grid-col-auto">
|
|
14
|
+
<img
|
|
15
|
+
aria-hidden="true"
|
|
16
|
+
class="usa-banner__header-flag"
|
|
17
|
+
src="{% static 'img/us_flag_small.png' %}"
|
|
18
|
+
alt=""
|
|
19
|
+
/>
|
|
20
|
+
</div>
|
|
21
|
+
<div
|
|
22
|
+
class="grid-col-fill tablet:grid-col-auto"
|
|
23
|
+
aria-hidden="true"
|
|
24
|
+
>
|
|
25
|
+
<p class="usa-banner__header-text">
|
|
26
|
+
{{ bannerText|default:'An official website of the United States government' }}
|
|
27
|
+
</p>
|
|
28
|
+
<p class="usa-banner__header-action">{{ bannerActionText|default:"Here's how you know" }}</p>
|
|
29
|
+
</div>
|
|
30
|
+
<button
|
|
31
|
+
type="button"
|
|
32
|
+
class="usa-accordion__button usa-banner__button"
|
|
33
|
+
aria-expanded="false"
|
|
34
|
+
aria-controls="{{ id|default:'gov-banner' }}-content"
|
|
35
|
+
>
|
|
36
|
+
<span class="usa-banner__button-text">{{ bannerActionText|default:"Here's how you know" }}</span>
|
|
37
|
+
</button>
|
|
38
|
+
</div>
|
|
39
|
+
</header>
|
|
40
|
+
<div
|
|
41
|
+
class="usa-banner__content usa-accordion__content"
|
|
42
|
+
id="{{ id|default:'gov-banner' }}-content"
|
|
43
|
+
hidden
|
|
44
|
+
>
|
|
45
|
+
<div class="grid-row grid-gap-lg">
|
|
46
|
+
<div class="usa-banner__guidance tablet:grid-col-6">
|
|
47
|
+
<img
|
|
48
|
+
class="usa-banner__icon usa-media-block__img"
|
|
49
|
+
src="{% static 'img/icon-dot-gov.svg' %}"
|
|
50
|
+
role="img"
|
|
51
|
+
alt=""
|
|
52
|
+
aria-hidden="true"
|
|
53
|
+
/>
|
|
54
|
+
<div class="usa-media-block__body">
|
|
55
|
+
<p>
|
|
56
|
+
<strong>{% if domainHeading %}{{ domainHeading }}{% else %}Official websites use {{ effective_tld }}{% endif %}</strong><br/>
|
|
57
|
+
{% if domainText %}{{ domainText }}{% else %}A {{ effective_tld }} website belongs to an official government organization in the United States.{% endif %}
|
|
58
|
+
</p>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="usa-banner__guidance tablet:grid-col-6">
|
|
62
|
+
<img
|
|
63
|
+
class="usa-banner__icon usa-media-block__img"
|
|
64
|
+
src="{% static 'img/icon-https.svg' %}"
|
|
65
|
+
role="img"
|
|
66
|
+
alt=""
|
|
67
|
+
aria-hidden="true"
|
|
68
|
+
/>
|
|
69
|
+
<div class="usa-media-block__body">
|
|
70
|
+
<p>
|
|
71
|
+
<strong>{% if httpsHeading %}{{ httpsHeading }}{% else %}Secure {{ effective_tld }} websites use HTTPS{% endif %}</strong><br/>
|
|
72
|
+
{% if httpsText %}{{ httpsText|safe }}{% else %}A <strong>lock</strong> ({% icon name="lock" size=1 ariaHidden=True focusable=False %}{% endicon %}) or <strong>https://</strong> means you've safely connected to the {{ effective_tld }} website. Share sensitive information only on official, secure websites.{% endif %}
|
|
73
|
+
</p>
|
|
74
|
+
</div>
|
|
75
|
+
</div>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
</div>
|
|
79
|
+
</section>
|
|
80
|
+
{% endwith %}
|
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
<h3 class="site-preview-heading">.gov domains</h3>
|
|
2
|
+
<section
|
|
3
|
+
class="usa-banner usx-banner"
|
|
4
|
+
aria-label="Official website of the United States government"
|
|
5
|
+
>
|
|
6
|
+
<div class="usa-accordion">
|
|
7
|
+
<header class="usa-banner__header">
|
|
8
|
+
<div class="usa-banner__inner">
|
|
9
|
+
<div class="grid-col-auto">
|
|
10
|
+
<img
|
|
11
|
+
aria-hidden="true"
|
|
12
|
+
class="usa-banner__header-flag"
|
|
13
|
+
src="/img/us_flag_small.png"
|
|
14
|
+
alt=""
|
|
15
|
+
/>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="grid-col-fill tablet:grid-col-auto" aria-hidden="true">
|
|
18
|
+
<p class="usa-banner__header-text">
|
|
19
|
+
An official website of the United States government
|
|
20
|
+
</p>
|
|
21
|
+
<p class="usa-banner__header-action">Here’s how you know</p>
|
|
22
|
+
</div>
|
|
23
|
+
<button
|
|
24
|
+
type="button"
|
|
25
|
+
class="usa-accordion__button usa-banner__button"
|
|
26
|
+
aria-expanded="false"
|
|
27
|
+
aria-controls="gov-banner-default"
|
|
28
|
+
>
|
|
29
|
+
<span class="usa-banner__button-text">Here’s how you know</span>
|
|
30
|
+
</button>
|
|
31
|
+
</div>
|
|
32
|
+
</header>
|
|
33
|
+
<div
|
|
34
|
+
class="usa-banner__content usa-accordion__content"
|
|
35
|
+
id="gov-banner-default"
|
|
36
|
+
>
|
|
37
|
+
<div class="grid-row grid-gap-lg">
|
|
38
|
+
<div class="usa-banner__guidance tablet:grid-col-6">
|
|
39
|
+
<img
|
|
40
|
+
class="usa-banner__icon usa-media-block__img"
|
|
41
|
+
src="/img/icon-dot-gov.svg"
|
|
42
|
+
role="img"
|
|
43
|
+
alt=""
|
|
44
|
+
aria-hidden="true"
|
|
45
|
+
/>
|
|
46
|
+
<div class="usa-media-block__body">
|
|
47
|
+
<p>
|
|
48
|
+
<strong>Official websites use .gov</strong><br />A
|
|
49
|
+
<strong>.gov</strong> website belongs to an official government
|
|
50
|
+
organization in the United States.
|
|
51
|
+
</p>
|
|
52
|
+
</div>
|
|
53
|
+
</div>
|
|
54
|
+
<div class="usa-banner__guidance tablet:grid-col-6">
|
|
55
|
+
<img
|
|
56
|
+
class="usa-banner__icon usa-media-block__img"
|
|
57
|
+
src="/img/icon-https.svg"
|
|
58
|
+
role="img"
|
|
59
|
+
alt=""
|
|
60
|
+
aria-hidden="true"
|
|
61
|
+
/>
|
|
62
|
+
<div class="usa-media-block__body">
|
|
63
|
+
<p>
|
|
64
|
+
<strong>Secure .gov websites use HTTPS</strong><br />A
|
|
65
|
+
<strong>lock</strong> (
|
|
66
|
+
<span class="icon-lock"
|
|
67
|
+
><svg
|
|
68
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
69
|
+
width="52"
|
|
70
|
+
height="64"
|
|
71
|
+
viewBox="0 0 52 64"
|
|
72
|
+
class="usa-banner__lock-image"
|
|
73
|
+
role="img"
|
|
74
|
+
aria-labelledby="banner-lock-description-default"
|
|
75
|
+
focusable="false"
|
|
76
|
+
>
|
|
77
|
+
<title id="banner-lock-title-default">Lock</title>
|
|
78
|
+
<desc id="banner-lock-description-default">Locked padlock icon</desc>
|
|
79
|
+
<path
|
|
80
|
+
fill="#000000"
|
|
81
|
+
fill-rule="evenodd"
|
|
82
|
+
d="M26 0c10.493 0 19 8.507 19 19v9h3a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V32a4 4 0 0 1 4-4h3v-9C7 8.507 15.507 0 26 0zm0 8c-5.979 0-10.843 4.77-10.996 10.712L15 19v9h22v-9c0-6.075-4.925-11-11-11z"
|
|
83
|
+
/>
|
|
84
|
+
</svg> </span
|
|
85
|
+
>) or <strong>https://</strong> means you’ve safely connected to
|
|
86
|
+
the .gov website. Share sensitive information only on official,
|
|
87
|
+
secure websites.
|
|
88
|
+
</p>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
</section>
|
|
95
|
+
|
|
96
|
+
<h3 class="site-preview-heading">.mil domains</h3>
|
|
97
|
+
<section
|
|
98
|
+
class="usa-banner usx-banner"
|
|
99
|
+
aria-label="Official website of the United States government,"
|
|
100
|
+
>
|
|
101
|
+
<div class="usa-accordion">
|
|
102
|
+
<header class="usa-banner__header">
|
|
103
|
+
<div class="usa-banner__inner">
|
|
104
|
+
<div class="grid-col-auto">
|
|
105
|
+
<img
|
|
106
|
+
aria-hidden="true"
|
|
107
|
+
class="usa-banner__header-flag"
|
|
108
|
+
src="/img/us_flag_small.png"
|
|
109
|
+
alt=""
|
|
110
|
+
/>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="grid-col-fill tablet:grid-col-auto" aria-hidden="true">
|
|
113
|
+
<p class="usa-banner__header-text">
|
|
114
|
+
An official website of the United States government
|
|
115
|
+
</p>
|
|
116
|
+
<p class="usa-banner__header-action">Here’s how you know</p>
|
|
117
|
+
</div>
|
|
118
|
+
<button
|
|
119
|
+
type="button"
|
|
120
|
+
class="usa-accordion__button usa-banner__button"
|
|
121
|
+
aria-expanded="false"
|
|
122
|
+
aria-controls="gov-banner-dot-mil"
|
|
123
|
+
>
|
|
124
|
+
<span class="usa-banner__button-text">Here’s how you know</span>
|
|
125
|
+
</button>
|
|
126
|
+
</div>
|
|
127
|
+
</header>
|
|
128
|
+
<div
|
|
129
|
+
class="usa-banner__content usa-accordion__content"
|
|
130
|
+
id="gov-banner-dot-mil"
|
|
131
|
+
>
|
|
132
|
+
<div class="grid-row grid-gap-lg">
|
|
133
|
+
<div class="usa-banner__guidance tablet:grid-col-6">
|
|
134
|
+
<img
|
|
135
|
+
class="usa-banner__icon usa-media-block__img"
|
|
136
|
+
src="/img/icon-dot-gov.svg"
|
|
137
|
+
role="img"
|
|
138
|
+
alt=""
|
|
139
|
+
aria-hidden="true"
|
|
140
|
+
/>
|
|
141
|
+
<div class="usa-media-block__body">
|
|
142
|
+
<p>
|
|
143
|
+
<strong>Official websites use .mil</strong><br />A
|
|
144
|
+
<strong>.mil</strong> website belongs to an official U.S.
|
|
145
|
+
Department of Defense organization.
|
|
146
|
+
</p>
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
<div class="usa-banner__guidance tablet:grid-col-6">
|
|
150
|
+
<img
|
|
151
|
+
class="usa-banner__icon usa-media-block__img"
|
|
152
|
+
src="/img/icon-https.svg"
|
|
153
|
+
role="img"
|
|
154
|
+
alt=""
|
|
155
|
+
aria-hidden="true"
|
|
156
|
+
/>
|
|
157
|
+
<div class="usa-media-block__body">
|
|
158
|
+
<p>
|
|
159
|
+
<strong>Secure .mil websites use HTTPS</strong><br />A
|
|
160
|
+
<strong>lock</strong> (
|
|
161
|
+
<span class="icon-lock"
|
|
162
|
+
><svg
|
|
163
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
164
|
+
width="52"
|
|
165
|
+
height="64"
|
|
166
|
+
viewBox="0 0 52 64"
|
|
167
|
+
class="usa-banner__lock-image"
|
|
168
|
+
role="img"
|
|
169
|
+
aria-labelledby="banner-lock-description-dot-mil"
|
|
170
|
+
focusable="false"
|
|
171
|
+
>
|
|
172
|
+
<title id="banner-lock-title-dot-mil">Lock</title>
|
|
173
|
+
<desc id="banner-lock-description-dot-mil">Locked padlock icon</desc>
|
|
174
|
+
<path
|
|
175
|
+
fill="#000000"
|
|
176
|
+
fill-rule="evenodd"
|
|
177
|
+
d="M26 0c10.493 0 19 8.507 19 19v9h3a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V32a4 4 0 0 1 4-4h3v-9C7 8.507 15.507 0 26 0zm0 8c-5.979 0-10.843 4.77-10.996 10.712L15 19v9h22v-9c0-6.075-4.925-11-11-11z"
|
|
178
|
+
/>
|
|
179
|
+
</svg> </span
|
|
180
|
+
>) or <strong>https://</strong> means you’ve safely connected to
|
|
181
|
+
the .mil website. Share sensitive information only on official,
|
|
182
|
+
secure websites.
|
|
183
|
+
</p>
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
</section>
|
|
190
|
+
|
|
191
|
+
<h3 class="site-preview-heading">.gov domains (Spanish)</h3>
|
|
192
|
+
<section
|
|
193
|
+
class="usa-banner usx-banner"
|
|
194
|
+
aria-label="Un sitio oficial del Gobierno de Estados Unidos"
|
|
195
|
+
>
|
|
196
|
+
<div class="usa-accordion">
|
|
197
|
+
<header class="usa-banner__header">
|
|
198
|
+
<div class="usa-banner__inner">
|
|
199
|
+
<div class="grid-col-auto">
|
|
200
|
+
<img
|
|
201
|
+
aria-hidden="true"
|
|
202
|
+
class="usa-banner__header-flag"
|
|
203
|
+
src="/img/us_flag_small.png"
|
|
204
|
+
alt=""
|
|
205
|
+
/>
|
|
206
|
+
</div>
|
|
207
|
+
<div class="grid-col-fill tablet:grid-col-auto" aria-hidden="true">
|
|
208
|
+
<p class="usa-banner__header-text">
|
|
209
|
+
Un sitio oficial del Gobierno de Estados Unidos
|
|
210
|
+
</p>
|
|
211
|
+
<p class="usa-banner__header-action">
|
|
212
|
+
Así es como usted puede verificarlo
|
|
213
|
+
</p>
|
|
214
|
+
</div>
|
|
215
|
+
<button
|
|
216
|
+
type="button"
|
|
217
|
+
class="usa-accordion__button usa-banner__button"
|
|
218
|
+
aria-expanded="false"
|
|
219
|
+
aria-controls="gov-banner-lang-es"
|
|
220
|
+
>
|
|
221
|
+
<span class="usa-banner__button-text"
|
|
222
|
+
>Así es como usted puede verificarlo</span
|
|
223
|
+
>
|
|
224
|
+
</button>
|
|
225
|
+
</div>
|
|
226
|
+
</header>
|
|
227
|
+
<div
|
|
228
|
+
class="usa-banner__content usa-accordion__content"
|
|
229
|
+
id="gov-banner-lang-es"
|
|
230
|
+
>
|
|
231
|
+
<div class="grid-row grid-gap-lg">
|
|
232
|
+
<div class="usa-banner__guidance tablet:grid-col-6">
|
|
233
|
+
<img
|
|
234
|
+
class="usa-banner__icon usa-media-block__img"
|
|
235
|
+
src="/img/icon-dot-gov.svg"
|
|
236
|
+
role="img"
|
|
237
|
+
alt=""
|
|
238
|
+
aria-hidden="true"
|
|
239
|
+
/>
|
|
240
|
+
<div class="usa-media-block__body">
|
|
241
|
+
<p>
|
|
242
|
+
<strong>Los sitios web oficiales usan .gov</strong><br />Un sitio
|
|
243
|
+
web <strong>.gov</strong> pertenece a una organización oficial del
|
|
244
|
+
Gobierno de Estados Unidos.
|
|
245
|
+
</p>
|
|
246
|
+
</div>
|
|
247
|
+
</div>
|
|
248
|
+
<div class="usa-banner__guidance tablet:grid-col-6">
|
|
249
|
+
<img
|
|
250
|
+
class="usa-banner__icon usa-media-block__img"
|
|
251
|
+
src="/img/icon-https.svg"
|
|
252
|
+
role="img"
|
|
253
|
+
alt=""
|
|
254
|
+
aria-hidden="true"
|
|
255
|
+
/>
|
|
256
|
+
<div class="usa-media-block__body">
|
|
257
|
+
<p>
|
|
258
|
+
<strong>Los sitios web seguros .gov usan HTTPS</strong><br />Un
|
|
259
|
+
<strong>candado</strong> (
|
|
260
|
+
<span class="icon-lock"
|
|
261
|
+
><svg
|
|
262
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
263
|
+
width="52"
|
|
264
|
+
height="64"
|
|
265
|
+
viewBox="0 0 52 64"
|
|
266
|
+
class="usa-banner__lock-image"
|
|
267
|
+
role="img"
|
|
268
|
+
aria-labelledby="banner-lock-description-spanish"
|
|
269
|
+
focusable="false"
|
|
270
|
+
>
|
|
271
|
+
<title id="banner-lock-title-spanish">Lock</title>
|
|
272
|
+
<desc id="banner-lock-description-spanish">Locked padlock icon</desc>
|
|
273
|
+
<path
|
|
274
|
+
fill="#000000"
|
|
275
|
+
fill-rule="evenodd"
|
|
276
|
+
d="M26 0c10.493 0 19 8.507 19 19v9h3a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V32a4 4 0 0 1 4-4h3v-9C7 8.507 15.507 0 26 0zm0 8c-5.979 0-10.843 4.77-10.996 10.712L15 19v9h22v-9c0-6.075-4.925-11-11-11z"
|
|
277
|
+
/>
|
|
278
|
+
</svg> </span
|
|
279
|
+
>) o <strong>https://</strong> significa que usted se conectó de
|
|
280
|
+
forma segura a un sitio web .gov. Comparta información sensible
|
|
281
|
+
sólo en sitios web oficiales y seguros.
|
|
282
|
+
</p>
|
|
283
|
+
</div>
|
|
284
|
+
</div>
|
|
285
|
+
</div>
|
|
286
|
+
</div>
|
|
287
|
+
</div>
|
|
288
|
+
</section>
|
|
289
|
+
|
|
290
|
+
<h3 class="site-preview-heading">.mil domains (Spanish)</h3>
|
|
291
|
+
<section
|
|
292
|
+
class="usa-banner usx-banner"
|
|
293
|
+
aria-label="Un sitio oficial del Gobierno de Estados Unidos,"
|
|
294
|
+
>
|
|
295
|
+
<div class="usa-accordion">
|
|
296
|
+
<header class="usa-banner__header">
|
|
297
|
+
<div class="usa-banner__inner">
|
|
298
|
+
<div class="grid-col-auto">
|
|
299
|
+
<img
|
|
300
|
+
aria-hidden="true"
|
|
301
|
+
class="usa-banner__header-flag"
|
|
302
|
+
src="/img/us_flag_small.png"
|
|
303
|
+
alt=""
|
|
304
|
+
/>
|
|
305
|
+
</div>
|
|
306
|
+
<div class="grid-col-fill tablet:grid-col-auto" aria-hidden="true">
|
|
307
|
+
<p class="usa-banner__header-text">
|
|
308
|
+
Un sitio oficial del Gobierno de Estados Unidos
|
|
309
|
+
</p>
|
|
310
|
+
<p class="usa-banner__header-action">
|
|
311
|
+
Así es como usted puede verificarlo
|
|
312
|
+
</p>
|
|
313
|
+
</div>
|
|
314
|
+
<button
|
|
315
|
+
type="button"
|
|
316
|
+
class="usa-accordion__button usa-banner__button"
|
|
317
|
+
aria-expanded="false"
|
|
318
|
+
aria-controls="gov-banner-dot-mil-lang-es"
|
|
319
|
+
>
|
|
320
|
+
<span class="usa-banner__button-text"
|
|
321
|
+
>Así es como usted puede verificarlo</span
|
|
322
|
+
>
|
|
323
|
+
</button>
|
|
324
|
+
</div>
|
|
325
|
+
</header>
|
|
326
|
+
<div
|
|
327
|
+
class="usa-banner__content usa-accordion__content"
|
|
328
|
+
id="gov-banner-dot-mil-lang-es"
|
|
329
|
+
>
|
|
330
|
+
<div class="grid-row grid-gap-lg">
|
|
331
|
+
<div class="usa-banner__guidance tablet:grid-col-6">
|
|
332
|
+
<img
|
|
333
|
+
class="usa-banner__icon usa-media-block__img"
|
|
334
|
+
src="/img/icon-dot-gov.svg"
|
|
335
|
+
role="img"
|
|
336
|
+
alt=""
|
|
337
|
+
aria-hidden="true"
|
|
338
|
+
/>
|
|
339
|
+
<div class="usa-media-block__body">
|
|
340
|
+
<p>
|
|
341
|
+
<strong>Los sitios web oficiales usan .mil</strong><br />Un sitio
|
|
342
|
+
web <strong>.mil</strong> pertenece a una organización oficial del
|
|
343
|
+
Departamento de Defensa de EE. UU.
|
|
344
|
+
</p>
|
|
345
|
+
</div>
|
|
346
|
+
</div>
|
|
347
|
+
<div class="usa-banner__guidance tablet:grid-col-6">
|
|
348
|
+
<img
|
|
349
|
+
class="usa-banner__icon usa-media-block__img"
|
|
350
|
+
src="/img/icon-https.svg"
|
|
351
|
+
role="img"
|
|
352
|
+
alt=""
|
|
353
|
+
aria-hidden="true"
|
|
354
|
+
/>
|
|
355
|
+
<div class="usa-media-block__body">
|
|
356
|
+
<p>
|
|
357
|
+
<strong>Los sitios web seguros .mil usan HTTPS</strong><br />Un
|
|
358
|
+
<strong>candado</strong> (
|
|
359
|
+
<span class="icon-lock"
|
|
360
|
+
><svg
|
|
361
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
362
|
+
width="52"
|
|
363
|
+
height="64"
|
|
364
|
+
viewBox="0 0 52 64"
|
|
365
|
+
class="usa-banner__lock-image"
|
|
366
|
+
role="img"
|
|
367
|
+
aria-labelledby="banner-lock-description-dot-mil-spanish"
|
|
368
|
+
focusable="false"
|
|
369
|
+
>
|
|
370
|
+
<title id="banner-lock-title-dot-mil-spanish">Lock</title>
|
|
371
|
+
<desc id="banner-lock-description-dot-mil-spanish">Locked padlock icon</desc>
|
|
372
|
+
<path
|
|
373
|
+
fill="#000000"
|
|
374
|
+
fill-rule="evenodd"
|
|
375
|
+
d="M26 0c10.493 0 19 8.507 19 19v9h3a4 4 0 0 1 4 4v28a4 4 0 0 1-4 4H4a4 4 0 0 1-4-4V32a4 4 0 0 1 4-4h3v-9C7 8.507 15.507 0 26 0zm0 8c-5.979 0-10.843 4.77-10.996 10.712L15 19v9h22v-9c0-6.075-4.925-11-11-11z"
|
|
376
|
+
/>
|
|
377
|
+
</svg> </span
|
|
378
|
+
>) o <strong>https://</strong> significa que usted se conectó de
|
|
379
|
+
forma segura a un sitio web .mil. Comparta información sensible
|
|
380
|
+
sólo en sitios web oficiales y seguros.
|
|
381
|
+
</p>
|
|
382
|
+
</div>
|
|
383
|
+
</div>
|
|
384
|
+
</div>
|
|
385
|
+
</div>
|
|
386
|
+
</div>
|
|
387
|
+
</section>
|
|
388
|
+
|
|
389
|
+
<h3 class="site-preview-heading">Web Component Variant</h3>
|
|
390
|
+
<!-- The script tag should go in the head of your page, if possible -->
|
|
391
|
+
<script src="/assets/uswds/components/usa-banner.js.mjs" type="module"></script>
|
|
392
|
+
<usa-banner></usa-banner>
|
|
393
|
+
|
|
394
|
+
<h3 class="site-preview-heading">Web Component Variant (Spanish)</h3>
|
|
395
|
+
<!-- The script tag should go in the head of your page, if possible -->
|
|
396
|
+
<script src="/assets/uswds/components/usa-banner.js.mjs" type="module"></script>
|
|
397
|
+
<usa-banner
|
|
398
|
+
lang="es"
|
|
399
|
+
class="usx-banner"
|
|
400
|
+
></usa-banner>
|
|
401
|
+
|
|
402
|
+
<h3 class="site-preview-heading">Web Component Variant (.mil domain, customized)</h3>
|
|
403
|
+
<!-- The script tag should go in the head of your page, if possible -->
|
|
404
|
+
<script src="/assets/uswds/components/usa-banner.js.mjs" type="module"></script>
|
|
405
|
+
<usa-banner
|
|
406
|
+
tld="mil"
|
|
407
|
+
class="usx-banner"
|
|
408
|
+
style="--theme-banner-background-color: #e1f3f8;"
|
|
409
|
+
>
|
|
410
|
+
<div slot="domain-text">A <strong>.mil</strong> website belongs to an official U.S. Department of Defense organization.</div>
|
|
411
|
+
</usa-banner>
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "banner",
|
|
3
|
+
"template": "banner/banner.django.html",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"props": {
|
|
6
|
+
"id": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"description": "The unique ID for the banner, used for aria-controls and element targeting."
|
|
9
|
+
},
|
|
10
|
+
"ariaLabel": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "The custom aria label users can override."
|
|
13
|
+
},
|
|
14
|
+
"tld": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "The top level domain for the site. Defaults to `.gov`"
|
|
17
|
+
},
|
|
18
|
+
"bannerText": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "The text for official government website text."
|
|
21
|
+
},
|
|
22
|
+
"bannerActionText": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "Action text label \"Here's how you know.\""
|
|
25
|
+
},
|
|
26
|
+
"domainHeading": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "Heading text for the domain section."
|
|
29
|
+
},
|
|
30
|
+
"domainText": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "Body text for the domain section."
|
|
33
|
+
},
|
|
34
|
+
"httpsHeading": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "Heading text for HTTPS section."
|
|
37
|
+
},
|
|
38
|
+
"httpsText": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "Body text for the HTTPS section."
|
|
41
|
+
},
|
|
42
|
+
"className": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "Additional classes to add to the banner"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|