Skip to content

Commit

Permalink
ui: add typing animation in home page
Browse files Browse the repository at this point in the history
  • Loading branch information
SoheilSalmani committed Apr 29, 2024
1 parent 13d3676 commit 1ed31f4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions app/routes/_index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
import type { MetaFunction } from "@remix-run/node";
import { Link } from "@remix-run/react";

Check failure on line 2 in app/routes/_index.tsx

View workflow job for this annotation

GitHub Actions / ⬣ ESLint

There should be at least one empty line between import groups
import { Header } from "~/components/Header";

Check failure on line 3 in app/routes/_index.tsx

View workflow job for this annotation

GitHub Actions / ⬣ ESLint

There should be at least one empty line between import groups
import { TypeAnimation } from "react-type-animation";

Check failure on line 4 in app/routes/_index.tsx

View workflow job for this annotation

GitHub Actions / ⬣ ESLint

`react-type-animation` import should occur before import of `~/components/Header`

import { useOptionalUser } from "~/utils";

export const meta: MetaFunction = () => [{ title: "Questify" }];

const TypingParagraph = () => {
return (
<TypeAnimation
sequence={[
"Questify is a task management app that gamifies productivity, turning daily chores into exciting quests.",
]}
wrapper="span"
speed={50}
cursor={true}
repeat={0}
className="font-mono"
/>
);
};

export default function Index() {
const user = useOptionalUser();
return (
Expand All @@ -17,6 +33,9 @@ export default function Index() {
<h1 className="font-led [text-shadow:_7px_7px_5px_rgb(202_138_4)] uppercase text-8xl text-center leading-tight tracking-wider mb-12 text-yellow-500 animate-bounce">
Gamify your life
</h1>
<p className="flex-grow leading-relaxed text-xl font-semibold tracking-wider">
<TypingParagraph />
</p>
</div>
</section>
<div>
Expand Down

0 comments on commit 1ed31f4

Please sign in to comment.