Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(insights): integrate speed-insights #29

Merged
merged 1 commit into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@headlessui/react": "^2.1.2",
"@notionhq/client": "^2.2.15",
"@vercel/analytics": "^1.3.1",
"@vercel/speed-insights": "^1.0.12",
"aos": "^2.3.4",
"clsx": "^2.1.1",
"framer-motion": "^11.2.11",
Expand Down
31 changes: 31 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Header from '@/components/header/Header'
import ScreenSizeDetector from '@/components/screen-size-detector/ScreenSizeDetector'
import { WEBSITE_URL } from '@/constants/globals'
import { Analytics } from '@vercel/analytics/react'
import { SpeedInsights } from '@vercel/speed-insights/next'

import './globals.css'
import 'aos/dist/aos.css'
Expand Down Expand Up @@ -71,6 +72,7 @@ const RootLayout: FC<Props> = ({ children }) => {
{children}
</div>
<Analytics />
<SpeedInsights />
{!isProd && <ScreenSizeDetector />}
</body>
</html>
Expand Down
2 changes: 1 addition & 1 deletion src/app/watch/watchResource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const WatchResource: FC<Props> = ({ resource, query, truncate = true }) => {
return (
<div className="group relative flex">
{shiny && (
<div className="absolute inset-0 z-0 rounded-lg bg-gradient-to-r from-purple-600 to-pink-600 opacity-25 blur transition duration-1000 group-hover:opacity-100 group-hover:duration-200" />
<div className="absolute -inset-2 z-0 rounded-lg bg-gradient-to-r from-purple-600 to-pink-600 opacity-25 blur transition duration-1000 group-hover:opacity-100 group-hover:duration-200 md:-inset-1" />
)}
<a
href={url}
Expand Down