Skip to content

Commit fae4a46

Browse files
committed
feat: add writers page with contributor cards
- Add /writers route with SEO metadata - Create WriterCard component with gradient hover effects - Create WritersSection with responsive grid layout - Add centralized writersData.ts with TypeScript interface - Include social links (Twitter, GitHub, LinkedIn, Website) - Ensure responsive design: 1→2→3 column grid - Add beautiful header with sparkle decorations and stats badges Closes #3074 Signed-off-by: Gauarv Chaudhary <[email protected]>
1 parent a99b22f commit fae4a46

File tree

4 files changed

+496
-0
lines changed

4 files changed

+496
-0
lines changed

src/app/writers/page.tsx

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
import { Metadata } from "next";
2+
import { Header } from "@/components/Header";
3+
import { WritersSection } from "@/components/sections/WritersSection";
4+
import Image from "next/image";
5+
6+
export const metadata: Metadata = {
7+
title: "Our Writers | Keploy Writers Program",
8+
description:
9+
"Meet the talented technical writers who contribute to Keploy's community. Discover their expertise, learn from their content, and join our growing community of writers.",
10+
keywords: [
11+
"Keploy",
12+
"Writers Program",
13+
"Technical Writers",
14+
"Content Creators",
15+
"Developer Community",
16+
"Technical Writing",
17+
],
18+
openGraph: {
19+
title: "Our Writers | Keploy Writers Program",
20+
description:
21+
"Meet the talented technical writers who contribute to Keploy's community.",
22+
type: "website",
23+
},
24+
};
25+
26+
export default function WritersPage() {
27+
return (
28+
<main className="min-h-screen bg-white">
29+
<Header />
30+
<WritersSection />
31+
32+
{/* Footer */}
33+
<footer className="py-10 px-6 bg-white border-t border-gray-100">
34+
<div className="max-w-6xl mx-auto">
35+
<div className="flex flex-col md:flex-row items-center justify-between gap-6">
36+
<div className="flex items-center gap-4">
37+
<Image
38+
src="/images/keploy-logo.png"
39+
alt="Keploy"
40+
width={100}
41+
height={32}
42+
className="object-contain"
43+
/>
44+
</div>
45+
<p className="text-sm text-gray-500 text-center">
46+
Copyright © {new Date().getFullYear()} Keploy Inc. • Developer experience for e2e testing
47+
</p>
48+
49+
<div className="flex items-center gap-5">
50+
<a
51+
href="https://keploy.slack.com/"
52+
target="_blank"
53+
rel="noopener noreferrer"
54+
className="text-gray-400 hover:text-[#F89559] transition-colors"
55+
aria-label="Join Keploy Slack community"
56+
>
57+
<svg className="w-6 h-6" viewBox="0 0 24 24" fill="currentColor">
58+
<path d="M5.042 15.165a2.528 2.528 0 0 1-2.52 2.523A2.528 2.528 0 0 1 0 15.165a2.527 2.527 0 0 1 2.522-2.52h2.52v2.52zM6.313 15.165a2.527 2.527 0 0 1 2.521-2.52 2.527 2.527 0 0 1 2.521 2.52v6.313A2.528 2.528 0 0 1 8.834 24a2.528 2.528 0 0 1-2.521-2.522v-6.313zM8.834 5.042a2.528 2.528 0 0 1-2.521-2.52A2.528 2.528 0 0 1 8.834 0a2.528 2.528 0 0 1 2.521 2.522v2.52H8.834zM8.834 6.313a2.528 2.528 0 0 1 2.521 2.521 2.528 2.528 0 0 1-2.521 2.521H2.522A2.528 2.528 0 0 1 0 8.834a2.528 2.528 0 0 1 2.522-2.521h6.312zM18.956 8.834a2.528 2.528 0 0 1 2.522-2.521A2.528 2.528 0 0 1 24 8.834a2.528 2.528 0 0 1-2.522 2.521h-2.522V8.834zM17.688 8.834a2.528 2.528 0 0 1-2.523 2.521 2.527 2.527 0 0 1-2.52-2.521V2.522A2.527 2.527 0 0 1 15.165 0a2.528 2.528 0 0 1 2.523 2.522v6.312zM15.165 18.956a2.528 2.528 0 0 1 2.523 2.522A2.528 2.528 0 0 1 15.165 24a2.527 2.527 0 0 1-2.52-2.522v-2.522h2.52zM15.165 17.688a2.527 2.527 0 0 1-2.52-2.523 2.526 2.526 0 0 1 2.52-2.52h6.313A2.527 2.527 0 0 1 24 15.165a2.528 2.528 0 0 1-2.522 2.523h-6.313z" />
59+
</svg>
60+
</a>
61+
<a
62+
href="https://twitter.com/keaboratory"
63+
target="_blank"
64+
rel="noopener noreferrer"
65+
className="text-gray-400 hover:text-[#F89559] transition-colors"
66+
aria-label="Follow Keploy on X (Twitter)"
67+
>
68+
<svg className="w-6 h-6" viewBox="0 0 24 24" fill="currentColor">
69+
<path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" />
70+
</svg>
71+
</a>
72+
<a
73+
href="https://github.com/keploy"
74+
target="_blank"
75+
rel="noopener noreferrer"
76+
className="text-gray-400 hover:text-[#F89559] transition-colors"
77+
aria-label="Visit Keploy GitHub"
78+
>
79+
<svg className="w-6 h-6" viewBox="0 0 24 24" fill="currentColor">
80+
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z" />
81+
</svg>
82+
</a>
83+
</div>
84+
</div>
85+
</div>
86+
</footer>
87+
</main>
88+
);
89+
}
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
"use client";
2+
3+
import { Writer } from "@/lib/writersData";
4+
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
5+
import { Github, Linkedin, Twitter, Globe } from "lucide-react";
6+
import Image from "next/image";
7+
8+
interface WriterCardProps {
9+
writer: Writer;
10+
}
11+
12+
/**
13+
* WriterCard Component
14+
*
15+
* Displays an individual writer's profile with their image, name, role, bio,
16+
* and social links. Follows Keploy's visual style with elegant hover effects.
17+
*
18+
* Note: Currently using initials as placeholders. When real writer photos are
19+
* available, place them in /public/images/writers/ and update the image paths
20+
* in writersData.ts
21+
*/
22+
export function WriterCard({ writer }: WriterCardProps) {
23+
// Check if writer has a real image (not a placeholder path)
24+
const hasRealImage = writer.image && !writer.image.includes('placeholder');
25+
26+
return (
27+
<Card className="group relative h-full flex flex-col overflow-hidden bg-white border border-gray-200/60 rounded-2xl shadow-sm hover:shadow-2xl transition-all duration-500 hover:-translate-y-2">
28+
{/* Animated gradient border on hover */}
29+
<div
30+
className="absolute inset-0 rounded-2xl bg-gradient-to-br from-[#F89559] via-[#E87B3A] to-[#F89559] opacity-0 group-hover:opacity-100 transition-opacity duration-500 -z-10"
31+
style={{ padding: '2px', margin: '-2px' }}
32+
aria-hidden="true"
33+
/>
34+
35+
{/* Inner card background */}
36+
<div className="absolute inset-[2px] bg-white rounded-[14px] -z-5" aria-hidden="true" />
37+
38+
{/* Subtle top glow on hover */}
39+
<div
40+
className="absolute -top-20 left-1/2 -translate-x-1/2 w-40 h-40 bg-[#F89559]/20 rounded-full blur-3xl opacity-0 group-hover:opacity-100 transition-opacity duration-500"
41+
aria-hidden="true"
42+
/>
43+
44+
<CardHeader className="relative text-center pb-3 pt-8 flex-shrink-0">
45+
{/* Profile Image with gradient ring */}
46+
<div className="mx-auto mb-5 relative">
47+
{/* Outer glow ring */}
48+
<div className="absolute inset-0 w-28 h-28 rounded-full bg-gradient-to-br from-[#F89559] to-[#E87B3A] blur-sm opacity-0 group-hover:opacity-40 transition-opacity duration-500" />
49+
50+
{/* Avatar container */}
51+
<div className="relative w-28 h-28 rounded-full p-[3px] bg-gradient-to-br from-[#F89559]/30 to-[#E87B3A]/30 group-hover:from-[#F89559] group-hover:to-[#E87B3A] transition-all duration-500">
52+
<div className="w-full h-full rounded-full bg-gradient-to-br from-gray-50 to-gray-100 flex items-center justify-center overflow-hidden shadow-inner">
53+
{hasRealImage ? (
54+
<Image
55+
src={writer.image}
56+
alt={`${writer.name}'s profile photo`}
57+
width={112}
58+
height={112}
59+
className="w-full h-full object-cover"
60+
/>
61+
) : (
62+
/* Placeholder avatar with initials */
63+
<span
64+
className="text-3xl font-bold bg-gradient-to-br from-[#F89559] to-[#E87B3A] bg-clip-text text-transparent select-none"
65+
aria-label={`${writer.name}'s initials`}
66+
>
67+
{writer.name.split(' ').map(n => n[0]).join('').slice(0, 2)}
68+
</span>
69+
)}
70+
</div>
71+
</div>
72+
</div>
73+
74+
<CardTitle className="text-xl font-bold text-gray-900 group-hover:text-[#E87B3A] transition-colors duration-300">
75+
{writer.name}
76+
</CardTitle>
77+
78+
{writer.role && (
79+
<p className="text-sm font-semibold text-[#F89559] mt-2 tracking-wide">
80+
{writer.role}
81+
</p>
82+
)}
83+
</CardHeader>
84+
85+
<CardContent className="relative text-center flex-grow flex flex-col justify-between px-6 pb-6">
86+
{/* Bio text - fixed height with overflow handling */}
87+
<p className="text-gray-600 text-sm leading-relaxed min-h-[4.5rem]">
88+
{writer.bio}
89+
</p>
90+
91+
{/* Social Links - BOLDER icons with better visibility */}
92+
{writer.socialLinks && (
93+
<div className="flex justify-center gap-4 mt-5 pt-5 border-t border-gray-100">
94+
{writer.socialLinks.twitter && (
95+
<a
96+
href={writer.socialLinks.twitter}
97+
target="_blank"
98+
rel="noopener noreferrer"
99+
className="p-2.5 rounded-full bg-gray-100 text-gray-600 hover:bg-[#F89559] hover:text-white transition-all duration-300 hover:scale-110 hover:shadow-lg hover:shadow-[#F89559]/30"
100+
aria-label={`Follow ${writer.name} on X (Twitter)`}
101+
>
102+
<Twitter className="w-5 h-5" strokeWidth={2.5} />
103+
</a>
104+
)}
105+
{writer.socialLinks.github && (
106+
<a
107+
href={writer.socialLinks.github}
108+
target="_blank"
109+
rel="noopener noreferrer"
110+
className="p-2.5 rounded-full bg-gray-100 text-gray-600 hover:bg-[#F89559] hover:text-white transition-all duration-300 hover:scale-110 hover:shadow-lg hover:shadow-[#F89559]/30"
111+
aria-label={`Visit ${writer.name}'s GitHub profile`}
112+
>
113+
<Github className="w-5 h-5" strokeWidth={2.5} />
114+
</a>
115+
)}
116+
{writer.socialLinks.linkedin && (
117+
<a
118+
href={writer.socialLinks.linkedin}
119+
target="_blank"
120+
rel="noopener noreferrer"
121+
className="p-2.5 rounded-full bg-gray-100 text-gray-600 hover:bg-[#F89559] hover:text-white transition-all duration-300 hover:scale-110 hover:shadow-lg hover:shadow-[#F89559]/30"
122+
aria-label={`Connect with ${writer.name} on LinkedIn`}
123+
>
124+
<Linkedin className="w-5 h-5" strokeWidth={2.5} />
125+
</a>
126+
)}
127+
{writer.socialLinks.website && (
128+
<a
129+
href={writer.socialLinks.website}
130+
target="_blank"
131+
rel="noopener noreferrer"
132+
className="p-2.5 rounded-full bg-gray-100 text-gray-600 hover:bg-[#F89559] hover:text-white transition-all duration-300 hover:scale-110 hover:shadow-lg hover:shadow-[#F89559]/30"
133+
aria-label={`Visit ${writer.name}'s website`}
134+
>
135+
<Globe className="w-5 h-5" strokeWidth={2.5} />
136+
</a>
137+
)}
138+
</div>
139+
)}
140+
</CardContent>
141+
</Card>
142+
);
143+
}

0 commit comments

Comments
 (0)