Changed The Header Structure and deleted unused fonts
This commit is contained in:
parent
bb6f529651
commit
b834112e61
10 changed files with 151 additions and 210 deletions
|
@ -6,11 +6,12 @@ import FAQ from './components/Faq'; // Ensure the import path is correct
|
|||
import Documentation from './components/Documentation'; // Ensure the import path is correct
|
||||
import History from './components/History';
|
||||
import Models from './components/Models';
|
||||
import Credits from './components/Credits';
|
||||
import './styles/master.css';
|
||||
|
||||
const LandingPage: React.FC = () => {
|
||||
const [showDivs, setShowDivs] = useState(true);
|
||||
const [view, setView] = useState<'AI' | 'FAQ' | 'Documentation'>('AI');
|
||||
const [view, setView] = useState<'AI' | 'FAQ' | 'Documentation' | 'Credits'>('AI'); // Added 'Credits' here
|
||||
const conversationRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
useEffect(() => {
|
||||
|
@ -42,7 +43,7 @@ const LandingPage: React.FC = () => {
|
|||
setShowDivs(prevState => !prevState);
|
||||
};
|
||||
|
||||
const handleViewChange = (view: 'AI' | 'FAQ' | 'Documentation') => {
|
||||
const handleViewChange = (view: 'AI' | 'FAQ' | 'Documentation' | 'Credits') => { // Added 'Credits' here as well
|
||||
setView(view);
|
||||
if (view !== 'AI') {
|
||||
setShowDivs(false);
|
||||
|
@ -70,6 +71,7 @@ const LandingPage: React.FC = () => {
|
|||
{view === 'AI' && <AI />}
|
||||
{view === 'FAQ' && <FAQ />}
|
||||
{view === 'Documentation' && <Documentation />}
|
||||
{view === 'Credits' && <Credits />} {/* Now Credits will render properly */}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue