Spaces:
Sleeping
Sleeping
File size: 1,234 Bytes
1bfe19d bc7310a 1bfe19d 56da312 1bfe19d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | import React, { useEffect, useRef, useState } from 'react';
export default function Header() {
const fullText = 'DeepEx AI';
const [typed, setTyped] = useState('');
const i = useRef(0);
useEffect(() => {
let count = 0;
setTyped('');
const interval = setInterval(() => {
count++;
setTyped(fullText.slice(0, count));
if (count >= fullText.length) clearInterval(interval);
}, 100);
return () => clearInterval(interval);
}, []);
return (
<div className="header">
<h1 className="title">
<span style={{ background: 'none', WebkitTextFillColor: 'initial' }}>🔍</span>
<span>{typed}</span>
</h1>
<div className="social-icons">
<a href="https://www.linkedin.com/in/yogesh07rana" target="_blank" rel="noreferrer">
<i className="fa-brands fa-linkedin"></i>
</a>
<a href="https://github.com/Yogesh07rana" target="_blank" rel="noreferrer">
<i className="fa-brands fa-github"></i>
</a>
</div>
<div className="subtitle">
AI Powered Deepfake Detection<br />
<span style={{ opacity: 0.7, fontSize: '12px' }}>
Using Vision Transformers
</span>
</div>
</div>
);
} |