Skip to content

Commit

Permalink
Merge pull request #10 from i-mader/animations-multiple-langunge
Browse files Browse the repository at this point in the history
fix: wording home, section header
  • Loading branch information
rahmathidayatullah authored Oct 18, 2024
2 parents d6d6d42 + fd0dd68 commit 4045638
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/TransformText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@ const Heading: React.FC<TitleComponentProps> = ({ title, page }) => {
// Adjust this logic based on your specific needs
const parts = title.split(" ");

console.log('parts',parts);

// Adjust the slicing logic according to your title structure
const part1 = parts.slice(0, 2).join(" "); // "Craft and Build"

const part2 = parts[2]; // "Creative"
const part3 = parts.slice(3, 5).join(" "); // "Things For Your"
const part4 = parts[5]; // "Purpose"
const part4 = parts.slice(4, 8).join(" "); // "Purpose"

return (
<h1 className="text-white font-medium text-center font-raleway">
Expand Down

0 comments on commit 4045638

Please sign in to comment.