Skip to content

Commit

Permalink
temporary images for intro
Browse files Browse the repository at this point in the history
  • Loading branch information
SheepTester committed Sep 22, 2024
1 parent 327ab82 commit 551e9bd
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 1 deletion.
26 changes: 25 additions & 1 deletion src/components/onboarding/Intro/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
import TempImage from '@/public/assets/graphics/cat404.png';
import Image from 'next/image';
import styles from './style.module.scss';

const Intro = () => {
return <p>hey</p>;
return (
<div className={styles.wrapper}>
<Image
src={TempImage}
alt="temp image"
width={256}
height={256}
className={styles.image}
style={{ animationDelay: '0.2s' }}
/>
<Image src={TempImage} alt="temp image" width={256} height={256} className={styles.image} />
<Image
src={TempImage}
alt="temp image"
width={256}
height={256}
className={styles.image}
style={{ animationDelay: '0.4s' }}
/>
</div>
);
};

export default Intro;
27 changes: 27 additions & 0 deletions src/components/onboarding/Intro/style.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@use 'src/styles/vars.scss' as vars;

@keyframes appear {
from {
filter: blur(2rem);
opacity: 0;
transform: scale(0.5);
}

to {
filter: blur(0);
opacity: 1;
transform: scale(1);
}
}

.wrapper {
align-items: center;
display: flex;
flex: auto;
gap: 1rem;
justify-content: center;

.image {
animation: appear 1.5s backwards;
}
}
11 changes: 11 additions & 0 deletions src/components/onboarding/Intro/style.module.scss.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export type Styles = {
appear: string;
image: string;
wrapper: string;
};

export type ClassNames = keyof Styles;

declare const styles: Styles;

export default styles;

0 comments on commit 551e9bd

Please sign in to comment.