Skip to content

Commit 45c9dc8

Browse files
authored
Merge pull request #28 from basvandriel/feature/hero-redesign
Refactor components and improve animations
2 parents a763574 + a6a9605 commit 45c9dc8

File tree

8 files changed

+255
-154
lines changed

8 files changed

+255
-154
lines changed

src/CV/CVBadge.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
import {
2-
View,
3-
Text,
4-
} from "@react-pdf/renderer";
1+
import { View, Text } from "@react-pdf/renderer";
52
import { TAILWIND_XS_FONTSIZE_IN_PT } from "./constants";
63
import tw from "./tailwind";
74

8-
const CVBadge = ({ children }: any) => {
5+
interface CVBadgeProps {
6+
children: React.ReactNode;
7+
}
8+
9+
const CVBadge = ({ children }: CVBadgeProps) => {
910
return (
1011
<View
1112
style={[
@@ -25,7 +26,7 @@ const CVBadge = ({ children }: any) => {
2526
{
2627
fontSize: TAILWIND_XS_FONTSIZE_IN_PT,
2728
fontFamily: "Garamond",
28-
}
29+
},
2930
]}
3031
>
3132
{children}
@@ -34,4 +35,4 @@ const CVBadge = ({ children }: any) => {
3435
);
3536
};
3637

37-
export default CVBadge;
38+
export default CVBadge;

src/CV/SkillsSection.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@ import tw from "./tailwind";
33
import { HEADER_FONT_SIZE, TAILWIND_SM_FONTSIZE_IN_PT } from "./constants";
44
import { useTranslation } from "react-i18next";
55

6-
const ListItem = ({ children }: any) => {
6+
interface ListItemProps {
7+
children: React.ReactNode;
8+
}
9+
10+
const ListItem = ({ children }: ListItemProps) => {
711
return (
812
<View
913
style={{

src/OpenToWorkBox.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { XMarkIcon } from "@heroicons/react/24/outline";
22
import { useTranslation } from "react-i18next";
33

44
type OpenToWorBoxAttrs = {
5-
onClose: any;
5+
onClose: () => void;
66
};
77

88
const OpenToWorBox = ({ onClose }: OpenToWorBoxAttrs) => {
9-
const { t } = useTranslation()
9+
const { t } = useTranslation();
1010

1111
return (
1212
<div className="relative text-white py-2 w-full bg-blue-700">
@@ -22,7 +22,7 @@ const OpenToWorBox = ({ onClose }: OpenToWorBoxAttrs) => {
2222
>
2323
<circle cx="1" cy="1" r="1" />
2424
</svg>
25-
{t('opentowork_banner')}
25+
{t("opentowork_banner")}
2626
</div>
2727

2828
<button onClick={onClose}>
@@ -34,4 +34,4 @@ const OpenToWorBox = ({ onClose }: OpenToWorBoxAttrs) => {
3434
);
3535
};
3636

37-
export default OpenToWorBox
37+
export default OpenToWorBox;

0 commit comments

Comments
 (0)