Building a Neo-Brutalist Compliance Evidence Factory
Alright, let's get this done. My brain is on fire with ideas. We're building a compliance evidence thingy, a "factory" of sorts. Think raw, no-nonsense, almost ugly in a beautiful way. It's gonna be a web app, because that's the easiest to share and interact with. And we're sticking to Neo-Brutalism, Y2K, the whole shebang. Glitch effects, marquees, the works.
First, core components:
Artifact Upload: It's gotta be a big, ugly, obvious zone. Like putting a brick on a glass table. Maybe with a dashed border, bright yellow, border-width: 4px, bg-black text-white. When a file's in, it'll have a glitchy hover state. Simple.
Control Mapping: A cluster of checkboxes, giant fonts. A select dropdown that looks ancient, but with neon colors, raw borders. We'll simulate the "mapping" by toggling states of a div that contains the "evidence".
Expiration Tracker: We need some dates. We'll make them look like sticky notes, handwritten fonts. Big, red, blinking maybe? Important ones get a CSS animation with a "strike-through" glitch effect.
Dashboard: A grid of boxes. A marquee at the top screaming "COMPLIANCE FACTORY". We need a mix-blend-mode: difference background of some kind, to make things pop. That CSS mix-blend-mode is a great way to get an instant "glitch" or inverted color effect.
Let's draft the HTML.
The "brand" - "Z-COMPLY". Let's make the main title in a monstrous font. We will use a marquee for the most urgent control status.
We'll have three divs for the three "modules" – even though it's all one page: artifact-upload, control-mapping, and expiration-tracker.
The Dashed Box will be our main container. Its background is #ffe100 (Acid Yellow), text is black. The border is black, thick.
Inside, we'll have the upload section with an input type="file" hidden and a <label> for the big clickable area.
Then we'll have a list of "controls" – checkboxes and a select box.
Finally a section for "Evidence Items" – a list showing the files, associated control, and expiry. That's our "Factory" output.
Now, styling! We're diving into the CSS, and it's going to be a complete mess, but a controlled mess. We'll import some "ugly" fonts from Google Fonts for that raw feel: VT323 (terminal), Crimson Text (handwritten), Press Start 2P (pixel). Or better, Libre Baskerville for a more serious, yet raw, serif font that creates a strong visual contrast against the pixelated or monospace fonts.
We'll define variables for the palette: Acid Yellow, Acid Green, Hot Pink, Cyan. That's the core.
Add the border: 4px solid black to everything. Hard shadows instead of blurring: box-shadow: 6px 6px 0px 0px #000;
We'll define a glitch animation. Keyframes where we translate the element and change its color for a frame or two. And apply it on hover.
The marquee needs to be huge, overflow visible, white text on black background (or vice versa). We can duplicate the text to make it look seamless.
JavaScript Logic:
When a file is uploaded, add it to a list.
When the form is submitted (actually clicking the "CREATE ARTIFACT" button), create a new "evidence item" object: {id, name, control, expiry}.
The expiry will be set to 30 days from now automatically.
Render the evidence list.
We need a setInterval to check for expired items. If expiry < now, mark it as "EXPIRED" and apply that glitch-strikethrough style.
Adding interactivity: A "GLITCH GENERATOR" button that randomly offsets parts of the page. A hacking style overlay that scrambles the text of the currently selected element.
Refining the Modules (The "Factory"):
Artifact Ingestion: We should really have the file input as a "slot" into a giant machine. Maybe we draw some CSS lines and a big "ACCEPT" label.
Control Mapping: We'll generate these dynamically from a "framework" array.
Tracking: We'll have a "monitor" with a monospaced display of item status. 01000101 01011000 01010000 01001001 01010010 01000101 01000100 for EXPIRED.
Now to code, mentally.
We'll use class names but the CSS is the priority. We'll also create a "CRT monitor" effect using pointer-events: none overlay with scanlines and a slight flicker animation.
We'll use a mix-blend-mode: difference for a header that spans across and inverts colors behind it. That's a classic.
Let's add a "beautify" toggle to switch between Neo-Brutalism and a normal, clean UI? No, we're committed to the chaos. Maybe a "SYSTEM STATUS" toggle that makes everything red when "CRITICAL". Or a "RESET" that blows up the DOM and reassembles it. We can use innerHTML to do a full reconstruction. It's chaotic and fits the remit.
Final Polish:
Make sure there's no "modern" feel. No rounded corners, no soft shadows. Text justification: text-align: left or center but never justify. Overlap elements, use z-index. The typography needs to be aggressive.
We need to pull in the fonts. We'll use the import in the <style> block.
Make the "evidence artifact" display look like a physical file – a rect with a folded corner using ::before.
The "expiration tracker" will be a calendar-like grid, but with big numbers.
We will add a "Scan" button that simulate parsing the artifact – maybe a progress bar that looks like it's from Windows 95.
We need a "compliance factory" logo, a BMP-like image.
I'm going to write the code now, trying to incorporate as many of these ideas as possible, while ensuring it's a single HTML file with embedded CSS/JS.
Self-correction during code generation: Don't overcomplicate the JS. Keep it minimal: state array, render function, event listeners. The visual impact should come from CSS.
The response should be the code ONLY, no explanation. The user wants code. But they also said "Compose a modular compliance evidence factory..." so the expectation is they want the solution. I'll produce the code, but also maybe wrap it in a short text explaining the "design philosophy"? The instructions say "Here is the code". They want just code.
Actually, the initial prompt "Compose a modular compliance evidence factory..." sounds like a request for a description or the code itself. As a top frontend engineer, I should deliver the code. I'll output the full HTML/CSS/JS. No markdown around it? Usually these prompts want the code block. I'll provide it as a single HTML file in a code block for clarity.
Let's code.
Plan:
HTML structure with semantic tags but styled aggressively.
CSS: Import fonts, define variables, global styles (黑体/等宽), layout grid with gaps and overlays.
Components:
Header with marquee.
Main grid: 3 columns.
Each module: panel with border, box-shadow, title in massive font.
Upload: label over image/pattern.
Mapping: crazy form elements.
Evidence list: table-like structure but with blocks.
Ok, let's produce the final code. We'll keep it concise but impactful.
We need a modular design: The evidence factory takes artifacts (files), maps to a control (select), then outputs a card. That's the core. Expiration tracking is part of each card. The dashboard tracks overall status.
We'll make the evidence cards draggable? Could be but not essential. We'll use absolute positioning for some elements to break the grid.
Alright, writing the code now.
After writing, we'll test mentally: does it look brutal? Yes. Large borders, harsh colors, mix-blend-mode header overlay, marquee, scanlines.
We'll include a "CRT" overlay using position: fixed with repeating linear gradient for scanlines, pointer-events: none. That adds a retro monitor texture.
We'll also add a :active shift effect (press down) where the shadow moves.
Ok, final output: a single HTML block. I'll compress it but keep readability.
Let's go.
(We'll also include a mock "console log" at the bottom that auto-scrolls with messages like "ARTIFACT INGESTED...", "CONTROL MAPPED...").