Skip to content

Commit

Permalink
feat: add vercel powered-by
Browse files Browse the repository at this point in the history
  • Loading branch information
Innei committed Aug 8, 2023
1 parent 05fdadb commit ad474a5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,6 @@

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

![powered-by-vercel](https://images.ctfassets.net/e5382hct74si/78Olo8EZRdUlcDUFQvnzG7/fa4cdb6dc04c40fceac194134788a0e2/1618983297-powered-by-vercel.svg)

> [个人网站](https://innei.in/) · GitHub [@Innei](https://github.com/innei/)
22 changes: 21 additions & 1 deletion src/components/layout/footer/FooterInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,32 @@ import { defaultLinkSections } from './config'
import { GatewayCount } from './GatewayCount'
import { OwnerName } from './OwnerName'

const showVercelPoweredBy = !!process.env.NEXT_PUBLIC_VERCEL_ENV
export const FooterInfo = () => {
return (
<>
<FooterLinkSection />
<div className="relative">
<FooterLinkSection />
{showVercelPoweredBy && (
<div className="absolute top-0 hidden lg:-right-8 lg:block">
<img
src="https://images.ctfassets.net/e5382hct74si/78Olo8EZRdUlcDUFQvnzG7/fa4cdb6dc04c40fceac194134788a0e2/1618983297-powered-by-vercel.svg"
className="h-10 object-contain"
/>
</div>
)}
</div>

<FooterBottom />

{showVercelPoweredBy && (
<div className="mt-6 flex justify-center lg:hidden">
<img
src="https://images.ctfassets.net/e5382hct74si/78Olo8EZRdUlcDUFQvnzG7/fa4cdb6dc04c40fceac194134788a0e2/1618983297-powered-by-vercel.svg"
className="h-10 object-contain"
/>
</div>
)}
</>
)
}
Expand Down

1 comment on commit ad474a5

@vercel
Copy link

@vercel vercel bot commented on ad474a5 Aug 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

shiro – ./

shiro-git-main-innei.vercel.app
shiro-innei.vercel.app
innei.in
springtide.vercel.app

Please sign in to comment.