47 | {features.map(feature => (
48 |
49 |
{feature.name}
50 |
{feature.text}
51 |
52 | ))}
53 |
54 | >
55 | );
56 | }
57 |
--------------------------------------------------------------------------------
/src/components/navbar/link.module.css:
--------------------------------------------------------------------------------
1 | .link {
2 | display: flex;
3 | flex-wrap: wrap;
4 | align-items: center;
5 | font-weight: 500;
6 | color: rgba(75, 85, 99)
7 | }
8 |
9 | .link:hover {
10 | color: rgba(31, 41, 55)
11 | }
12 |
13 | html[class~=dark] .link {
14 | color: rgba(156, 163, 175);
15 | }
16 |
17 | html[class~=dark] .link:hover {
18 | color: rgba(229, 231, 235);
19 | }
20 |
21 | .icon {
22 | width: 12px;
23 | height: 12px;
24 | margin-left: 6px;
25 | }
26 |
--------------------------------------------------------------------------------
/src/components/navbar/link.tsx:
--------------------------------------------------------------------------------
1 | import styles from './link.module.css';
2 |
3 | export default function SBBlogLink() {
4 | return (
5 |
25 | MIT Licensed
26 | {' '}|{' '}
27 | Copyright ©
28 | {' '}
29 | 2019
30 | {' '}-{' '}
31 |
32 | {' '}
33 | m.ac
34 |
35 | )
36 | },
37 | gitTimestamp() {
38 | return null;
39 | },
40 | // TODO: remove once https://github.com/shuding/nextra/issues/1210 is fixed
41 | toc: {
42 | // eslint-disable-next-line react/jsx-no-useless-fragment
43 | extraContent: <>>
44 | },
45 | head() {
46 | // Custom