Skip to content

Commit 35d05fa

Browse files
committed
Rename class names
1 parent 73f4867 commit 35d05fa

2 files changed

Lines changed: 8 additions & 14 deletions

File tree

src/pages/index.js

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
import React from 'react';
99
import classnames from 'classnames';
10-
import Footer from '@theme/Footer';
1110
import Link from '@docusaurus/Link';
1211
import LayoutProvider from '@theme/Layout/Provider';
1312
import ColorModeToggle from '@theme/Navbar/ColorModeToggle';
@@ -16,7 +15,6 @@ import useBaseUrl from '@docusaurus/useBaseUrl';
1615
import styles from './styles.module.css';
1716
import FooterCopyright from '@theme/Footer/Copyright';
1817
import FooterLayout from '@theme/Footer/Layout';
19-
import {useThemeConfig} from '@docusaurus/theme-common';
2018

2119
const features = [
2220
{
@@ -69,12 +67,8 @@ function Feature({imageUrl, title, description}) {
6967

7068
function 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(

src/pages/styles.module.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,16 +78,16 @@
7878
padding: 1rem 0 4rem 0;
7979
}
8080

81-
.hero__logo {
81+
.heroLogo {
8282
max-width: 10rem;
8383
}
8484

85-
.hero__title {
85+
.heroTitle {
8686
font-size: 5rem;
8787
color: #FFFFFF;
8888
}
8989

90-
.hero__subtitle {
90+
.heroSubtitle {
9191
font-weight: bold;
9292
font-size: 2.5rem;
9393
color: #FFFFFF;

0 commit comments

Comments
 (0)