Skip to content

Commit dd3d726

Browse files
committed
feat: remove extra logic
1 parent 6c9744c commit dd3d726

File tree

7 files changed

+72
-9
lines changed

7 files changed

+72
-9
lines changed

packages/crd-seed/component/Header/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/crd-seed/component/Header/index.less

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020

2121
.header {
2222
box-shadow: 0 2px 8px #f0f1f2;
23-
line-height: 64px;
24-
min-height: 64px;
23+
line-height: 60px;
24+
height: 60px;
2525
position: relative;
2626
width: 100%;
2727
top: 0;

packages/crd-seed/component/NoMatch/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import styles from './index.less'
22

3-
const Footer = () => {
3+
const NoMatch = () => {
44
// eslint-disable-next-line no-undef
55
const { user, repo } = DOCSCONFIG || {}
66
return (
@@ -18,4 +18,4 @@ const Footer = () => {
1818
)
1919
}
2020

21-
export default Footer
21+
export default NoMatch
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import styles from './index.less'
2+
3+
const Tags = () => {
4+
const { user, repo } = DOCSCONFIG || {}
5+
return (
6+
<div className={styles.tags}>
7+
<div className={styles['tags-title']}>tags</div>
8+
<div className={styles['tags-content']}>
9+
<a className={styles['tags-text']}>Annual Summary</a>
10+
<a className={styles['tags-text']}>css</a>
11+
<a className={styles['tags-text']}>ES7</a>
12+
<a className={styles['tags-text']}>hooks</a>
13+
<a className={styles['tags-text']}>JavaScript</a>
14+
<a className={styles['tags-text']}>Mvvm</a>
15+
<a className={styles['tags-text']}>Node.js</a>
16+
<a className={styles['tags-text']}>Promise</a>
17+
<a className={styles['tags-text']}>Python</a>
18+
<a className={styles['tags-text']}>React</a>
19+
<a className={styles['tags-text']}>Redux</a>
20+
<a className={styles['tags-text']}>SEO</a>
21+
<a className={styles['tags-text']}>Schedule</a>
22+
<a className={styles['tags-text']}>TypeScript</a>
23+
<a className={styles['tags-text']}>alfred workflow</a>
24+
<a className={styles['tags-text']}>blog</a>
25+
</div>
26+
</div>
27+
)
28+
}
29+
30+
export default Tags
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.tags {
2+
width: 100%;
3+
padding: 0 20px;
4+
height: 100%;
5+
display: flex;
6+
align-items: center;
7+
justify-content: center;
8+
flex-direction: column;
9+
10+
&-title {
11+
font-family: Palatino, Garamond, Times, Georgia, serif;
12+
font-size: 24px;
13+
font-weight: 400;
14+
margin: initial;
15+
text-align: center;
16+
overflow-wrap: break-word;
17+
word-wrap: break-word;
18+
}
19+
20+
&-content {
21+
width: 100%;
22+
}
23+
24+
&-text {
25+
color: #6f6f6f;
26+
padding: 10px;
27+
}
28+
}

packages/crd-seed/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Switch, Route } from 'react-router-dom'
22
import BasicLayout from './layout'
33
import NoMatch from './component/NoMatch'
4+
import Tags from './component/Tags'
45
import './index.less'
56

67
// run in the Web/Router.js
@@ -11,6 +12,10 @@ const ThemeSeed = (props) => {
1112
path="/404"
1213
render={routeProps => <NoMatch {...routeProps} {...props} />}
1314
/>
15+
<Route
16+
path="/tags"
17+
render={routeProps => <Tags {...routeProps} {...props} />}
18+
/>
1419
<Route
1520
path="/"
1621
render={(routeProps) => {

packages/crd-seed/layout/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,10 @@ function BasicLayout({
267267
<div className={styles.wrapper}>
268268
<Header
269269
logo={logo}
270-
href={ifAddPrefix ? `/${repo}` : `/`}
271-
location={location}
272-
indexProps={indexProps}
273-
menuSource={menuSource}
270+
// href={ifAddPrefix ? `/${repo}` : `/`}
271+
// location={location}
272+
// indexProps={indexProps}
273+
// menuSource={menuSource}
274274
/>
275275
<div
276276
className={cx(styles.wrapperContent, {

0 commit comments

Comments
 (0)