Skip to content

Commit 7d2074d

Browse files
authored
Merge pull request #23 from intelowlproject/develop
0.1.1
2 parents f40bfc7 + 684faa4 commit 7d2074d

File tree

4 files changed

+92
-15
lines changed

4 files changed

+92
-15
lines changed

Diff for: components/Footer.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default function Footer() {
3939
>
4040
Matteo Lodi{" "}
4141
<span className="ml-12 font-small text-sm opacity-90 font-SpaceGrotesk">
42-
Author and Creator{" "}
42+
Author and Principal Maintainer{" "}
4343
</span>
4444
</a>
4545
</li>
@@ -50,7 +50,7 @@ export default function Footer() {
5050
>
5151
Eshaan Bansal{" "}
5252
<span className="ml-7 font-small text-sm opacity-90 font-SpaceGrotesk">
53-
Principal Maintainer{" "}
53+
Key Contributor{" "}
5454
</span>
5555
</a>
5656
</li>
@@ -61,7 +61,7 @@ export default function Footer() {
6161
>
6262
Simone Berni{" "}
6363
<span className="ml-10 font-small text-sm opacity-90 font-SpaceGrotesk">
64-
Key Contributor and Backend Maintainer{" "}
64+
Backend Maintainer{" "}
6565
</span>
6666
</a>
6767
</li>
@@ -72,7 +72,7 @@ export default function Footer() {
7272
>
7373
Daniele Rosetti{" "}
7474
<span className="ml-6 font-small text-sm opacity-90 font-SpaceGrotesk">
75-
Key Contributor and Frontend Maintainer{" "}
75+
Frontend Maintainer{" "}
7676
</span>
7777
</a>
7878
</li>

Diff for: components/sections/HeroSection.tsx

+22-11
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/* eslint-disable @next/next/no-img-element */
44
import Link from "next/link";
55
import { motion } from "framer-motion";
6-
import { useState, useEffect } from "react";
6+
import { TypeAnimation } from 'react-type-animation';
77

88
/* eslint-disable react/jsx-no-undef */
99
interface HeroSectionProps {
@@ -12,15 +12,8 @@ interface HeroSectionProps {
1212

1313
export default function HeroSection(props: HeroSectionProps) {
1414
const { isMobile } = props;
15-
const [words] = useState(["a hash.", "an ip.", "a malware.", "a domain."]);
16-
const [currentWordIndex, setCurrentWordIndex] = useState(0);
15+
const words = ["a hash.", 2000, "an ip.", 2000, "a malware.", 2000, "a domain.", 2000];
1716

18-
useEffect(() => {
19-
const intervalId = setInterval(() => {
20-
setCurrentWordIndex((currentIndex) => (currentIndex + 1) % words.length);
21-
}, 3000);
22-
return () => clearInterval(intervalId);
23-
}, [words]);
2417
return (
2518
<>
2619
{isMobile ? (
@@ -31,7 +24,16 @@ export default function HeroSection(props: HeroSectionProps) {
3124
<div className="bg-inherit w-full flex flex-col items-center justify-center px-5">
3225
<h1 className="text-white text-center text-3xl leading-snug lg:leading-snug xl:leading-snug font-SpaceGrotesk font-semibold ">
3326
Get Threat Intelligence data about {" "}
34-
<span className="text-[#00ADEF]">{words[currentWordIndex]}</span>
27+
<span className="text-[#00ADEF]">
28+
<TypeAnimation
29+
sequence={words}
30+
preRenderFirstString={false}
31+
wrapper="span"
32+
speed={20}
33+
style={{ fontSize: '1em', display: 'inline-block' }}
34+
repeat={Infinity}
35+
/>
36+
</span>
3537
</h1>
3638
<h2 className=" text-white text-center text-lg mt-8 font-SpaceGrotesk font-extralight px-4">
3739
From multiple sources with just a{" "}
@@ -69,7 +71,16 @@ export default function HeroSection(props: HeroSectionProps) {
6971
<div className="bg-inherit w-4/6 flex flex-col items-left justify-center px-16">
7072
<h1 className="text-white text-left text-5xl lg:text-6xl xl:text-7xl leading-snug lg:leading-snug xl:leading-snug font-SpaceGrotesk font-semibold ">
7173
Get Threat Intelligence data about {" "}
72-
<span className="text-[#00ADEF]">{words[currentWordIndex]}</span>
74+
<span className="text-[#00ADEF]">
75+
<TypeAnimation
76+
sequence={words}
77+
preRenderFirstString={false}
78+
wrapper="span"
79+
speed={20}
80+
style={{ fontSize: '1em', display: 'inline-block' }}
81+
repeat={Infinity}
82+
/>
83+
</span>
7384
</h1>
7485
<h2 className=" text-white text-left text-3xl lg:text-3xl xl:text-4xl mt-8 font-SpaceGrotesk font-extralight">
7586
From multiple sources with just a{" "}

Diff for: package-lock.json

+65
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"react": "18.2.0",
2525
"react-dom": "18.2.0",
2626
"react-scroll": "^1.8.9",
27+
"react-type-animation": "^3.2.0",
2728
"swiper": "^9.3.2",
2829
"tailwindcss": "3.3.2",
2930
"typescript": "5.0.4"

0 commit comments

Comments
 (0)