Skip to content

Commit 5c13c6f

Browse files
authored
Merge pull request #72 from IRISX-AI/fix-ch/landing-#211
Fix ch/landing #211
2 parents 2b85d02 + b99e33e commit 5c13c6f

8 files changed

Lines changed: 35 additions & 30 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,4 +169,5 @@ yarn-error.log*
169169
.vercel
170170

171171
*.tsbuildinfo
172-
next-env.d.ts
172+
next-env.d.ts
173+
server

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div align="center">
22

3-
![IRIS Neural OS Documentation Banner](./assets/docs_banner.jpeg)
3+
![IRIS Neural OS Documentation Banner](./assets/docs_banner-old.jpeg)
44

55
## The Autonomous Neural OS Agent
66

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,4 @@ We are highly interested in reports regarding:
8282

8383
## Bug Bounties
8484

85-
IRIS is a labor of love and an open-source initiative. There is currently no bug bounty program and no budget for paid reports. Please still disclose responsibly so we can secure the engine for the community. The best way to help the project right now is by responsibly disclosing and submitting PRs.
85+
IRIS is a labor of love and an open-source initiative. There is currently no bug bounty program and no budget for paid reports. Please still disclose responsibly so we can secure the engine for the community. The best way to help the project right now is by responsibly disclosing and submitting PRs.

client/app/Components/UI/IrisHero.tsx

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,19 @@ export default function IrisHero({
2424
className="hero-section sticky top-0 h-screen w-full flex flex-col justify-center items-center z-0 overflow-hidden bg-black"
2525
>
2626
<div className="hidden md:block w-full h-full absolute inset-0 z-0 bg-black">
27-
<FloatingLines
28-
enabledWaves={["top", "middle", "bottom"]}
29-
lineCount={6}
30-
lineDistance={8}
31-
bendRadius={8}
32-
bendStrength={-2}
33-
interactive
34-
parallax={true}
35-
animationSpeed={1}
36-
linesGradient={["#24d307", "#144f01", "#2a8f2c"]}
37-
/>
27+
{isHeroActive && (
28+
<FloatingLines
29+
enabledWaves={["top", "middle", "bottom"]}
30+
lineCount={6}
31+
lineDistance={8}
32+
bendRadius={8}
33+
bendStrength={-2}
34+
interactive
35+
parallax={true}
36+
animationSpeed={1}
37+
linesGradient={["#24d307", "#144f01", "#2a8f2c"]}
38+
/>
39+
)}
3840
</div>
3941
<div
4042
className={`
@@ -44,7 +46,7 @@ export default function IrisHero({
4446
`}
4547
style={{ display: isHeroActive ? undefined : "none" }}
4648
>
47-
<GhostEther className="block" />
49+
{isHeroActive && <GhostEther className="block" />}
4850
</div>
4951

5052
<div className="relative z-20 flex flex-col items-center justify-center text-center px-6 w-full max-w-5xl gap-0">
@@ -105,7 +107,7 @@ export default function IrisHero({
105107
<div className="flex md:flex-row flex-col justify-center items-center gap-5 w-full sm:w-auto">
106108
<Link href="/download">
107109
<MagneticButton
108-
title="Download for Windows"
110+
title="Download IRIS AI"
109111
subtitle="Get Early Access"
110112
iconLeft={<Command className="w-6 h-6" />}
111113
iconRight={

client/app/Landing/IRIS.tsx

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import gsap from "gsap";
33
import { useGSAP } from "@gsap/react";
44
import { ScrollTrigger } from "gsap/ScrollTrigger";
55
import Header from "../Components/Header";
6-
import { useRef, useState, useEffect } from "react";
6+
import { useRef, useState } from "react";
77
import Footer from "../Components/Footer";
88
import Image from "next/image";
99
import LogoLoop from "../utils/LogoLoop";
@@ -40,16 +40,6 @@ const IRIS = () => {
4040
const [isHeroVisible, setIsHeroVisible] = useState(true);
4141
const [isHeroActive, setIsHeroActive] = useState(true);
4242

43-
useEffect(() => {
44-
let timeout: NodeJS.Timeout;
45-
if (isHeroVisible) {
46-
setIsHeroActive(true);
47-
} else {
48-
timeout = setTimeout(() => setIsHeroActive(false), 700);
49-
}
50-
return () => clearTimeout(timeout);
51-
}, [isHeroVisible]);
52-
5343
const actualTechLogos = [
5444
{
5545
node: <RiGeminiFill className="text-4xl text-white cursor-pointer" />,
@@ -131,6 +121,19 @@ const IRIS = () => {
131121
start: "top top",
132122
onEnter: () => setIsHeroVisible(false),
133123
onLeaveBack: () => setIsHeroVisible(true),
124+
onRefresh: (self) => {
125+
setIsHeroVisible(self.scroll() < self.start);
126+
},
127+
});
128+
129+
ScrollTrigger.create({
130+
trigger: contentRef.current,
131+
start: "top -100%",
132+
onEnter: () => setIsHeroActive(false),
133+
onLeaveBack: () => setIsHeroActive(true),
134+
onRefresh: (self) => {
135+
setIsHeroActive(self.scroll() < self.start);
136+
},
134137
});
135138
},
136139
{ scope: containerRef },

client/config/AxiosInstacne.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ const AxiosInstance = axios.create({
55
withCredentials: true,
66
});
77

8-
export default AxiosInstance;
8+
export default AxiosInstance;

server/api/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ import app from "../src/index.js";
33

44
export default function handler(req: Request, res: Response) {
55
return app(req, res);
6-
}
7-
6+
}

0 commit comments

Comments
 (0)