Add a democratic idea submission and AI synthesis platform
Implement a full-stack application with a React frontend and a Python Flask backend. The backend integrates with an AI agent to filter political ideas for democratic values and synthesize accepted ideas into a collective voice. Includes API endpoints for idea submission, retrieval, and synthesis, along with database persistence. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 923ae0e3-a363-4db8-b04a-e8baca2a1330 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 31c5f770-9905-46af-a938-9d40ef3d4404 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8af7d2ec-2cc3-4ece-8af3-9f071488d072/923ae0e3-a363-4db8-b04a-e8baca2a1330/Xzzm5QH Replit-Helium-Checkpoint-Created: true
This commit is contained in:
@@ -0,0 +1,305 @@
|
||||
@import "tailwindcss";
|
||||
@import "tw-animate-css";
|
||||
@plugin "@tailwindcss/typography";
|
||||
|
||||
@custom-variant dark (&:is(.dark *));
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
|
||||
|
||||
@theme inline {
|
||||
--color-background: hsl(var(--background));
|
||||
--color-foreground: hsl(var(--foreground));
|
||||
--color-border: hsl(var(--border));
|
||||
--color-input: hsl(var(--input));
|
||||
--color-ring: hsl(var(--ring));
|
||||
|
||||
--color-card: hsl(var(--card));
|
||||
--color-card-foreground: hsl(var(--card-foreground));
|
||||
--color-card-border: hsl(var(--card-border));
|
||||
|
||||
--color-popover: hsl(var(--popover));
|
||||
--color-popover-foreground: hsl(var(--popover-foreground));
|
||||
--color-popover-border: hsl(var(--popover-border));
|
||||
|
||||
--color-primary: hsl(var(--primary));
|
||||
--color-primary-foreground: hsl(var(--primary-foreground));
|
||||
--color-primary-border: var(--primary-border);
|
||||
|
||||
--color-secondary: hsl(var(--secondary));
|
||||
--color-secondary-foreground: hsl(var(--secondary-foreground));
|
||||
--color-secondary-border: var(--secondary-border);
|
||||
|
||||
--color-muted: hsl(var(--muted));
|
||||
--color-muted-foreground: hsl(var(--muted-foreground));
|
||||
--color-muted-border: var(--muted-border);
|
||||
|
||||
--color-accent: hsl(var(--accent));
|
||||
--color-accent-foreground: hsl(var(--accent-foreground));
|
||||
--color-accent-border: var(--accent-border);
|
||||
|
||||
--color-destructive: hsl(var(--destructive));
|
||||
--color-destructive-foreground: hsl(var(--destructive-foreground));
|
||||
--color-destructive-border: var(--destructive-border);
|
||||
|
||||
--color-chart-1: hsl(var(--chart-1));
|
||||
--color-chart-2: hsl(var(--chart-2));
|
||||
--color-chart-3: hsl(var(--chart-3));
|
||||
--color-chart-4: hsl(var(--chart-4));
|
||||
--color-chart-5: hsl(var(--chart-5));
|
||||
|
||||
--color-sidebar: hsl(var(--sidebar));
|
||||
--color-sidebar-foreground: hsl(var(--sidebar-foreground));
|
||||
--color-sidebar-border: hsl(var(--sidebar-border));
|
||||
--color-sidebar-primary: hsl(var(--sidebar-primary));
|
||||
--color-sidebar-primary-foreground: hsl(var(--sidebar-primary-foreground));
|
||||
--color-sidebar-primary-border: var(--sidebar-primary-border);
|
||||
--color-sidebar-accent: hsl(var(--sidebar-accent));
|
||||
--color-sidebar-accent-foreground: hsl(var(--sidebar-accent-foreground));
|
||||
--color-sidebar-accent-border: var(--sidebar-accent-border);
|
||||
--color-sidebar-ring: hsl(var(--sidebar-ring));
|
||||
|
||||
--font-sans: var(--app-font-sans);
|
||||
--font-serif: var(--app-font-serif);
|
||||
--font-mono: var(--app-font-mono);
|
||||
|
||||
--radius-sm: calc(var(--radius) - 4px);
|
||||
--radius-md: calc(var(--radius) - 2px);
|
||||
--radius-lg: var(--radius);
|
||||
--radius-xl: calc(var(--radius) + 4px);
|
||||
}
|
||||
|
||||
/* LIGHT MODE */
|
||||
:root {
|
||||
--button-outline: rgba(0,0,0, .10);
|
||||
--badge-outline: rgba(0,0,0, .05);
|
||||
|
||||
--opaque-button-border-intensity: -8;
|
||||
|
||||
--elevate-1: rgba(0,0,0, .03);
|
||||
--elevate-2: rgba(0,0,0, .08);
|
||||
|
||||
/* Deep paper/parchment tone */
|
||||
--background: 40 20% 96%;
|
||||
--foreground: 220 30% 12%;
|
||||
|
||||
--border: 40 10% 85%;
|
||||
--input: 40 10% 85%;
|
||||
--ring: 220 80% 25%;
|
||||
|
||||
/* White-ish cards with slight warmth */
|
||||
--card: 40 20% 99%;
|
||||
--card-foreground: 220 30% 12%;
|
||||
--card-border: 40 15% 90%;
|
||||
|
||||
--popover: 40 20% 99%;
|
||||
--popover-foreground: 220 30% 12%;
|
||||
--popover-border: 40 15% 90%;
|
||||
|
||||
/* Deep French Blue */
|
||||
--primary: 220 80% 25%;
|
||||
--primary-foreground: 0 0% 100%;
|
||||
|
||||
/* Warm paper accent */
|
||||
--secondary: 40 25% 90%;
|
||||
--secondary-foreground: 220 80% 25%;
|
||||
|
||||
--muted: 40 15% 92%;
|
||||
--muted-foreground: 220 15% 45%;
|
||||
|
||||
--accent: 40 25% 90%;
|
||||
--accent-foreground: 220 80% 25%;
|
||||
|
||||
/* Warm French Red */
|
||||
--destructive: 350 70% 40%;
|
||||
--destructive-foreground: 0 0% 100%;
|
||||
|
||||
--sidebar: 40 20% 96%;
|
||||
--sidebar-foreground: 220 30% 12%;
|
||||
--sidebar-border: 40 10% 85%;
|
||||
--sidebar-primary: 220 80% 25%;
|
||||
--sidebar-primary-foreground: 0 0% 100%;
|
||||
--sidebar-accent: 40 25% 90%;
|
||||
--sidebar-accent-foreground: 220 80% 25%;
|
||||
--sidebar-ring: 220 80% 25%;
|
||||
|
||||
--chart-1: 220 80% 25%;
|
||||
--chart-2: 350 70% 40%;
|
||||
--chart-3: 40 15% 40%;
|
||||
--chart-4: 200 40% 40%;
|
||||
--chart-5: 25 70% 45%;
|
||||
|
||||
--app-font-sans: 'Inter', sans-serif;
|
||||
--app-font-serif: 'Fraunces', Georgia, serif;
|
||||
--app-font-mono: 'JetBrains Mono', monospace;
|
||||
--radius: 0rem; /* Sharp edges for revolutionary feel */
|
||||
|
||||
--shadow-2xs: 0px 1px 0px 0px rgba(0,0,0,0.1);
|
||||
--shadow-xs: 0px 1px 2px 0px rgba(0,0,0,0.1);
|
||||
--shadow-sm: 0px 2px 4px 0px rgba(0,0,0,0.1);
|
||||
--shadow: 0px 4px 6px -1px rgba(0,0,0,0.1), 0px 2px 4px -1px rgba(0,0,0,0.06);
|
||||
--shadow-md: 0px 4px 6px -1px rgba(0,0,0,0.1), 0px 2px 4px -1px rgba(0,0,0,0.06);
|
||||
--shadow-lg: 0px 10px 15px -3px rgba(0,0,0,0.1), 0px 4px 6px -2px rgba(0,0,0,0.05);
|
||||
--shadow-xl: 0px 20px 25px -5px rgba(0,0,0,0.1), 0px 10px 10px -5px rgba(0,0,0,0.04);
|
||||
--shadow-2xl: 0px 25px 50px -12px rgba(0,0,0,0.25);
|
||||
|
||||
--tracking-normal: 0em;
|
||||
--spacing: 0.25rem;
|
||||
|
||||
--sidebar-primary-border: hsl(from hsl(var(--sidebar-primary)) h s calc(l + var(--opaque-button-border-intensity)) / alpha);
|
||||
--sidebar-accent-border: hsl(from hsl(var(--sidebar-accent)) h s calc(l + var(--opaque-button-border-intensity)) / alpha);
|
||||
--primary-border: hsl(from hsl(var(--primary)) h s calc(l + var(--opaque-button-border-intensity)) / alpha);
|
||||
--secondary-border: hsl(from hsl(var(--secondary)) h s calc(l + var(--opaque-button-border-intensity)) / alpha);
|
||||
--muted-border: hsl(from hsl(var(--muted)) h s calc(l + var(--opaque-button-border-intensity)) / alpha);
|
||||
--accent-border: hsl(from hsl(var(--accent)) h s calc(l + var(--opaque-button-border-intensity)) / alpha);
|
||||
--destructive-border: hsl(from hsl(var(--destructive)) h s calc(l + var(--opaque-button-border-intensity)) / alpha);
|
||||
}
|
||||
|
||||
.dark {
|
||||
--button-outline: rgba(255,255,255, .10);
|
||||
--badge-outline: rgba(255,255,255, .05);
|
||||
|
||||
--opaque-button-border-intensity: 9;
|
||||
|
||||
--elevate-1: rgba(255,255,255, .04);
|
||||
--elevate-2: rgba(255,255,255, .09);
|
||||
|
||||
/* Deep rich dark blue-black */
|
||||
--background: 220 40% 6%;
|
||||
--foreground: 40 20% 90%;
|
||||
|
||||
--border: 220 30% 20%;
|
||||
--input: 220 30% 20%;
|
||||
--ring: 40 20% 90%;
|
||||
|
||||
--card: 220 40% 8%;
|
||||
--card-foreground: 40 20% 90%;
|
||||
--card-border: 220 30% 15%;
|
||||
|
||||
--popover: 220 40% 8%;
|
||||
--popover-foreground: 40 20% 90%;
|
||||
--popover-border: 220 30% 15%;
|
||||
|
||||
--primary: 40 20% 90%;
|
||||
--primary-foreground: 220 40% 6%;
|
||||
|
||||
--secondary: 220 30% 15%;
|
||||
--secondary-foreground: 40 20% 90%;
|
||||
|
||||
--muted: 220 30% 12%;
|
||||
--muted-foreground: 220 15% 60%;
|
||||
|
||||
--accent: 220 30% 15%;
|
||||
--accent-foreground: 40 20% 90%;
|
||||
|
||||
--destructive: 350 60% 45%;
|
||||
--destructive-foreground: 0 0% 100%;
|
||||
|
||||
--sidebar: 220 40% 6%;
|
||||
--sidebar-foreground: 40 20% 90%;
|
||||
--sidebar-border: 220 30% 20%;
|
||||
--sidebar-primary: 40 20% 90%;
|
||||
--sidebar-primary-foreground: 220 40% 6%;
|
||||
--sidebar-accent: 220 30% 15%;
|
||||
--sidebar-accent-foreground: 40 20% 90%;
|
||||
--sidebar-ring: 40 20% 90%;
|
||||
|
||||
--chart-1: 40 20% 90%;
|
||||
--chart-2: 350 60% 45%;
|
||||
--chart-3: 220 15% 60%;
|
||||
--chart-4: 200 50% 50%;
|
||||
--chart-5: 25 70% 50%;
|
||||
|
||||
--shadow-2xs: 0px 1px 0px 0px rgba(0,0,0,0.3);
|
||||
--shadow-xs: 0px 1px 2px 0px rgba(0,0,0,0.3);
|
||||
--shadow-sm: 0px 2px 4px 0px rgba(0,0,0,0.3);
|
||||
--shadow: 0px 4px 6px -1px rgba(0,0,0,0.3), 0px 2px 4px -1px rgba(0,0,0,0.2);
|
||||
--shadow-md: 0px 4px 6px -1px rgba(0,0,0,0.3), 0px 2px 4px -1px rgba(0,0,0,0.2);
|
||||
--shadow-lg: 0px 10px 15px -3px rgba(0,0,0,0.3), 0px 4px 6px -2px rgba(0,0,0,0.2);
|
||||
--shadow-xl: 0px 20px 25px -5px rgba(0,0,0,0.3), 0px 10px 10px -5px rgba(0,0,0,0.2);
|
||||
--shadow-2xl: 0px 25px 50px -12px rgba(0,0,0,0.4);
|
||||
}
|
||||
|
||||
@layer base {
|
||||
* {
|
||||
@apply border-border;
|
||||
}
|
||||
|
||||
body {
|
||||
@apply font-sans antialiased bg-background text-foreground;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6 {
|
||||
@apply font-serif tracking-tight;
|
||||
}
|
||||
}
|
||||
|
||||
@layer utilities {
|
||||
input[type="search"]::-webkit-search-cancel-button {
|
||||
@apply hidden;
|
||||
}
|
||||
|
||||
[contenteditable][data-placeholder]:empty::before {
|
||||
content: attr(data-placeholder);
|
||||
color: hsl(var(--muted-foreground));
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.no-default-hover-elevate {}
|
||||
.no-default-active-elevate {}
|
||||
|
||||
.toggle-elevate::before,
|
||||
.toggle-elevate-2::before {
|
||||
content: "";
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
inset: 0px;
|
||||
border-radius: inherit;
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
.toggle-elevate.toggle-elevated::before {
|
||||
background-color: var(--elevate-2);
|
||||
}
|
||||
|
||||
.border.toggle-elevate::before {
|
||||
inset: -1px;
|
||||
}
|
||||
|
||||
.hover-elevate:not(.no-default-hover-elevate),
|
||||
.active-elevate:not(.no-default-active-elevate),
|
||||
.hover-elevate-2:not(.no-default-hover-elevate),
|
||||
.active-elevate-2:not(.no-default-active-elevate) {
|
||||
position: relative;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.hover-elevate:not(.no-default-hover-elevate)::after,
|
||||
.active-elevate:not(.no-default-active-elevate)::after,
|
||||
.hover-elevate-2:not(.no-default-hover-elevate)::after,
|
||||
.active-elevate-2:not(.no-default-active-elevate)::after {
|
||||
content: "";
|
||||
pointer-events: none;
|
||||
position: absolute;
|
||||
inset: 0px;
|
||||
border-radius: inherit;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
.hover-elevate:hover:not(.no-default-hover-elevate)::after,
|
||||
.active-elevate:active:not(.no-default-active-elevate)::after {
|
||||
background-color: var(--elevate-1);
|
||||
}
|
||||
|
||||
.hover-elevate-2:hover:not(.no-default-hover-elevate)::after,
|
||||
.active-elevate-2:active:not(.no-default-active-elevate)::after {
|
||||
background-color: var(--elevate-2);
|
||||
}
|
||||
|
||||
.border.hover-elevate:not(.no-hover-interaction-elevate)::after,
|
||||
.border.active-elevate:not(.no-active-interaction-elevate)::after,
|
||||
.border.hover-elevate-2:not(.no-hover-interaction-elevate)::after,
|
||||
.border.active-elevate-2:not(.no-active-interaction-elevate)::after,
|
||||
.border.hover-elevate:not(.no-hover-interaction-elevate)::after {
|
||||
inset: -1px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user