Skip to content

Commit 1fae22a

Browse files
committed
refactor: update page styles
1 parent 41656a7 commit 1fae22a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

client/pages/archives/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { Categories } from '@components/Categories';
2-
import { Footer } from '@components/Footer';
32
import { NextPage } from 'next';
4-
import Link from 'next/link';
53
import { useTranslations } from 'next-intl';
6-
import React, { useContext } from 'react';
4+
import Link from 'next/link';
5+
import { useContext } from 'react';
76

87
import { ListTrail } from '@/components/Animation/Trail';
98
import { ArticleRecommend } from '@/components/ArticleRecommend';
@@ -12,6 +11,7 @@ import { GlobalContext } from '@/context/global';
1211
import { DoubleColumnLayout } from '@/layout/DoubleColumnLayout';
1312
import { ArticleProvider } from '@/providers/article';
1413

14+
import AboutUs from '@/components/AboutUs';
1515
import indexStyle from '../index.module.scss';
1616
import style from './index.module.scss';
1717

@@ -95,10 +95,10 @@ const Archives: NextPage<IProps> = ({ articles }) => {
9595
<div className="sticky">
9696
<ArticleRecommend mode="inline" />
9797
<Categories categories={categories} />
98+
<AboutUs className={indexStyle.footer} setting={setting} />
9899
</div>
99100
}
100101
/>
101-
<Footer className={indexStyle.footer} setting={setting} />
102102
</>
103103
);
104104
};

client/pages/knowledge/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { GlobalContext } from '@/context/global';
1010
import { DoubleColumnLayout } from '@/layout/DoubleColumnLayout';
1111
import { KnowledgeProvider } from '@/providers/knowledge';
1212

13-
import AboutUs from '@/components/AboutUs';
13+
import { Footer } from '@/components/Footer';
1414
import styles from '../index.module.scss';
1515

1616
interface IHomeProps {
@@ -62,10 +62,10 @@ const Page: NextPage<IHomeProps> = ({ books: defaultBooks = [], total = 0 }) =>
6262
<div className={'sticky'}>
6363
<ArticleRecommend mode="inline" />
6464
<Categories categories={categories} />
65-
<AboutUs className={styles.footer} setting={setting} />
6665
</div>
6766
}
6867
/>
68+
<Footer className={styles.footer} setting={setting} />
6969
</>
7070
);
7171
};

0 commit comments

Comments
 (0)