Skip to content

Commit

Permalink
feat: apply pull-up & pull-down animations
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Menegidio committed Jul 23, 2024
1 parent d9d072f commit 841769b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/app/_components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export const Header = () => (
>
<Content>
<div className={'flex flex-col gap-2'}>
<Avatar src={'./avatar.jpeg'} />
<Avatar className="animate-pull-down opacity-0" src={'./avatar.jpeg'} />

<div className="max-w-[550px]">
<div className="animate-pull-up max-w-[550px] opacity-0">
<Heading variant={'title'}>Bruno Menegidio</Heading>
<Heading variant={'title'}>Software Engineer 🧑🏻‍💻❤️</Heading>
<MacOSWindow className={'my-10'}>
Expand All @@ -22,5 +22,6 @@ export const Header = () => (
</div>
</div>
</Content>
x
</header>
);
11 changes: 9 additions & 2 deletions src/app/_components/header/avatar/Avatar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import clsx from 'clsx';
import Image from 'next/image';

import { Props } from '@/app/_components/header/avatar/types/props';

export const Avatar = ({ src }: Props) => (
<Image src={src} alt={'Profile'} className={'rounded-full ring-2 ring-gray-400'} width={75} height={75} />
export const Avatar = ({ src, className }: Props) => (
<Image
src={src}
alt={'Profile'}
className={clsx('rounded-full ring-2 ring-gray-400', className)}
width={75}
height={75}
/>
);
1 change: 1 addition & 0 deletions src/app/_components/header/avatar/types/props.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export type Props = {
src: string;
className?: string;
};

0 comments on commit 841769b

Please sign in to comment.