diff --git a/src/stable/components/organisms/GovBanner/GovBanner.css b/src/stable/components/organisms/GovBanner/GovBanner.css new file mode 100644 index 00000000..e9292fb9 --- /dev/null +++ b/src/stable/components/organisms/GovBanner/GovBanner.css @@ -0,0 +1,69 @@ +.banner-container { + width: 100%; + background-color: #004445; + color: white; + } + + .banner-header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 0.75rem 1rem; + } + + .title-section { + display: flex; + align-items: center; + gap: 0.5rem; + flex: 1; + } + + .official-text { + display: flex; + gap: 0.25rem; + flex-wrap: wrap; + } + + .know-text { + text-decoration: underline; + } + + .chevron-container { + background: none; + border: none; + padding: 0.5rem; + color: inherit; + cursor: pointer; + } + + .chevron-container svg { + transition: transform 0.2s ease; + } + + .chevron-container[aria-expanded="true"] svg { + transform: rotate(180deg); + } + + .content-container { + background-color: #f0f0f0; + padding: 1rem; + color: #333; + } + + @media (max-width: 768px) { + .banner-header { + flex-direction: column; + align-items: flex-start; + gap: 0.5rem; + } + + .title-section { + flex-direction: column; + align-items: flex-start; + } + + .chevron-container { + align-self: flex-end; + margin-top: -2rem; + } + } \ No newline at end of file diff --git a/src/stable/components/organisms/GovBanner/GovBanner.js b/src/stable/components/organisms/GovBanner/GovBanner.js index 6bb41d3e..5a997b31 100644 --- a/src/stable/components/organisms/GovBanner/GovBanner.js +++ b/src/stable/components/organisms/GovBanner/GovBanner.js @@ -1,11 +1,15 @@ import styles from '!!raw-loader!./GovBanner.css'; -import varStyles from '!!raw-loader!../../../../shared/vairbale.css'; -import bootstrapStyles from '!!raw-loader!../../../../shared/themed-bootstrapStyles.css'; - +import varStyles from '!!raw-loader!../../../../shared/variables.css'; +import bootstrapStyles from '!!raw-loader!../../../../shared/themed-bootstrap.css'; const template = document.createElement('template'); template.innerHTML = ` +