slice 4: accent palette refinement — blue → teal
Replace the four accent-family hex codes site-wide with the teal palette (keeps the dark theme; only swaps the accent family, not the dark base): #3b82f6 (accent primary CTA) → #5B7C8D (teal) [839×] #2563eb (accent-dark / hover) → #4A6473 (darker teal) [44×] #60a5fa (info link, lighter) → #8FB0C3 (mid teal) [68×] #1e3a5f (accent-muted bg) → #2F4F5F (navy) [44×] tailwind.config.js tokens updated to match (accent/accent-dark/accent-muted). Sweep also covers tailwind.css. 108 files touched. The dark base (#0d0d0d, #111, #161616, #1a1a1a etc.) is intentionally untouched. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -305,10 +305,10 @@ export default function AccountPage() {
|
||||
{toast && (
|
||||
<div
|
||||
className={`fixed bottom-6 left-1/2 -translate-x-1/2 z-50 border font-body text-sm px-5 py-3 rounded-sm shadow-lg flex items-center gap-2 animate-fade-in ${
|
||||
toast.type === "success" ?"bg-[#1a2535] border-[#3b82f6] text-[#e0e0e0]" :"bg-[#1a0a0a] border-[#cc0000] text-[#e0e0e0]"
|
||||
toast.type === "success" ?"bg-[#1a2535] border-[#5B7C8D] text-[#e0e0e0]" :"bg-[#1a0a0a] border-[#cc0000] text-[#e0e0e0]"
|
||||
}`}>
|
||||
{toast.type === "success" ? (
|
||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#3b82f6" strokeWidth="2.5" aria-hidden="true">
|
||||
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="#5B7C8D" strokeWidth="2.5" aria-hidden="true">
|
||||
<polyline points="20 6 9 17 4 12" />
|
||||
</svg>
|
||||
) : (
|
||||
@@ -324,7 +324,7 @@ export default function AccountPage() {
|
||||
<div className="bg-[#0d0d0d] border-b border-[#1e1e1e]">
|
||||
<div className="max-w-container mx-auto px-4 py-2.5">
|
||||
<nav aria-label="Breadcrumb" className="flex items-center gap-2 text-xs font-body text-[#555]">
|
||||
<Link href="/home-page" className="hover:text-[#3b82f6] transition-colors">Home</Link>
|
||||
<Link href="/home-page" className="hover:text-[#5B7C8D] transition-colors">Home</Link>
|
||||
<span aria-hidden="true">/</span>
|
||||
<span className="text-[#888]">Account</span>
|
||||
</nav>
|
||||
@@ -354,7 +354,7 @@ export default function AccountPage() {
|
||||
onClick={() => setActiveTab(tab.id)}
|
||||
className={`font-body text-sm font-bold uppercase tracking-wider px-4 py-3 border-b-2 transition-colors whitespace-nowrap ${
|
||||
activeTab === tab.id
|
||||
? "border-[#3b82f6] text-[#3b82f6]"
|
||||
? "border-[#5B7C8D] text-[#5B7C8D]"
|
||||
: "border-transparent text-[#666] hover:text-[#aaa]"
|
||||
}`}>
|
||||
{tab.label}
|
||||
@@ -379,7 +379,7 @@ export default function AccountPage() {
|
||||
value={fullName}
|
||||
onChange={(e) => setFullName(e.target.value)}
|
||||
placeholder="Your full name"
|
||||
className="w-full bg-[#111111] border border-[#2a2a2a] text-[#e0e0e0] font-body text-sm px-3 py-2.5 rounded-sm focus:outline-none focus:border-[#3b82f6] focus:ring-1 focus:ring-[#3b82f6] transition-colors placeholder-[#444]"
|
||||
className="w-full bg-[#111111] border border-[#2a2a2a] text-[#e0e0e0] font-body text-sm px-3 py-2.5 rounded-sm focus:outline-none focus:border-[#5B7C8D] focus:ring-1 focus:ring-[#5B7C8D] transition-colors placeholder-[#444]"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
@@ -391,7 +391,7 @@ export default function AccountPage() {
|
||||
onChange={(e) => setBio(e.target.value)}
|
||||
placeholder="Tell us a bit about yourself..."
|
||||
rows={3}
|
||||
className="w-full bg-[#111111] border border-[#2a2a2a] text-[#e0e0e0] font-body text-sm px-3 py-2.5 rounded-sm focus:outline-none focus:border-[#3b82f6] focus:ring-1 focus:ring-[#3b82f6] transition-colors placeholder-[#444] resize-none"
|
||||
className="w-full bg-[#111111] border border-[#2a2a2a] text-[#e0e0e0] font-body text-sm px-3 py-2.5 rounded-sm focus:outline-none focus:border-[#5B7C8D] focus:ring-1 focus:ring-[#5B7C8D] transition-colors placeholder-[#444] resize-none"
|
||||
/>
|
||||
</div>
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
|
||||
@@ -404,7 +404,7 @@ export default function AccountPage() {
|
||||
value={website}
|
||||
onChange={(e) => setWebsite(e.target.value)}
|
||||
placeholder="https://yoursite.com"
|
||||
className="w-full bg-[#111111] border border-[#2a2a2a] text-[#e0e0e0] font-body text-sm px-3 py-2.5 rounded-sm focus:outline-none focus:border-[#3b82f6] focus:ring-1 focus:ring-[#3b82f6] transition-colors placeholder-[#444]"
|
||||
className="w-full bg-[#111111] border border-[#2a2a2a] text-[#e0e0e0] font-body text-sm px-3 py-2.5 rounded-sm focus:outline-none focus:border-[#5B7C8D] focus:ring-1 focus:ring-[#5B7C8D] transition-colors placeholder-[#444]"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
@@ -416,7 +416,7 @@ export default function AccountPage() {
|
||||
value={location}
|
||||
onChange={(e) => setLocation(e.target.value)}
|
||||
placeholder="City, Country"
|
||||
className="w-full bg-[#111111] border border-[#2a2a2a] text-[#e0e0e0] font-body text-sm px-3 py-2.5 rounded-sm focus:outline-none focus:border-[#3b82f6] focus:ring-1 focus:ring-[#3b82f6] transition-colors placeholder-[#444]"
|
||||
className="w-full bg-[#111111] border border-[#2a2a2a] text-[#e0e0e0] font-body text-sm px-3 py-2.5 rounded-sm focus:outline-none focus:border-[#5B7C8D] focus:ring-1 focus:ring-[#5B7C8D] transition-colors placeholder-[#444]"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -445,7 +445,7 @@ export default function AccountPage() {
|
||||
<button
|
||||
type="submit"
|
||||
disabled={saving}
|
||||
className="bg-[#3b82f6] hover:bg-[#2563eb] text-white font-body text-xs font-bold uppercase tracking-wide px-6 py-2.5 rounded-sm transition-colors disabled:opacity-60 focus:outline-none focus-visible:ring-2 focus-visible:ring-[#3b82f6]">
|
||||
className="bg-[#5B7C8D] hover:bg-[#4A6473] text-white font-body text-xs font-bold uppercase tracking-wide px-6 py-2.5 rounded-sm transition-colors disabled:opacity-60 focus:outline-none focus-visible:ring-2 focus-visible:ring-[#5B7C8D]">
|
||||
{saving ? "Saving..." : "Save Profile"}
|
||||
</button>
|
||||
</div>
|
||||
@@ -471,7 +471,7 @@ export default function AccountPage() {
|
||||
onChange={(e) => setNewPassword(e.target.value)}
|
||||
placeholder="Enter new password"
|
||||
minLength={6}
|
||||
className="w-full bg-[#111111] border border-[#2a2a2a] text-[#e0e0e0] font-body text-sm px-3 py-2.5 rounded-sm focus:outline-none focus:border-[#3b82f6] focus:ring-1 focus:ring-[#3b82f6] transition-colors placeholder-[#444]"
|
||||
className="w-full bg-[#111111] border border-[#2a2a2a] text-[#e0e0e0] font-body text-sm px-3 py-2.5 rounded-sm focus:outline-none focus:border-[#5B7C8D] focus:ring-1 focus:ring-[#5B7C8D] transition-colors placeholder-[#444]"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
@@ -484,7 +484,7 @@ export default function AccountPage() {
|
||||
onChange={(e) => setConfirmPassword(e.target.value)}
|
||||
placeholder="Confirm new password"
|
||||
minLength={6}
|
||||
className="w-full bg-[#111111] border border-[#2a2a2a] text-[#e0e0e0] font-body text-sm px-3 py-2.5 rounded-sm focus:outline-none focus:border-[#3b82f6] focus:ring-1 focus:ring-[#3b82f6] transition-colors placeholder-[#444]"
|
||||
className="w-full bg-[#111111] border border-[#2a2a2a] text-[#e0e0e0] font-body text-sm px-3 py-2.5 rounded-sm focus:outline-none focus:border-[#5B7C8D] focus:ring-1 focus:ring-[#5B7C8D] transition-colors placeholder-[#444]"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -492,7 +492,7 @@ export default function AccountPage() {
|
||||
<button
|
||||
type="submit"
|
||||
disabled={changingPassword || !newPassword || !confirmPassword}
|
||||
className="bg-[#3b82f6] hover:bg-[#2563eb] text-white font-body text-xs font-bold uppercase tracking-wide px-6 py-2.5 rounded-sm transition-colors disabled:opacity-60 focus:outline-none focus-visible:ring-2 focus-visible:ring-[#3b82f6]">
|
||||
className="bg-[#5B7C8D] hover:bg-[#4A6473] text-white font-body text-xs font-bold uppercase tracking-wide px-6 py-2.5 rounded-sm transition-colors disabled:opacity-60 focus:outline-none focus-visible:ring-2 focus-visible:ring-[#5B7C8D]">
|
||||
{changingPassword ? "Updating..." : "Update Password"}
|
||||
</button>
|
||||
</div>
|
||||
@@ -525,7 +525,7 @@ export default function AccountPage() {
|
||||
</span>
|
||||
)}
|
||||
</h2>
|
||||
<Link href="/reading-list" className="font-body text-xs font-bold uppercase tracking-wide text-[#3b82f6] hover:text-[#2563eb] transition-colors">
|
||||
<Link href="/reading-list" className="font-body text-xs font-bold uppercase tracking-wide text-[#5B7C8D] hover:text-[#4A6473] transition-colors">
|
||||
Full List →
|
||||
</Link>
|
||||
</div>
|
||||
@@ -550,7 +550,7 @@ export default function AccountPage() {
|
||||
<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z" />
|
||||
</svg>
|
||||
<p className="font-body text-sm text-[#666]">No saved articles yet.</p>
|
||||
<Link href="/news" className="inline-block mt-3 font-body text-xs font-bold uppercase tracking-wide text-[#3b82f6] hover:text-[#2563eb] transition-colors">
|
||||
<Link href="/news" className="inline-block mt-3 font-body text-xs font-bold uppercase tracking-wide text-[#5B7C8D] hover:text-[#4A6473] transition-colors">
|
||||
Browse News →
|
||||
</Link>
|
||||
</div>
|
||||
@@ -572,10 +572,10 @@ export default function AccountPage() {
|
||||
</Link>
|
||||
<div className="flex-1 min-w-0">
|
||||
{item.article_category && (
|
||||
<span className="font-body text-[9px] font-bold uppercase tracking-widest text-[#3b82f6]">{item.article_category}</span>
|
||||
<span className="font-body text-[9px] font-bold uppercase tracking-widest text-[#5B7C8D]">{item.article_category}</span>
|
||||
)}
|
||||
<Link href={`/articles/${item.article_slug}`}>
|
||||
<h3 className="font-heading text-sm font-bold text-[#e0e0e0] group-hover:text-[#3b82f6] transition-colors line-clamp-2 leading-snug mt-0.5">
|
||||
<h3 className="font-heading text-sm font-bold text-[#e0e0e0] group-hover:text-[#5B7C8D] transition-colors line-clamp-2 leading-snug mt-0.5">
|
||||
{item.article_title}
|
||||
</h3>
|
||||
</Link>
|
||||
@@ -639,7 +639,7 @@ export default function AccountPage() {
|
||||
<circle cx="12" cy="12" r="10" /><polyline points="12 6 12 12 16 14" />
|
||||
</svg>
|
||||
<p className="font-body text-sm text-[#666]">No reading history yet.</p>
|
||||
<Link href="/news" className="inline-block mt-3 font-body text-xs font-bold uppercase tracking-wide text-[#3b82f6] hover:text-[#2563eb] transition-colors">
|
||||
<Link href="/news" className="inline-block mt-3 font-body text-xs font-bold uppercase tracking-wide text-[#5B7C8D] hover:text-[#4A6473] transition-colors">
|
||||
Browse News →
|
||||
</Link>
|
||||
</div>
|
||||
@@ -661,10 +661,10 @@ export default function AccountPage() {
|
||||
</Link>
|
||||
<div className="flex-1 min-w-0">
|
||||
{item.article_category && (
|
||||
<span className="font-body text-[9px] font-bold uppercase tracking-widest text-[#3b82f6]">{item.article_category}</span>
|
||||
<span className="font-body text-[9px] font-bold uppercase tracking-widest text-[#5B7C8D]">{item.article_category}</span>
|
||||
)}
|
||||
<Link href={`/articles/${item.article_slug}`}>
|
||||
<h3 className="font-heading text-sm font-bold text-[#e0e0e0] group-hover:text-[#3b82f6] transition-colors line-clamp-2 leading-snug mt-0.5">
|
||||
<h3 className="font-heading text-sm font-bold text-[#e0e0e0] group-hover:text-[#5B7C8D] transition-colors line-clamp-2 leading-snug mt-0.5">
|
||||
{item.article_title}
|
||||
</h3>
|
||||
</Link>
|
||||
@@ -703,7 +703,7 @@ export default function AccountPage() {
|
||||
</svg>
|
||||
<p className="font-body text-sm text-[#666]">No topic preferences tracked yet.</p>
|
||||
<p className="font-body text-xs text-[#555] mt-1">Read articles to build your interest profile.</p>
|
||||
<Link href="/news" className="inline-block mt-3 font-body text-xs font-bold uppercase tracking-wide text-[#3b82f6] hover:text-[#2563eb] transition-colors">
|
||||
<Link href="/news" className="inline-block mt-3 font-body text-xs font-bold uppercase tracking-wide text-[#5B7C8D] hover:text-[#4A6473] transition-colors">
|
||||
Browse News →
|
||||
</Link>
|
||||
</div>
|
||||
@@ -719,13 +719,13 @@ export default function AccountPage() {
|
||||
<span className="font-body text-xs font-bold uppercase tracking-wider text-[#e0e0e0] capitalize leading-tight">
|
||||
{t.topic}
|
||||
</span>
|
||||
<span className="font-body text-[10px] text-[#3b82f6] font-bold ml-2 flex-shrink-0">
|
||||
<span className="font-body text-[10px] text-[#5B7C8D] font-bold ml-2 flex-shrink-0">
|
||||
{t.view_count}×
|
||||
</span>
|
||||
</div>
|
||||
<div className="w-full bg-[#252525] rounded-full h-1">
|
||||
<div
|
||||
className="bg-[#3b82f6] h-1 rounded-full transition-all"
|
||||
className="bg-[#5B7C8D] h-1 rounded-full transition-all"
|
||||
style={{ width: `${pct}%` }}
|
||||
/>
|
||||
</div>
|
||||
@@ -750,7 +750,7 @@ export default function AccountPage() {
|
||||
</h2>
|
||||
<div className="flex items-center gap-4">
|
||||
<div className="flex flex-col items-center justify-center bg-[#111] border border-[#2a2a2a] rounded-sm px-6 py-4 min-w-[100px]">
|
||||
<span className="font-heading text-3xl font-bold text-[#3b82f6]">
|
||||
<span className="font-heading text-3xl font-bold text-[#5B7C8D]">
|
||||
{profile?.reputation ?? 0}
|
||||
</span>
|
||||
<span className="font-body text-xs text-[#666] mt-1 uppercase tracking-wider">Points</span>
|
||||
@@ -759,7 +759,7 @@ export default function AccountPage() {
|
||||
<p className="font-body text-sm text-[#aaa] leading-relaxed">
|
||||
Earn reputation by posting helpful threads and replies in the community forum.
|
||||
</p>
|
||||
<Link href="/forum" className="inline-block mt-3 font-body text-xs font-bold uppercase tracking-wide text-[#3b82f6] hover:text-[#2563eb] transition-colors">
|
||||
<Link href="/forum" className="inline-block mt-3 font-body text-xs font-bold uppercase tracking-wide text-[#5B7C8D] hover:text-[#4A6473] transition-colors">
|
||||
Go to Forum →
|
||||
</Link>
|
||||
</div>
|
||||
@@ -778,7 +778,7 @@ export default function AccountPage() {
|
||||
</div>
|
||||
<Link
|
||||
href="/home-page"
|
||||
className="font-body text-xs font-bold uppercase tracking-wide text-[#3b82f6] hover:text-[#2563eb] transition-colors">
|
||||
className="font-body text-xs font-bold uppercase tracking-wide text-[#5B7C8D] hover:text-[#4A6473] transition-colors">
|
||||
Manage →
|
||||
</Link>
|
||||
</div>
|
||||
@@ -789,7 +789,7 @@ export default function AccountPage() {
|
||||
</div>
|
||||
<Link
|
||||
href="/reading-list"
|
||||
className="font-body text-xs font-bold uppercase tracking-wide text-[#3b82f6] hover:text-[#2563eb] transition-colors">
|
||||
className="font-body text-xs font-bold uppercase tracking-wide text-[#5B7C8D] hover:text-[#4A6473] transition-colors">
|
||||
View List →
|
||||
</Link>
|
||||
</div>
|
||||
@@ -808,8 +808,8 @@ export default function AccountPage() {
|
||||
onClick={() => handleToggleDigest(!weeklyDigest)}
|
||||
aria-pressed={weeklyDigest}
|
||||
aria-label="Toggle weekly digest email"
|
||||
className={`relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-[#3b82f6] disabled:opacity-50 ${
|
||||
weeklyDigest ? "bg-[#3b82f6] border-[#3b82f6]" : "bg-[#2a2a2a] border-[#333]"
|
||||
className={`relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-[#5B7C8D] disabled:opacity-50 ${
|
||||
weeklyDigest ? "bg-[#5B7C8D] border-[#5B7C8D]" : "bg-[#2a2a2a] border-[#333]"
|
||||
}`}>
|
||||
<span
|
||||
className={`pointer-events-none inline-block h-4 w-4 transform rounded-full bg-white shadow transition duration-200 ease-in-out mt-0.5 ${
|
||||
|
||||
Reference in New Issue
Block a user