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 f983a4e
Show file tree
Hide file tree
Showing 7 changed files with 36 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 { BetterangelsLogoIcon } 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">
<BetterangelsLogoIcon className="h-8 text-brand-yellow" />
<div className="text-white flex ml-2 text-sm">
<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 { BetterangelsLogoIcon } 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">
<BetterangelsLogoIcon className="h-4 text-brand-yellow" />
<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
8 changes: 8 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.
4 changes: 4 additions & 0 deletions libs/react/icons/src/lib/components/betterangelsLogo.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);
1 change: 1 addition & 0 deletions libs/react/icons/src/lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export { default as BetterangelsLogoIcon } from './components/betterangelsLogo';
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 f983a4e

Please sign in to comment.