-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme.config.jsx
36 lines (35 loc) · 932 Bytes
/
theme.config.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* see: https://github.com/shuding/nextra/blob/main/packages/nextra-theme-blog/src/types.ts */
/* eslint sort-keys: error */
export default {
components: {
h1: ({ children }) => (
<h1
style={{
WebkitBackgroundClip: "text",
WebkitTextFillColor: "transparent",
backgroundClip: "text",
backgroundImage:
"linear-gradient(90deg,hsl(183, 100%, 50%),hsl(243, 100%, 50%))",
}}
>
{children}
</h1>
),
},
darkMode: true,
dateFormatter: (date) => `Last updated at ${date.toDateString()}`,
footer: (
<small style={{ display: "block", marginTop: "8rem" }}>
MIT
{new Date().getFullYear()} © shusann01116.
<style jsx>{`
@media screen and (max-width: 480px) {
article {
padding-top: 2rem;
padding-bottom: 4rem;
}
}
`}</style>
</small>
),
};