Skip to content

Commit ad474a5

Browse files
committed
feat: add vercel powered-by
1 parent 05fdadb commit ad474a5

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,6 @@
6464

6565
感谢 GPT-4 和 [cali.so](https://github.com/CaliCastle/cali.so) 的支持,以及 Mix Space Team 和广大社区朋友们的贡献。
6666

67+
![powered-by-vercel](https://images.ctfassets.net/e5382hct74si/78Olo8EZRdUlcDUFQvnzG7/fa4cdb6dc04c40fceac194134788a0e2/1618983297-powered-by-vercel.svg)
68+
6769
> [个人网站](https://innei.in/) · GitHub [@Innei](https://github.com/innei/)

src/components/layout/footer/FooterInfo.tsx

+21-1
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,32 @@ import { defaultLinkSections } from './config'
1111
import { GatewayCount } from './GatewayCount'
1212
import { OwnerName } from './OwnerName'
1313

14+
const showVercelPoweredBy = !!process.env.NEXT_PUBLIC_VERCEL_ENV
1415
export const FooterInfo = () => {
1516
return (
1617
<>
17-
<FooterLinkSection />
18+
<div className="relative">
19+
<FooterLinkSection />
20+
{showVercelPoweredBy && (
21+
<div className="absolute top-0 hidden lg:-right-8 lg:block">
22+
<img
23+
src="https://images.ctfassets.net/e5382hct74si/78Olo8EZRdUlcDUFQvnzG7/fa4cdb6dc04c40fceac194134788a0e2/1618983297-powered-by-vercel.svg"
24+
className="h-10 object-contain"
25+
/>
26+
</div>
27+
)}
28+
</div>
1829

1930
<FooterBottom />
31+
32+
{showVercelPoweredBy && (
33+
<div className="mt-6 flex justify-center lg:hidden">
34+
<img
35+
src="https://images.ctfassets.net/e5382hct74si/78Olo8EZRdUlcDUFQvnzG7/fa4cdb6dc04c40fceac194134788a0e2/1618983297-powered-by-vercel.svg"
36+
className="h-10 object-contain"
37+
/>
38+
</div>
39+
)}
2040
</>
2141
)
2242
}

0 commit comments

Comments
 (0)