diff --git a/src/app/games/page.tsx b/src/app/games/page.tsx index 9514785..9e45779 100644 --- a/src/app/games/page.tsx +++ b/src/app/games/page.tsx @@ -12,6 +12,7 @@ import { } from "@mui/material"; import { useRouter } from "next/navigation"; import { paths } from "@/paths"; +import Typewriter from "@/components/Typewriter/Typewriter"; const navItems = [ { label: "Visions Of Reality", path: paths.games.vor }, @@ -31,6 +32,7 @@ export default function VisionsOfReality() { + Some online games available to you. diff --git a/src/app/page.tsx b/src/app/page.tsx index 9fb11df..1bf1bb8 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -58,11 +58,6 @@ export default function Home() { }} /> - - Tartarus - +
+

{value}

+
+ + ) +} diff --git a/src/components/Typewriter/index.css b/src/components/Typewriter/index.css new file mode 100644 index 0000000..1b0fe65 --- /dev/null +++ b/src/components/Typewriter/index.css @@ -0,0 +1,35 @@ + +.typewriter{ + display: flex; + justify-content: center; +} + +.typewriter p{ + --chars: 8; + font-family: monospace; + font-size: 1.5rem; + + color: #00AA24; + margin-inline: auto; + overflow: hidden; + white-space: nowrap; + border-right: 1px solid; + animation: typing calc(var(--chars) * 0.07s) steps(var(--chars)) forwards, + blink 1s step-end infinite; +} + +@keyframes typing { + from { + width: 0; + } + + to { + width: 100%; + } +} + +@keyframes blink { + 50% { + border-color: transparent; + } +}