Skip to content

Commit

Permalink
change logo based on width
Browse files Browse the repository at this point in the history
  • Loading branch information
jenbreese committed Apr 11, 2024
1 parent 074f7a9 commit 35c35ed
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions src/components/elements/lockup/lockup-logo.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
import {Maybe} from "@lib/gql/__generated__/drupal.d";
import PressFooterLogoLg from "@components/images/logo-lg";
// import PressFooterLogoXs from "@components/images/logo-xs";
import PressFooterLogoXs from "@components/images/logo-xs";

const LockupLogo = ({logoUrl, siteName = ""}: { logoUrl?: Maybe<string>, siteName?: Maybe<string> }) => {

return (
<>
{logoUrl &&
<picture>
<img
src={logoUrl}
alt={`${siteName} Logo`}
className="object-contain max-w-[400px] max-h-[35px] h-auto"
/>
</picture>
}
{!logoUrl &&
<PressFooterLogoLg className="block"/>
}
<div className="hidden sm:block">
{!logoUrl &&
<PressFooterLogoLg/>
}
</div>
<div className="sm:hidden">
{!logoUrl &&
<PressFooterLogoXs/>
}
</div>
</>
)
}
Expand Down

0 comments on commit 35c35ed

Please sign in to comment.