Skip to content

Commit f424b38

Browse files
committed
feat: replace logo
1 parent 172307b commit f424b38

File tree

10 files changed

+116
-6
lines changed

10 files changed

+116
-6
lines changed

config/basic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
2-
logo: '//static2.cnodejs.org/public/images/cnodejs_light.svg',
2+
logo: '/images/cnodejs.svg',
33
title: 'CNode.js',
44
description: 'Node.js 专业中文社区',
55
};

public/images/cnodejs.svg

Lines changed: 54 additions & 0 deletions
Loading

public/images/cnodejs_light.svg

Lines changed: 54 additions & 0 deletions
Loading

public/images/favicon.ico

1.12 KB
Binary file not shown.

src/component/Brand/index.less

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
.container {
2+
height: 100%;
23
display: inline-flex;
3-
align-items: baseline;
4+
align-items: center;
45
}
56

67
.logo {
8+
height: 32px;
79
}
810

911
.title {
@@ -16,5 +18,5 @@
1618
color: #222;
1719
opacity: 0.55;
1820
margin: 0 0 0 0.4em;
19-
padding: 0 4px;
21+
padding: 8px 0 0 8px;
2022
}

src/component/Brand/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import * as styles from './index.less';
44
const Brand: React.FC<Props> = ({ logo, title, description }) => (
55
<div className={styles.container}>
66
<img className={styles.logo} src={logo} alt="logo" />
7-
<h1 className={styles.title}>{title}</h1>
7+
{/* <h1 className={styles.title}>{title}</h1> */}
88
<p className={styles.description}>{description}</p>
99
</div>
1010
);

src/global.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818

1919
.cnode-header-right {
20-
margin-right: 24px;
20+
margin-right: 16px;
2121
}
2222

2323
.top-nav-menu {

src/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const layoutConfig = ({
3434
// common
3535
navTheme: 'light',
3636
layout: 'top',
37-
headerHeight: 80,
37+
headerHeight: 64,
3838
fixedHeader: false,
3939
contentWidth: 'Fluid',
4040

src/layout/Basic.tsx

Whitespace-only changes.

src/layout/Topic.tsx

Whitespace-only changes.

0 commit comments

Comments
 (0)