Skip to content

Commit

Permalink
[Issue #3216] Feature/brand rebase (#3385)
Browse files Browse the repository at this point in the history
## Summary
Fixes #3216

### Time to review: __0 mins__

## Changes proposed
Merges feature/brand into main after rebasing against main to allow the
merge to succeed

## Context for reviewers
Reviews have already occurred as work was being brought into the
feature/brand branch.

---------

Co-authored-by: Andy Cochran <[email protected]>
Co-authored-by: acouch <[email protected]>
  • Loading branch information
3 people authored Jan 6, 2025
1 parent cfbc777 commit 42c8f34
Show file tree
Hide file tree
Showing 27 changed files with 638 additions and 101 deletions.
Binary file added frontend/public/img/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/img/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/img/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/img/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/img/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/public/img/favicon.ico
Binary file not shown.
Binary file added frontend/public/img/grants-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions frontend/public/img/grants-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/img/grants-star-symbol.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion frontend/src/app/[locale]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default function Home({ params: { locale } }: LocalizedPageProps) {
return (
<>
<Hero />
<BetaAlert />
<BetaAlert containerClasses="margin-top-5" />
<IndexGoalContent />
<ProcessAndResearchContent />
</>
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/app/[locale]/process/ProcessIntro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ const ProcessIntro = () => {
{t("intro.title")}
</h1>
<Grid row gap>
<p className="tablet-lg:font-sans-xl line-height-sans-3 usa-intro margin-top-2">
{t("intro.content")}
</p>
<Grid>
<p className="usa-intro margin-top-2">{t("intro.content")}</p>
</Grid>
</Grid>
<Grid row gap="lg" className="margin-top-2">
{keys.map((key) => {
Expand All @@ -30,7 +30,7 @@ const ProcessIntro = () => {
tabletLg={{ col: 4 }}
>
<div className="border radius-md border-base-lighter padding-x-205">
<h2 className="tablet-lg:font-serif-lg">{title}</h2>
<h2 className="tablet-lg:font-sans-lg">{title}</h2>
<p className="margin-top-0 font-sans-md line-height-sans-4 desktop-lg:line-height-sans-6">
{content}
</p>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/[locale]/process/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function Process({ params: { locale } }: LocalizedPageProps) {
setRequestLocale(locale);
return (
<>
<BetaAlert />
<BetaAlert containerClasses="margin-top-5" />
<Breadcrumbs breadcrumbList={PROCESS_CRUMBS} />
<ProcessIntro />
<div className="padding-top-4 bg-gray-5">
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/[locale]/research/ResearchImpact.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const ResearchImpact = () => {
tabletLg={{ col: 4 }}
>
<div className="border radius-md border-base-lighter padding-x-205">
<h3 className="tablet-lg:font-serif-lg">{title}</h3>
<h3 className="tablet-lg:font-sans-lg">{title}</h3>
<p className="margin-top-0 font-sans-md line-height-sans-4 desktop-lg:line-height-sans-6">
{content}
</p>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/[locale]/research/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function Research({ params: { locale } }: LocalizedPageProps) {
setRequestLocale(locale);
return (
<>
<BetaAlert />
<BetaAlert containerClasses="margin-top-5" />
<Breadcrumbs breadcrumbList={RESEARCH_CRUMBS} />
<ResearchIntro />
<ResearchMethodology />
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/[locale]/search/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function SearchLayout({
setRequestLocale(locale);
return (
<>
<BetaAlert />
<BetaAlert containerClasses="margin-top-5" />
<Breadcrumbs breadcrumbList={SEARCH_CRUMBS} />
<SearchCallToAction />
{children}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/[locale]/subscribe/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function Subscribe({ params: { locale } }: LocalizedPageProps) {

return (
<>
<BetaAlert />
<BetaAlert containerClasses="margin-top-5" />
<Breadcrumbs breadcrumbList={SUBSCRIBE_CRUMBS} />

<GridContainer className="padding-bottom-5 tablet:padding-top-0 desktop-lg:padding-top-0 border-bottom-2px border-base-lightest">
Expand Down
25 changes: 16 additions & 9 deletions frontend/src/components/BetaAlert.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
import { useTranslations } from "next-intl";
import { GridContainer, Alert as USWDSAlert } from "@trussworks/react-uswds";

import FullWidthAlert from "./FullWidthAlert";
type Props = {
containerClasses?: string;
};

const BetaAlert = () => {
const BetaAlert = ({ containerClasses }: Props) => {
const t = useTranslations("Beta_alert");
const alert = t.rich("alert", {
LinkToGrants: (content) => <a href="https://www.grants.gov">{content}</a>,
});

return (
<div
data-testid="beta-alert"
className="desktop:position-sticky top-0 z-200"
>
<FullWidthAlert type="info" heading={t("alert_title")}>
{alert}
</FullWidthAlert>
<div data-testid="beta-alert" className={containerClasses}>
<GridContainer>
<USWDSAlert
type="warning"
headingLevel="h2"
heading={t("alert_title")}
noIcon
>
{alert}
</USWDSAlert>
</GridContainer>
</div>
);
};
Expand Down
Loading

0 comments on commit 42c8f34

Please sign in to comment.