Skip to content
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
4 changes: 2 additions & 2 deletions frontend/src/components/FeaturedProjects.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const FeaturedProjects: React.FC = () => {
Featured Projects
</h2>
<div className="h-1 w-20 bg-gradient-to-r from-purple-400 to-cyan-400 rounded-full" />
<p className="mt-6 max-w-2xl text-lg text-gray-300">
<p className="mt-6 max-w-2xl text-lg text-muted-foreground">
Discover groundbreaking projects that are reshaping industries
and creating positive impact around the world.
</p>
Expand Down Expand Up @@ -143,7 +143,7 @@ export const FeaturedProjects: React.FC = () => {
<h3 className="text-2xl sm:text-3xl font-bold text-white mb-4">
Ready to invest in innovation?
</h3>
<p className="text-gray-300 mb-8 max-w-xl mx-auto">
<p className="text-muted-foreground mb-8 max-w-xl mx-auto">
Join thousands of community members funding the future. Start with
as little as $1 and become part of the investment revolution.
</p>
Expand Down
44 changes: 22 additions & 22 deletions frontend/src/components/LoadingDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,23 @@ const LoadingDashboard: React.FC = () => {
{/* Header */}
<div className="flex justify-between items-center mb-8">
<div>
<div className="h-8 bg-gray-700 rounded w-64 mb-2"></div>
<div className="h-4 bg-gray-700 rounded w-48"></div>
<div className="h-8 bg-muted rounded w-64 mb-2"></div>
<div className="h-4 bg-muted rounded w-48"></div>
</div>
<div className="h-10 bg-gray-700 rounded w-32"></div>
<div className="h-10 bg-muted rounded w-32"></div>
</div>

{/* Stats Cards */}
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
{[...Array(4)].map((_, i) => (
<div key={i} className="bg-gray-800 rounded-lg p-6">
<div key={i} className="bg-card rounded-lg p-6">
<div className="flex items-center justify-between">
<div className="flex-1">
<div className="h-4 bg-gray-700 rounded w-20 mb-2"></div>
<div className="h-8 bg-gray-700 rounded w-16 mb-1"></div>
<div className="h-3 bg-gray-700 rounded w-24"></div>
<div className="h-4 bg-muted rounded w-20 mb-2"></div>
<div className="h-8 bg-muted rounded w-16 mb-1"></div>
<div className="h-3 bg-muted rounded w-24"></div>
</div>
<div className="w-12 h-12 bg-gray-700 rounded-full"></div>
<div className="w-12 h-12 bg-muted rounded-full"></div>
</div>
</div>
))}
Expand All @@ -35,19 +35,19 @@ const LoadingDashboard: React.FC = () => {
<div className="grid grid-cols-1 lg:grid-cols-3 gap-8">
{/* Investment Table */}
<div className="lg:col-span-2">
<div className="bg-gray-800 rounded-lg">
<div className="p-6 border-b border-gray-700">
<div className="h-6 bg-gray-700 rounded w-40 mb-2"></div>
<div className="h-4 bg-gray-700 rounded w-64"></div>
<div className="bg-card rounded-lg">
<div className="p-6 border-b border-border">
<div className="h-6 bg-muted rounded w-40 mb-2"></div>
<div className="h-4 bg-muted rounded w-64"></div>
</div>
<div className="p-6 space-y-4">
{[...Array(4)].map((_, i) => (
<div key={i} className="flex items-center space-x-4">
<div className="h-4 bg-gray-700 rounded flex-1"></div>
<div className="h-4 bg-gray-700 rounded w-20"></div>
<div className="h-4 bg-gray-700 rounded w-20"></div>
<div className="h-4 bg-gray-700 rounded w-16"></div>
<div className="h-8 bg-gray-700 rounded w-16"></div>
<div className="h-4 bg-muted rounded flex-1"></div>
<div className="h-4 bg-muted rounded w-20"></div>
<div className="h-4 bg-muted rounded w-20"></div>
<div className="h-4 bg-muted rounded w-16"></div>
<div className="h-8 bg-muted rounded w-16"></div>
</div>
))}
</div>
Expand All @@ -56,14 +56,14 @@ const LoadingDashboard: React.FC = () => {

{/* Chart */}
<div className="lg:col-span-1">
<div className="bg-gray-800 rounded-lg p-6">
<div className="h-6 bg-gray-700 rounded w-32 mb-4"></div>
<div className="bg-card rounded-lg p-6">
<div className="h-6 bg-muted rounded w-32 mb-4"></div>
<div className="space-y-3">
{[...Array(4)].map((_, i) => (
<div key={i} className="flex items-center space-x-3">
<div className="h-3 bg-gray-700 rounded w-16"></div>
<div className="h-3 bg-gray-700 rounded flex-1"></div>
<div className="h-3 bg-gray-700 rounded w-12"></div>
<div className="h-3 bg-muted rounded w-16"></div>
<div className="h-3 bg-muted rounded flex-1"></div>
<div className="h-3 bg-muted rounded w-12"></div>
</div>
))}
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/PortfolioChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const PortfolioChart: React.FC<PortfolioChartProps> = ({ investments }) => {
{item.projectName}
</div>
<div className="flex-1 mx-3">
<div className="bg-gray-700 rounded-full h-3 overflow-hidden">
<div className="bg-gray-300 dark:bg-gray-700 rounded-full h-3 overflow-hidden">
<div
className={`h-full ${colors[index % colors.length]} transition-all duration-500`}
style={{ width: `${item.percentage}%` }}
Expand Down
22 changes: 11 additions & 11 deletions frontend/src/components/layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const Header: React.FC = () => {
}, []);

return (
<header className="bg-black text-white shadow-md fixed top-0 left-0 right-0 z-50">
<header className="bg-background text-foreground shadow-md fixed top-0 left-0 right-0 z-50">
<nav className="max-w-7xl mx-auto px-4 py-4 flex justify-between items-center h-16">
<Link
href="/"
Expand All @@ -52,8 +52,8 @@ const Header: React.FC = () => {
href="/explore"
className={`text-sm font-medium transition-colors ${
isActive("/explore")
? "text-purple-400"
: "text-gray-300 hover:text-white"
? "text-primary"
: "text-muted-foreground hover:text-foreground"
}`}
>
Explore
Expand All @@ -62,8 +62,8 @@ const Header: React.FC = () => {
href="/bridge"
className={`text-sm font-medium transition-colors ${
isActive("/bridge")
? "text-purple-400"
: "text-gray-300 hover:text-white"
? "text-primary"
: "text-muted-foreground hover:text-foreground"
}`}
>
Bridge
Expand All @@ -72,8 +72,8 @@ const Header: React.FC = () => {
href="/create"
className={`text-sm font-medium transition-colors ${
isActive("/create")
? "text-purple-400"
: "text-gray-300 hover:text-white"
? "text-primary"
: "text-muted-foreground hover:text-foreground"
}`}
>
Create
Expand All @@ -82,8 +82,8 @@ const Header: React.FC = () => {
href="/dashboard"
className={`text-sm font-medium transition-colors ${
isActive("/dashboard")
? "text-purple-400"
: "text-gray-300 hover:text-white"
? "text-primary"
: "text-muted-foreground hover:text-foreground"
}`}
>
Dashboard
Expand All @@ -93,7 +93,7 @@ const Header: React.FC = () => {
<button
type="button"
onClick={() => setIsUserMenuOpen(!isUserMenuOpen)}
className="flex items-center gap-2 rounded-full border border-white/10 bg-white/5 px-3 py-1.5 text-sm text-gray-300 transition-colors hover:bg-white/10"
className="flex items-center gap-2 rounded-full border border-white/10 bg-white/5 px-3 py-1.5 text-sm text-muted-foreground transition-colors hover:bg-white/10 dark:hover:bg-black/20"
>
<User className="h-4 w-4" />
<span className="font-mono text-xs">
Expand Down Expand Up @@ -132,7 +132,7 @@ const Header: React.FC = () => {
{/* Mobile Menu Button */}
<button
onClick={toggleMenu}
className="md:hidden p-2 rounded-md text-gray-300 hover:text-white hover:bg-gray-800 transition-colors"
className="md:hidden p-2 rounded-md text-muted-foreground hover:text-foreground hover:bg-muted transition-colors"
aria-label="Toggle menu"
>
{isMenuOpen ? <X size={24} /> : <Menu size={24} />}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ui/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Badge: React.FC<BadgeProps> = ({
}) => {
const variants = {
primary: "bg-purple-700 text-white",
secondary: "bg-gray-700 text-white",
secondary: "bg-muted text-muted-foreground",
success: "bg-green-600 text-white",
danger: "bg-red-600 text-white",
};
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ui/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const Button: React.FC<ButtonProps> = ({
const variants = {
primary:
"bg-purple-700 text-white hover:bg-purple-600 focus:ring-purple-500",
secondary: "bg-gray-800 text-white hover:bg-gray-700 focus:ring-gray-500",
secondary: "bg-muted text-foreground hover:bg-muted/80 focus:ring-muted",
danger: "bg-red-600 text-white hover:bg-red-500 focus:ring-red-400",
};

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ui/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
const Card: React.FC<CardProps> = ({ children, className = "", ...props }) => {
return (
<div
className={`bg-gray-900 text-white p-6 rounded-lg shadow-lg ${className}`}
className={`bg-card text-card-foreground p-6 rounded-lg shadow-lg ${className}`}
{...props}
>
{children}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ui/Input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Input: React.FC<InputProps> = ({ label, error, ...props }) => {
"w-full px-3 py-3 border rounded focus:outline-none focus:ring-2 min-h-[44px] md:py-2 md:min-h-0";
const errorStyle = error
? "border-red-500 focus:ring-red-400"
: "border-gray-700 focus:ring-purple-500";
: "border-input focus:ring-primary";

return (
<div className="flex flex-col mb-4">
Expand Down
20 changes: 20 additions & 0 deletions frontend/src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,26 @@

@layer base {
:root {
/* Light mode */
--background: 0 0% 100%;
--foreground: 222.2 84% 4.9%;
--card: 0 0% 96.5%;
--card-foreground: 222.2 84% 4.9%;
--primary: 217.2 91.2% 59.8%;
--primary-foreground: 222.2 47.4% 11.2%;
--secondary: 217.2 32.6% 17.5%;
--secondary-foreground: 210 40% 98%;
--muted: 210 40% 96.1%;
--muted-foreground: 215.4 16.3% 46.9%;
--accent: 217.2 91.2% 59.8%;
--accent-foreground: 222.2 47.4% 11.2%;
--border: 214.3 31.8% 91.4%;
--input: 214.3 31.8% 91.4%;
--ring: 217.2 91.2% 59.8%;
}

.dark {
/* Dark mode */
--background: 222.2 84% 4.9%;
--foreground: 210 40% 98%;
--card: 222.2 84% 4.9%;
Expand Down
1 change: 1 addition & 0 deletions frontend/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Config } from "tailwindcss";

const config: Config = {
darkMode: "class",
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
Expand Down
Loading