Skip to content

Commit 3f64867

Browse files
authored
Hero illustration animation (#101)
1 parent 6f31e14 commit 3f64867

File tree

7 files changed

+757
-18
lines changed

7 files changed

+757
-18
lines changed

.storybook/main.js

+8-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,14 @@ module.exports = {
2121
presets: [["react-app", { flow: false, typescript: true }]],
2222
},
2323
});
24-
config.resolve.extensions.push(".ts", ".tsx");
24+
25+
config.module.rules.push({
26+
test: /\.mjs$/,
27+
include: /node_modules/,
28+
type: "javascript/auto",
29+
});
30+
31+
config.resolve.extensions.push(".ts", ".tsx", ".mjs");
2532

2633
return config;
2734
},

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"dependencies": {
6868
"clsx": "^1.1.1",
6969
"date-fns": "^2.28.0",
70+
"framer-motion": "^10.11.2",
7071
"react-intl": "^6.2.5",
7172
"react-text-transition": "^1.3.0",
7273
"react-use": "^17.3.2"

pnpm-lock.yaml

+38-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import React from "react";
2+
import { HeroIllustration } from "./hero-illustration";
3+
4+
export default {
5+
title: "Hero Illustration",
6+
};
7+
8+
export const Primary = () => {
9+
return (
10+
<div className="h-screen w-screen">
11+
<HeroIllustration />
12+
</div>
13+
);
14+
};

0 commit comments

Comments
 (0)