-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
110 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
aait/web/group-3/starter_project_group3/components/home/ScrollToTop.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
"use client"; | ||
import { useEffect, useState } from "react"; | ||
import { BiArrowFromBottom } from "react-icons/bi"; | ||
|
||
export const ScrollToTop = () => { | ||
const [isVisible, setIsVisible] = useState(false); | ||
|
||
const toggleVisibility = () => { | ||
if (window.pageYOffset > 300) { | ||
setIsVisible(true); | ||
} else { | ||
setIsVisible(false); | ||
} | ||
}; | ||
|
||
const scrollToTop = () => { | ||
window.scrollTo({ | ||
top: 0, | ||
behavior: "smooth", | ||
}); | ||
}; | ||
|
||
useEffect(() => { | ||
window.addEventListener("scroll", toggleVisibility); | ||
|
||
return () => { | ||
window.removeEventListener("scroll", toggleVisibility); | ||
}; | ||
}, []); | ||
|
||
return ( | ||
<div className="fixed bottom-4 right-4"> | ||
<button | ||
type="button" | ||
onClick={scrollToTop} | ||
className={` | ||
${isVisible ? "opacity-100" : "opacity-0"} | ||
bg-primary hover:bg-white hover:text-primary focus:ring-primary inline-flex items-center rounded-full p-4 text-white shadow-sm transition-opacity focus:outline-none focus:ring-2 focus:ring-offset-2 | ||
`} | ||
> | ||
<BiArrowFromBottom className="h-6 w-6" aria-hidden="true" /> | ||
</button> | ||
</div> | ||
); | ||
}; |
66 changes: 33 additions & 33 deletions
66
aait/web/group-3/starter_project_group3/components/home/TeamSection.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
import Image from "next/image"; | ||
|
||
const TeamSection : React.FC = () => { | ||
return ( | ||
<div className="text-center flex flex-col items-center gap-10"> | ||
<h1 className="capitalize text-2xl nav_bar_screen:text-3xl font-semibold text-black_text_color leading-relaxed min-[1100px]:w-1/6"> | ||
Lets build a better tomorrow | ||
</h1> | ||
|
||
<p className="text-light_gray_text_color font-normal text-lg nav_bar_screen:text-xl"> | ||
A2SV upskills high-potential university students, connects them with | ||
opportunities at top tech companies around the world, and creates | ||
digital solutions to urgent problems in their home countries. The | ||
program is free for students, making the opportunity available for | ||
youth who have talent but lack the means to use it. | ||
</p> | ||
<button className="flex gap-3 justify-center items-center px-5 py-3 rounded-md bg-primary text-white font-medium"> | ||
<Image | ||
src="/assets/landing_page_message.svg" | ||
width={30} | ||
height={30} | ||
alt="arrow" | ||
/> | ||
Connect to our team | ||
</button> | ||
const TeamSection: React.FC = () => { | ||
return ( | ||
<div className="text-center flex flex-col items-center gap-10"> | ||
<h1 className="capitalize text-2xl nav_bar_screen:text-3xl font-semibold text-black_text_color leading-relaxed min-[1100px]:w-1/6"> | ||
Lets build a better tomorrow | ||
</h1> | ||
|
||
<p className="text-light_gray_text_color font-normal text-lg nav_bar_screen:text-xl"> | ||
A2SV upskills high-potential university students, connects them with | ||
opportunities at top tech companies around the world, and creates | ||
digital solutions to urgent problems in their home countries. The | ||
program is free for students, making the opportunity available for youth | ||
who have talent but lack the means to use it. | ||
</p> | ||
<button className="flex gap-3 justify-center items-center px-5 py-3 rounded-md bg-primary text-white font-medium"> | ||
<Image | ||
objectFit="cover" | ||
src="/assets/landing_page_people.png" | ||
alt="people" | ||
width={1500} | ||
height={800} | ||
src="/assets/landing_page_message.svg" | ||
width={30} | ||
height={30} | ||
alt="arrow" | ||
/> | ||
</div> | ||
); | ||
} | ||
|
||
export default TeamSection; | ||
Connect to our team | ||
</button> | ||
|
||
<Image | ||
objectFit="cover" | ||
src="/assets/landing_page_people.jpg" | ||
alt="people" | ||
width={1500} | ||
height={800} | ||
/> | ||
</div> | ||
); | ||
}; | ||
|
||
export default TeamSection; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+323 KB
aait/web/group-3/starter_project_group3/public/assets/landing_page_people.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters