-
Notifications
You must be signed in to change notification settings - Fork 72
/
theme.config.jsx
86 lines (86 loc) · 14.5 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
export default {
logo: (
<>
<svg
style={{ width: "200px" }}
viewBox="0 0 348 48"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<path
d="M13.44 37.288a4.858 4.858 0 0 1-2.016-.432c-.64-.288-1.056-.72-1.248-1.296L.672 4.456a2.442 2.442 0 0 1-.048-.48c0-.416.16-.768.48-1.056.32-.32.72-.56 1.2-.72a4.227 4.227 0 0 1 1.488-.288c.416 0 .784.08 1.104.24.352.16.576.432.672.816l7.824 27.36 4.368-17.184c.128-.512.432-.88.912-1.104a3.502 3.502 0 0 1 1.584-.384c.608 0 1.152.128 1.632.384.48.224.784.592.912 1.104l4.368 17.184 7.824-27.36c.128-.384.352-.656.672-.816.32-.16.688-.24 1.104-.24.48 0 .96.096 1.44.288.48.16.88.4 1.2.72.352.288.528.64.528 1.056 0 .16-.032.32-.096.48L30.384 35.56c-.192.576-.608 1.008-1.248 1.296a4.65 4.65 0 0 1-2.016.432 4.858 4.858 0 0 1-2.016-.432c-.64-.288-1.024-.72-1.152-1.296l-3.696-14.496-3.6 14.496c-.16.576-.56 1.008-1.2 1.296a4.65 4.65 0 0 1-2.016.432Zm37.675.096c-2.176 0-4.096-.4-5.76-1.2-1.664-.8-2.976-1.904-3.936-3.312-.96-1.44-1.44-3.12-1.44-5.04v-4.56c0-1.696.448-3.248 1.344-4.656a10.226 10.226 0 0 1 3.648-3.36c1.504-.864 3.168-1.296 4.992-1.296 1.728 0 3.312.384 4.752 1.152a8.787 8.787 0 0 1 3.456 3.12c.896 1.344 1.344 2.88 1.344 4.608 0 1.344-.208 2.304-.624 2.88-.416.576-.96.928-1.632 1.056a11.27 11.27 0 0 1-2.112.192H45.02v1.104c0 1.6.576 2.88 1.728 3.84 1.184.928 2.688 1.392 4.512 1.392 1.12 0 2.032-.16 2.736-.48.704-.32 1.296-.624 1.776-.912.48-.288.928-.432 1.344-.432.416 0 .768.128 1.056.384.288.256.512.56.672.912.16.352.24.672.24.96 0 .48-.336 1.008-1.008 1.584-.64.576-1.552 1.072-2.736 1.488-1.184.384-2.592.576-4.224.576ZM45.02 23.848h7.968c.704 0 1.168-.096 1.392-.288.256-.192.384-.576.384-1.152 0-.832-.208-1.6-.624-2.304a4.161 4.161 0 0 0-1.728-1.68c-.736-.416-1.568-.624-2.496-.624-.896 0-1.712.192-2.448.576a4.718 4.718 0 0 0-1.776 1.584c-.448.672-.672 1.456-.672 2.352v1.536Zm30.03 13.536c-1.505 0-2.865-.368-4.08-1.104-1.185-.768-2.033-1.648-2.545-2.64v1.68c0 .416-.224.8-.672 1.152-.448.352-.992.528-1.632.528-.704 0-1.296-.176-1.776-.528-.448-.352-.672-.736-.672-1.152V2.344c0-.48.224-.864.672-1.152.48-.32 1.072-.48 1.776-.48.736 0 1.344.16 1.824.48.512.288.768.672.768 1.152v15.264c.512-.928 1.296-1.76 2.352-2.496 1.056-.768 2.336-1.152 3.84-1.152 1.568 0 2.992.432 4.272 1.296 1.312.832 2.352 1.968 3.12 3.408.8 1.408 1.2 2.992 1.2 4.752v4.416c0 1.664-.4 3.232-1.2 4.704-.768 1.44-1.792 2.608-3.072 3.504-1.28.896-2.672 1.344-4.176 1.344Zm-1.44-4.464c.863 0 1.663-.24 2.4-.72a5.398 5.398 0 0 0 1.775-1.92c.448-.8.672-1.616.672-2.448v-4.416c0-.832-.224-1.632-.672-2.4a5.528 5.528 0 0 0-1.776-1.872 4.387 4.387 0 0 0-2.448-.72c-.8 0-1.568.208-2.304.624a4.821 4.821 0 0 0-1.824 1.68c-.48.736-.72 1.632-.72 2.688v5.52c0 .384.208.896.624 1.536.448.608 1.04 1.168 1.776 1.68a4.267 4.267 0 0 0 2.496.768ZM90.883 37c-.64 0-1.232-.144-1.776-.432-.512-.288-.768-.704-.768-1.248V3.544c0-.448.176-.832.528-1.152.384-.32.864-.48 1.44-.48h9.36c1.952 0 3.728.352 5.328 1.056 1.6.672 2.864 1.792 3.792 3.36.928 1.536 1.392 3.584 1.392 6.144v.384c0 2.56-.48 4.624-1.44 6.192-.928 1.568-2.224 2.704-3.888 3.408-1.632.672-3.456 1.008-5.472 1.008h-5.952V35.32c0 .544-.272.96-.816 1.248a3.463 3.463 0 0 1-1.728.432Zm2.544-17.568h5.952c1.792 0 3.184-.512 4.176-1.536 1.024-1.024 1.536-2.592 1.536-4.704v-.576c0-2.112-.512-3.664-1.536-4.656-.992-1.024-2.384-1.536-4.176-1.536h-5.952v13.008Zm29.687 17.952c-2.176 0-4.096-.4-5.76-1.2-1.664-.8-2.976-1.904-3.936-3.312-.96-1.44-1.44-3.12-1.44-5.04v-4.56c0-1.696.448-3.248 1.344-4.656a10.226 10.226 0 0 1 3.648-3.36c1.504-.864 3.168-1.296 4.992-1.296 1.728 0 3.312.384 4.752 1.152a8.787 8.787 0 0 1 3.456 3.12c.896 1.344 1.344 2.88 1.344 4.608 0 1.344-.208 2.304-.624 2.88-.416.576-.96.928-1.632 1.056a11.27 11.27 0 0 1-2.112.192h-10.128v1.104c0 1.6.576 2.88 1.728 3.84 1.184.928 2.688 1.392 4.512 1.392 1.12 0 2.032-.16 2.736-.48.704-.32 1.296-.624 1.776-.912.48-.288.928-.432 1.344-.432.416 0 .768.128 1.056.384.288.256.512.56.672.912.16.352.24.672.24.96 0 .48-.336 1.008-1.008 1.584-.64.576-1.552 1.072-2.736 1.488-1.184.384-2.592.576-4.224.576Zm-6.096-13.536h7.968c.704 0 1.168-.096 1.392-.288.256-.192.384-.576.384-1.152 0-.832-.208-1.6-.624-2.304a4.161 4.161 0 0 0-1.728-1.68c-.736-.416-1.568-.624-2.496-.624-.896 0-1.712.192-2.448.576a4.718 4.718 0 0 0-1.776 1.584c-.448.672-.672 1.456-.672 2.352v1.536ZM138.072 37c-.704 0-1.296-.176-1.776-.528-.448-.352-.672-.736-.672-1.152V15.88c0-.48.224-.864.672-1.152.48-.32 1.072-.48 1.776-.48.64 0 1.184.16 1.632.48.448.288.672.672.672 1.152v2.112a8.6 8.6 0 0 1 1.392-1.92 7.63 7.63 0 0 1 2.112-1.488 5.535 5.535 0 0 1 2.592-.624h1.536c.512 0 .96.224 1.344.672.384.416.576.928.576 1.536s-.192 1.136-.576 1.584c-.384.448-.832.672-1.344.672h-1.536c-.96 0-1.888.288-2.784.864-.896.576-1.632 1.392-2.208 2.448-.544 1.024-.816 2.272-.816 3.744v9.84c0 .416-.256.8-.768 1.152-.48.352-1.088.528-1.824.528Zm17.252 0c-.704 0-1.296-.144-1.776-.432-.448-.32-.672-.72-.672-1.2V9.88c0-1.728.384-3.28 1.152-4.656.768-1.408 1.792-2.512 3.072-3.312 1.28-.8 2.688-1.2 4.224-1.2h2.256c.64 0 1.12.224 1.44.672.352.448.528.944.528 1.488 0 .576-.176 1.088-.528 1.536-.32.416-.8.624-1.44.624h-1.296c-.832 0-1.584.192-2.256.576a4.295 4.295 0 0 0-1.536 1.584c-.384.64-.576 1.376-.576 2.208v4.848h6.192c.48 0 .832.192 1.056.576.256.384.384.816.384 1.296 0 .48-.128.912-.384 1.296-.224.384-.576.576-1.056.576h-6.192v17.376c0 .48-.256.88-.768 1.2-.512.288-1.12.432-1.824.432Zm12.055-9.408c-.48 0-.88-.192-1.2-.576-.288-.416-.432-.928-.432-1.536s.144-1.12.432-1.536c.32-.416.72-.624 1.2-.624h12.48c.448 0 .848.208 1.2.624.352.416.528.928.528 1.536s-.176 1.12-.528 1.536c-.352.384-.752.576-1.2.576h-12.48Zm27.387 9.792c-2.08 0-3.92-.304-5.52-.912-1.6-.608-2.848-1.344-3.744-2.208-.896-.896-1.344-1.744-1.344-2.544 0-.384.096-.784.288-1.2.224-.416.496-.768.816-1.056.352-.32.72-.48 1.104-.48.448 0 .864.192 1.248.576.416.352.912.784 1.488 1.296s1.296.96 2.16 1.344c.864.384 1.968.576 3.312.576 1.152 0 2.176-.176 3.072-.528.928-.384 1.648-.944 2.16-1.68.544-.768.816-1.728.816-2.88 0-1.216-.288-2.224-.864-3.024-.544-.8-1.296-1.472-2.256-2.016a24.168 24.168 0 0 0-3.024-1.488 94.648 94.648 0 0 1-3.312-1.44 16.217 16.217 0 0 1-3.072-1.824 8.551 8.551 0 0 1-2.256-2.736c-.544-1.12-.816-2.512-.816-4.176 0-1.76.32-3.232.96-4.416.672-1.184 1.552-2.128 2.64-2.832a10.849 10.849 0 0 1 3.6-1.488c1.312-.32 2.608-.48 3.888-.48.8 0 1.68.064 2.64.192.992.096 1.952.288 2.88.576.928.256 1.696.608 2.304 1.056.608.448.912.992.912 1.632 0 .32-.08.704-.24 1.152-.16.416-.4.784-.72 1.104-.288.32-.672.48-1.152.48-.416 0-.88-.144-1.392-.432-.512-.32-1.184-.624-2.016-.912-.8-.32-1.872-.48-3.216-.48-1.152 0-2.192.16-3.12.48-.896.32-1.6.8-2.112 1.44-.512.608-.768 1.424-.768 2.448s.272 1.872.816 2.544c.576.64 1.328 1.2 2.256 1.68.928.448 1.936.88 3.024 1.296 1.12.416 2.224.912 3.312 1.488a14.151 14.151 0 0 1 3.072 2.016c.96.8 1.712 1.824 2.256 3.072.576 1.216.864 2.736.864 4.56 0 2.304-.48 4.224-1.44 5.76-.928 1.504-2.224 2.624-3.888 3.36-1.632.736-3.504 1.104-5.616 1.104ZM212.417 37c-.736 0-1.344-.176-1.824-.528-.448-.352-.672-.736-.672-1.152V15.88c0-.48.224-.864.672-1.152.48-.32 1.088-.48 1.824-.48.608 0 1.136.16 1.584.48.448.288.672.672.672 1.152v1.728c.48-.928 1.264-1.76 2.352-2.496 1.12-.768 2.48-1.152 4.08-1.152 1.504 0 2.88.432 4.128 1.296 1.28.832 2.304 1.968 3.072 3.408.768 1.408 1.152 2.992 1.152 4.752V35.32c0 .544-.272.96-.816 1.248a3.463 3.463 0 0 1-1.728.432 3.549 3.549 0 0 1-1.68-.432c-.544-.288-.816-.704-.816-1.248V23.416c0-.832-.224-1.632-.672-2.4a5.106 5.106 0 0 0-1.728-1.872 4.387 4.387 0 0 0-2.448-.72c-.768 0-1.504.208-2.208.624-.704.384-1.28.944-1.728 1.68-.448.736-.672 1.632-.672 2.688V35.32c0 .416-.256.8-.768 1.152-.48.352-1.072.528-1.776.528ZM236.98 8.536c-.8 0-1.488-.272-2.064-.816-.576-.544-.864-1.152-.864-1.824 0-.736.288-1.36.864-1.872.576-.512 1.264-.768 2.064-.768s1.472.256 2.016.768c.576.512.864 1.136.864 1.872 0 .672-.288 1.28-.864 1.824-.544.544-1.216.816-2.016.816Zm0 28.464c-.736 0-1.344-.176-1.824-.528-.448-.352-.672-.736-.672-1.152V15.88c0-.48.224-.864.672-1.152.48-.32 1.088-.48 1.824-.48.704 0 1.296.16 1.776.48.512.288.768.672.768 1.152v19.44c0 .416-.256.8-.768 1.152-.48.352-1.072.528-1.776.528Zm10.265 10.8c-.704 0-1.296-.176-1.776-.528-.448-.352-.672-.736-.672-1.152V15.88c0-.48.224-.864.672-1.152.48-.32 1.056-.48 1.728-.48.672 0 1.232.16 1.68.48.448.288.672.672.672 1.152v1.728c.544-.928 1.36-1.76 2.448-2.496 1.12-.768 2.448-1.152 3.984-1.152 1.6 0 3.056.432 4.368 1.296 1.312.832 2.352 1.968 3.12 3.408.768 1.408 1.152 2.992 1.152 4.752v4.416c0 1.664-.4 3.232-1.2 4.704-.768 1.44-1.792 2.608-3.072 3.504-1.28.896-2.672 1.344-4.176 1.344-1.44 0-2.736-.368-3.888-1.104-1.152-.768-1.968-1.648-2.448-2.64v12.48c0 .416-.256.8-.768 1.152-.48.352-1.088.528-1.824.528Zm7.44-14.88c.864 0 1.664-.24 2.4-.72a5.398 5.398 0 0 0 1.776-1.92c.48-.8.72-1.616.72-2.448v-4.416c0-.832-.224-1.632-.672-2.4a5.374 5.374 0 0 0-1.824-1.872c-.736-.48-1.568-.72-2.496-.72-.768 0-1.52.208-2.256.624a4.821 4.821 0 0 0-1.824 1.68c-.448.736-.672 1.632-.672 2.688v5.52c0 .384.208.896.624 1.536.416.608.992 1.168 1.728 1.68a4.267 4.267 0 0 0 2.496.768Zm16.842 14.88c-.704 0-1.296-.176-1.776-.528-.448-.352-.672-.736-.672-1.152V15.88c0-.48.224-.864.672-1.152.48-.32 1.056-.48 1.728-.48.672 0 1.232.16 1.68.48.448.288.672.672.672 1.152v1.728c.544-.928 1.36-1.76 2.448-2.496 1.12-.768 2.448-1.152 3.984-1.152 1.6 0 3.056.432 4.368 1.296 1.312.832 2.352 1.968 3.12 3.408.768 1.408 1.152 2.992 1.152 4.752v4.416c0 1.664-.4 3.232-1.2 4.704-.768 1.44-1.792 2.608-3.072 3.504-1.28.896-2.672 1.344-4.176 1.344-1.44 0-2.736-.368-3.888-1.104-1.152-.768-1.968-1.648-2.448-2.64v12.48c0 .416-.256.8-.768 1.152-.48.352-1.088.528-1.824.528Zm7.44-14.88c.864 0 1.664-.24 2.4-.72a5.398 5.398 0 0 0 1.776-1.92c.48-.8.72-1.616.72-2.448v-4.416c0-.832-.224-1.632-.672-2.4a5.374 5.374 0 0 0-1.824-1.872c-.736-.48-1.568-.72-2.496-.72-.768 0-1.52.208-2.256.624a4.821 4.821 0 0 0-1.824 1.68c-.448.736-.672 1.632-.672 2.688v5.52c0 .384.208.896.624 1.536.416.608.992 1.168 1.728 1.68a4.267 4.267 0 0 0 2.496.768Zm24.617 4.464c-2.176 0-4.096-.4-5.76-1.2-1.664-.8-2.976-1.904-3.936-3.312-.96-1.44-1.44-3.12-1.44-5.04v-4.56c0-1.696.448-3.248 1.344-4.656a10.226 10.226 0 0 1 3.648-3.36c1.504-.864 3.168-1.296 4.992-1.296 1.728 0 3.312.384 4.752 1.152a8.787 8.787 0 0 1 3.456 3.12c.896 1.344 1.344 2.88 1.344 4.608 0 1.344-.208 2.304-.624 2.88-.416.576-.96.928-1.632 1.056a11.27 11.27 0 0 1-2.112.192h-10.128v1.104c0 1.6.576 2.88 1.728 3.84 1.184.928 2.688 1.392 4.512 1.392 1.12 0 2.032-.16 2.736-.48.704-.32 1.296-.624 1.776-.912.48-.288.928-.432 1.344-.432.416 0 .768.128 1.056.384.288.256.512.56.672.912.16.352.24.672.24.96 0 .48-.336 1.008-1.008 1.584-.64.576-1.552 1.072-2.736 1.488-1.184.384-2.592.576-4.224.576Zm-6.096-13.536h7.968c.704 0 1.168-.096 1.392-.288.256-.192.384-.576.384-1.152 0-.832-.208-1.6-.624-2.304a4.161 4.161 0 0 0-1.728-1.68c-.736-.416-1.568-.624-2.496-.624-.896 0-1.712.192-2.448.576a4.718 4.718 0 0 0-1.776 1.584c-.448.672-.672 1.456-.672 2.352v1.536ZM324.397 37c-2.72 0-4.8-.592-6.24-1.776-1.44-1.216-2.16-3.12-2.16-5.712V5.464c0-.48.256-.864.768-1.152a3.355 3.355 0 0 1 3.456 0c.544.288.816.672.816 1.152v8.784h5.856c.448 0 .784.192 1.008.576.256.384.384.816.384 1.296 0 .48-.128.912-.384 1.296-.224.384-.56.576-1.008.576h-5.856v11.52c0 1.152.24 1.968.72 2.448.512.48 1.392.72 2.64.72h1.632c.736 0 1.28.224 1.632.672.384.416.576.912.576 1.488 0 .544-.192 1.04-.576 1.488-.352.448-.896.672-1.632.672h-1.632Zm14.312.384c-1.568 0-2.976-.192-4.224-.576-1.248-.384-2.24-.864-2.976-1.44-.704-.608-1.056-1.216-1.056-1.824 0-.288.064-.608.192-.96.16-.352.368-.656.624-.912.288-.256.592-.384.912-.384.416 0 .848.192 1.296.576.48.352 1.104.72 1.872 1.104.768.352 1.84.528 3.216.528 1.6 0 2.672-.272 3.216-.816.576-.544.864-1.136.864-1.776 0-.832-.288-1.472-.864-1.92-.544-.48-1.264-.864-2.16-1.152a42.03 42.03 0 0 0-2.784-.816 16.776 16.776 0 0 1-2.832-1.104 6.075 6.075 0 0 1-2.16-1.872c-.544-.8-.816-1.856-.816-3.168 0-1.088.272-2.16.816-3.216.544-1.088 1.408-1.968 2.592-2.64 1.216-.704 2.832-1.056 4.848-1.056 1.216 0 2.368.128 3.456.384s1.984.608 2.688 1.056c.704.416 1.056.88 1.056 1.392 0 .224-.08.544-.24.96-.16.384-.384.736-.672 1.056-.256.288-.592.432-1.008.432-.32 0-.72-.112-1.2-.336-.48-.256-1.04-.496-1.68-.72-.64-.224-1.424-.336-2.352-.336-.928 0-1.68.16-2.256.48-.544.288-.944.64-1.2 1.056-.256.416-.384.832-.384 1.248 0 .704.272 1.248.816 1.632.544.384 1.264.704 2.16.96.896.256 1.84.528 2.832.816.992.256 1.92.64 2.784 1.152a6.072 6.072 0 0 1 2.16 2.064c.576.864.864 2.016.864 3.456 0 2.016-.736 3.632-2.208 4.848-1.44 1.216-3.504 1.824-6.192 1.824Z"
fill="url(#a)"
/>
<defs>
<linearGradient
id="a"
x1="9"
y1="49"
x2="349"
y2="49"
gradientUnits="userSpaceOnUse"
>
<stop stopColor="#3C8EEE" />
<stop offset="1" stopColor="#1EC47E" />
</linearGradient>
</defs>
</svg>
</>
),
head: (
<head>
<title>WebPerf Snippets</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="author" content="Joan Leon" />
<meta
property="og:url"
content="https://webperf-snippets.nucliweb.net/"
/>
<meta property="og:type" content="website" />
<meta property="og:locale" content="en_US" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="675" />
<meta property="og:title" content="Web Performance Snippets" />
<meta
property="og:description"
content="A curated list of snippets to get Web Performance metrics to use in the browser console or as snippets on Chrome DevTools by Joan León"
/>
<meta
property="og:image"
content="https://res.cloudinary.com/nucliweb/image/upload/c_scale,dpr_auto,f_auto,q_auto,w_1200/v1685886151/webperf-snippets/webperf-snippets-og-image.png"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@nucliweb" />
<meta name="twitter:creator" content="@nucliweb" />
</head>
),
project: {
link: "https://github.com/nucliweb/webperf-snippets",
},
editLink: {
component: null,
},
feedback: {
content: null,
},
sidebar: {
titleComponent({ title, type }) {
if (type === "separator") {
return <span className="cursor-default">{title}</span>;
}
return <>{title}</>;
},
defaultMenuCollapseLevel: 1,
toggleButton: true,
},
footer: {
text: (
<span>
MIT {new Date().getFullYear()} ©{" "}
<a href="https://twitter.com/nucliweb" target="_blank">
Joan León | @nucliweb
</a>
</span>
),
},
};