edit homepage

This commit is contained in:
Pranav Jerry 2024-04-10 18:03:51 +05:30
parent f8578fd993
commit f8b0eefb78
Signed by: pranav
GPG Key ID: F1DCDC4FED0A0C5B
2 changed files with 195 additions and 183 deletions

View File

@ -18,7 +18,7 @@ function Footer() {
duration: 0.8,
}}
>
© Neural Harbour AI
Speech to Sign Language, Main Project
</motion.span>
<motion.div className="footer__social__icons"
variants={footerTextAnimation}
@ -29,10 +29,7 @@ function Footer() {
duration: 0.8,
}}
>
<BsFacebook />
<BsTwitter />
<BsYoutube />
<BsBehance />
</motion.div>
</Foot>
)

View File

@ -1,8 +1,8 @@
import React, { useEffect, useRef } from 'react';
import img from './IMG-KONVERT.jpg';
import './Landing.css';
import Splitting from 'splitting';
import { gsap } from 'gsap';
import React, { useEffect, useRef } from "react";
import img from "./IMG-KONVERT.jpg";
import "./Landing.css";
import Splitting from "splitting";
import { gsap } from "gsap";
import { Link } from "react-router-dom";
const LandingPage = () => {
const navRef = useRef(null);
@ -21,11 +21,11 @@ const LandingPage = () => {
const section = {
title: Splitting({
target: sectionTitle,
by: 'chars',
by: "chars",
}),
paragraphs: Splitting({
target: sectionCol,
by: 'words',
by: "words",
}),
image: sectionImage,
overlay: sectionOverlay,
@ -34,26 +34,35 @@ const LandingPage = () => {
const titleChars = section.title[0].chars;
const paragraphsWords = section.paragraphs[0].words;
gsap.set(titleChars, { autoAlpha: 0, yPercent: -100, rotate: '-15deg' });
gsap.set(paragraphsWords, { autoAlpha: 0, display: 'inline-flex' });
gsap.set(titleChars, { autoAlpha: 0, yPercent: -100, rotate: "-15deg" });
gsap.set(paragraphsWords, { autoAlpha: 0, display: "inline-flex" });
gsap.set(section.image, { autoAlpha: 0, scale: 1.5 });
const t1 = gsap.timeline({ defaults: { duration: 1.64, ease: 'power4.inOut' } });
const t1 = gsap.timeline({
defaults: { duration: 1.64, ease: "power4.inOut" },
});
t1.addLabel('section')
.to(titleChars, {
t1.addLabel("section")
.to(
titleChars,
{
autoAlpha: 1,
yPercent: 0,
rotate: '0deg',
rotate: "0deg",
stagger: 0.024,
}, 'start+=0.6')
.to(paragraphsWords, {
},
"start+=0.6",
)
.to(
paragraphsWords,
{
autoAlpha: 1,
stagger: 0.024,
}, 'start+=0.6')
},
"start+=0.6",
)
.to(section.overlay, { yPercent: 101 })
.to(section.image, { autoAlpha: 1, scale: 1 }, '-=2');
.to(section.image, { autoAlpha: 1, scale: 1 }, "-=2");
}, []);
const handleFileUpload = (event) => {
@ -70,41 +79,47 @@ const LandingPage = () => {
</div>
<div className="nav_pages">
<span>Home</span>
<span><Link to="/login">Login</Link></span>
<span><Link to="/Register">SignUp</Link></span>
<span>
<Link to="/login">Login</Link>
</span>
<span>
<Link to="/Register">SignUp</Link>
</span>
</div>
<div className='nav_menu'>
<div className="nav_menu">
<div className="nav_menu_button menu-open">
<span className='nav_menu_line'></span>
<span className='nav_menu_line'></span>
<span className="nav_menu_line"></span>
<span className="nav_menu_line"></span>
</div>
</div>
</div>
</div>
<section className='section'>
<section className="section">
<div className="section_wrapper">
<div className="section_title" ref={sectionTitleRef}>
<h2>Inconnect</h2>
</div>
<div className="section_col" ref={sectionColRef}>
<div className="section_col_left">
<h4 className='section_col_left_text'>
Next-Gen Speech to Sign Language Technology. Introducing our revolutionary Intelligent Sign Language Technology,Powered by cutting-edge AI technology.
<h4 className="section_col_left_text">
Speech to Sign Language
</h4>
<div className="setion_col_left_cta">
<span>&rarr;</span>
<span>Powered By Neural Harbour AI</span>
</div>
</div>
<div className="section_col_right">
<p className="section_col_right_text">
Our sophisticated algorithms delve into the speech's intricate details,enabling anyone to perform quick,accurate and comprehensive conversions.
</p>
<p className="section_col_right_text"></p>
</div>
</div>
<div className='section_col'>
<div className="section_col_overlay" ref={sectionOverlayRef}></div>
<img src={img} alt="dummy" className='section_col_image' ref={sectionImageRef} />
<div className="section_col">
<div
className="section_col_overlay"
ref={sectionOverlayRef}
></div>
<img
src={img}
alt="dummy"
className="section_col_image"
ref={sectionImageRef}
/>
</div>
</div>
</section>