77
88import React from 'react' ;
99import classnames from 'classnames' ;
10- import Footer from '@theme/Footer' ;
1110import Link from '@docusaurus/Link' ;
1211import LayoutProvider from '@theme/Layout/Provider' ;
1312import ColorModeToggle from '@theme/Navbar/ColorModeToggle' ;
@@ -16,7 +15,6 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
1615import styles from './styles.module.css' ;
1716import FooterCopyright from '@theme/Footer/Copyright' ;
1817import FooterLayout from '@theme/Footer/Layout' ;
19- import { useThemeConfig } from '@docusaurus/theme-common' ;
2018
2119const features = [
2220 {
@@ -69,12 +67,8 @@ function Feature({imageUrl, title, description}) {
6967
7068function Home ( ) {
7169 const context = useDocusaurusContext ( ) ;
72- const { siteConfig = { } } = context ;
73- const { footer} = useThemeConfig ( ) ;
74- if ( ! footer ) {
75- return null ;
76- }
77- const { copyright, links, logo, style} = footer ;
70+ const { siteConfig} = context ;
71+ const { themeConfig : { footer : { copyright, style} } } = siteConfig ;
7872
7973 return (
8074 < LayoutProvider >
@@ -83,9 +77,9 @@ function Home() {
8377 < ColorModeToggle />
8478 </ div >
8579 < div className = { classnames ( 'container' , styles . container ) } >
86- < img className = { classnames ( styles . hero__logo ) } src = "img/logo-dark.svg" alt = "munus-logo" />
87- < h1 className = { classnames ( 'hero__title' , styles . hero__title ) } > { siteConfig . title } </ h1 >
88- < p className = { classnames ( 'hero__subtitle' , styles . hero__subtitle ) } > { siteConfig . tagline } </ p >
80+ < img className = { classnames ( styles . heroLogo ) } src = "img/logo-dark.svg" alt = "munus-logo" />
81+ < h1 className = { classnames ( 'hero__title' , styles . heroTitle ) } > { siteConfig . title } </ h1 >
82+ < p className = { classnames ( 'hero__subtitle' , styles . heroSubtitle ) } > { siteConfig . tagline } </ p >
8983 < div className = { styles . buttons } >
9084 < Link
9185 className = { classnames (
0 commit comments