Skip to content
Closed
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
293 changes: 254 additions & 39 deletions README.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion components/Marquee.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export function Marquee({
.map((_, i) => (
<div
key={i}
className={`flex shrink-0 justify-around [gap:var(--gap)] ${vertical ? 'animate-marquee-vertical flex-col' : 'animate-marquee flex-row'} ${pauseOnHover ? 'group-hover:[animation-play-state:paused]' : ''} ${reverse ? '[animation-direction:reverse]' : ''}`}
className={`flex shrink-0 justify-around [gap:var(--gap)] will-change-transform [backface-visibility:hidden] ${vertical ? 'animate-marquee-vertical flex-col' : 'animate-marquee flex-row'} ${pauseOnHover ? 'group-hover:[animation-play-state:paused]' : ''} ${reverse ? '[animation-direction:reverse]' : ''}`}
>
{children}
</div>
Expand Down
36 changes: 20 additions & 16 deletions components/testimonials.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from "react";
import { useRouter } from "next/router";
import { Marquee } from "./Marquee";
import Tweets from "../services/Tweets";
const firstRow = Tweets.slice(0, Tweets.length / 2);
Expand All @@ -18,19 +17,25 @@ const ReviewCard = ({
id: string;
content: string;
}) => {
const { basePath } = useRouter();
const isExternal = typeof avatar === "string" && /^https?:\/\//i.test(avatar);
const proxiedAvatar = isExternal ? `${basePath}/api/proxy-image?url=${encodeURIComponent(avatar)}` : avatar;
const fallbackAvatar = `https://ui-avatars.com/api/?name=${encodeURIComponent(name)}&background=random&size=64`;
const localPlaceholder = "/blog/avatars/avatar-placeholder.svg";
return (
<a href={post} target="_blank" className="lg:mx-2">
<a href={post} target="_blank" rel="noopener noreferrer" className="lg:mx-2">
<figure className="relative w-80 cursor-pointer overflow-hidden rounded-xl border p-4 border-gray-950/[.1] bg-gray-950/[.01] hover:bg-gray-950/[.05]">
<div className="flex flex-row items-center gap-2">
<img
className="rounded-full"
width="32"
height="32"
alt=""
src={proxiedAvatar}
alt={`${name}'s avatar`}
src={avatar}
onError={(e) => {
const img = e.target as HTMLImageElement;
if (img.src !== localPlaceholder) {
Copy link

Copilot AI Feb 23, 2026

Choose a reason for hiding this comment

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

if (img.src !== localPlaceholder) is comparing img.src (typically an absolute URL) against a relative path string, so the condition won’t behave as intended in the browser. If the placeholder ever errors first, this can cause the fallback logic to keep re-running. Prefer comparing new URL(img.src).pathname (or endsWith(localPlaceholder)) or track fallback state via a data attribute.

Suggested change
if (img.src !== localPlaceholder) {
const isLocalPlaceholder = img.src.endsWith(localPlaceholder);
if (!isLocalPlaceholder) {

Copilot uses AI. Check for mistakes.
img.onerror = () => { img.src = localPlaceholder; };
img.src = fallbackAvatar;
}
Comment on lines +20 to +37
Copy link

Copilot AI Feb 23, 2026

Choose a reason for hiding this comment

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

ReviewCard now uses src={avatar} directly (and falls back to ui-avatars.com). With the current CSP in next.config.js (img-src 'self' ...), remote avatars like https://pbs.twimg.com/... will be blocked, so images will always error and fall back to the placeholder. Consider restoring the /api/proxy-image?url=... behavior for external avatars (as used elsewhere in the codebase) or explicitly allow the required remote domains in the CSP (including pbs.twimg.com and ui-avatars.com).

Copilot uses AI. Check for mistakes.
}}
/>
<div className="flex flex-col">
<figcaption className="text-sm font-bold">{name}</figcaption>
Expand All @@ -46,23 +51,22 @@ const ReviewCard = ({
const TwitterTestimonials = () => {
return (
<div className="">
<h3 className="text-center lg:text-left bg-gradient-to-r from-orange-200 to-orange-100 bg-[length:100%_20px] bg-no-repeat bg-left-bottom w-max mb-6 text-3xl lg:text-4xl heading1 md:text-4xl font-bold tracking-tighter leading-tight mt-16">
What our community thinks
</h3>
<div className="relative flex mb-8 h-[700px] w-full flex-col items-center justify-center overflow-hidden rounded-lg border ">
<Marquee pauseOnHover className="[--duration:20s]">
<h3 className="text-center lg:text-left bg-gradient-to-r from-orange-200 to-orange-100 bg-[length:100%_20px] bg-no-repeat bg-left-bottom w-max mb-6 text-3xl lg:text-4xl heading1 md:text-4xl font-bold tracking-tighter leading-tight mt-16">
What our community thinks
</h3>
<div className="relative flex mb-8 h-[700px] w-full flex-col items-center justify-center overflow-hidden rounded-lg bg-transparent marquee-mask">

<Marquee pauseOnHover repeat={2} className="[--duration:17s]">
{firstRow.map((tweet) => (
<ReviewCard key={tweet.id} {...tweet} />
))}
</Marquee>
<Marquee reverse pauseOnHover className="[--duration:20s]">
<Marquee reverse pauseOnHover repeat={2} className="[--duration:17s]">
{secondRow.map((tweet) => (
<ReviewCard key={tweet.id} {...tweet} />
))}
</Marquee>
<div className="pointer-events-none absolute inset-y-0 left-0 w-1/3 bg-gradient-to-r from-neutral-100 dark:from-background"></div>
<div className="pointer-events-none absolute inset-y-0 right-0 w-1/3 bg-gradient-to-l from-neutral-100 dark:from-background"></div>

</div>
</div>
);
Expand Down
13 changes: 0 additions & 13 deletions package-lock.json

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

Binary file added public/avatars/AndooBomber.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/avatars/TadasG.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions public/avatars/avatar-placeholder.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/avatars/kyongshiii06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/avatars/matsuu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/avatars/yadon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading