Skip to content

Commit

Permalink
shelter: show icon in header and footer
Browse files Browse the repository at this point in the history
  • Loading branch information
tglaz committed Dec 21, 2024
1 parent 48777b0 commit bc631fd
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 2 deletions.
10 changes: 9 additions & 1 deletion apps/shelter-web/src/app/layout/footer.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { BaShelterLogoIcon } from '@monorepo/react/icons';
import { ReactElement } from 'react';

type IParams = {
Expand All @@ -19,7 +20,14 @@ export function Footer(props: IParams): ReactElement {

return (
<footer className={parentCss}>
<div className="border-t-[0.5px] border-white pt-6 flex justify-end">
<div className="flex items-center">
<BaShelterLogoIcon className="h-8" />
<div className="text-white flex ml-3 text-2xl">
<div className="font-normal">Shelters</div>
<div className="font-semibold">LA</div>
</div>
</div>
<div className="mt-6 border-t-[0.5px] border-white pt-6 flex justify-end">
<div className="text-xs">
© 2024 Better Angels Inc. All rights reserved.
</div>
Expand Down
13 changes: 12 additions & 1 deletion apps/shelter-web/src/app/layout/header.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { BaShelterLogoIcon } from '@monorepo/react/icons';
import { ReactElement } from 'react';

type IParams = {
Expand All @@ -16,5 +17,15 @@ export function Header(props: IParams): ReactElement {
'text-white',
].join(' ');

return <header className={parentCss}>hello shelter-app</header>;
return (
<header className={parentCss}>
<div className="flex items-center">
<BaShelterLogoIcon className="h-4" />
<div className="text-white flex ml-2 text-sm">
<div className="font-normal">Shelters</div>
<div className="font-semibold">LA</div>
</div>
</div>
</header>
);
}
1 change: 1 addition & 0 deletions apps/shelter-web/src/assets/styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

:root {
--font-primary: 'Poppins', 'sans-serif';
--color-brand-yellow: #fff82e;
--color-primary-20: #052b73;
--color-primary-60: #216af8;
--color-steel-blue: #375c76;
Expand Down
1 change: 1 addition & 0 deletions apps/shelter-web/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module.exports = {
primary: ['Poppins', 'sans-serif'],
},
colors: {
'brand-yellow': 'var(--color-brand-yellow)',
'primary-20': 'var(--color-primary-20)',
'primary-60': 'var(--color-primary-60)',
'steel-blue': 'var(--color-steel-blue)',
Expand Down
7 changes: 7 additions & 0 deletions libs/assets/src/icons/svg/better_angels/betterAngelsLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions libs/react/icons/src/lib/components/baShelterLogoIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { SVGProps } from 'react';
import BetterAngelsLogoIcon from './betterAngelsLogoIcon';

interface IProps extends SVGProps<SVGSVGElement> {
className?: string;
}

export default function BaShelterLogo(props?: IProps) {
return <BetterAngelsLogoIcon fill="#fff82e" {...props} />;
}
4 changes: 4 additions & 0 deletions libs/react/icons/src/lib/components/betterAngelsLogoIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import svg from '../../../../../assets/src/icons/svg/better_angels/betterAngelsLogo.svg';
import { createSvgComponent } from '../../toComponent';

export default createSvgComponent(svg);
2 changes: 2 additions & 0 deletions libs/react/icons/src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export { default as BaShelterLogoIcon } from './components/baShelterLogoIcon';
export { default as BetterAngelsLogoIcon } from './components/betterAngelsLogoIcon';
export { default as CloseIcon } from './components/closeIcon';
export { default as FilterIcon } from './components/filterIcon';
export { default as FindMeIcon } from './components/findMeIcon';
Expand Down

0 comments on commit bc631fd

Please sign in to comment.