Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
IT Security ToolsKubeArmor v1.7.6-rc1(21.09.2026 um 18:49 Uhr)
IT Security Toolsvopono v1.0.2(21.09.2026 um 19:30 Uhr)
IT Security NachrichtenBoustead Singapore Reveals Cybersecurity Incident at Overseas Unit(21.09.2026 um 10:49 Uhr)
Malware / Trojaner / VirenPhantomRaven: Malware klaut Token und CI/CD-Geheimnisse über npm-Pakete(21.09.2026 um 20:05 Uhr)
IT Security NachrichtenBerlin/Bonn-Gesetz: Reaktionen auf Zusatzvereinbarung(21.09.2026 um 19:31 Uhr)
IT Security NachrichtenClaude Code Glitch Erases Years of Bengaluru Heritage Data(21.09.2026 um 19:31 Uhr)
IT Security NachrichtenIT Security News Hourly Summary 2026-09-21 20h : 7 posts(21.09.2026 um 20:00 Uhr)
IT Security NachrichtenGoogle Fined €403 Million Over GDPR Violations Tied to Location Data(21.09.2026 um 18:57 Uhr)
IT Security ToolsKubeArmor v1.7.6-rc1(21.09.2026 um 18:49 Uhr)
IT Security Toolsvopono v1.0.2(21.09.2026 um 19:30 Uhr)
IT Security NachrichtenBoustead Singapore Reveals Cybersecurity Incident at Overseas Unit(21.09.2026 um 10:49 Uhr)
Malware / Trojaner / VirenPhantomRaven: Malware klaut Token und CI/CD-Geheimnisse über npm-Pakete(21.09.2026 um 20:05 Uhr)
IT Security NachrichtenBerlin/Bonn-Gesetz: Reaktionen auf Zusatzvereinbarung(21.09.2026 um 19:31 Uhr)
IT Security NachrichtenClaude Code Glitch Erases Years of Bengaluru Heritage Data(21.09.2026 um 19:31 Uhr)
IT Security NachrichtenIT Security News Hourly Summary 2026-09-21 20h : 7 posts(21.09.2026 um 20:00 Uhr)
IT Security NachrichtenGoogle Fined €403 Million Over GDPR Violations Tied to Location Data(21.09.2026 um 18:57 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Day 59 of #100DayOfCode — Styling the Task Management App

Yesterday on Day 58, I built a Task Manager app with Next.js, MongoDB, and Server Actions. The app worked, but it looked rough. Today was all about making it actually nice to use. What I Used Tailwind CSS — for layout and s…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Yesterday on Day 58, I built a Task Manager app with Next.js, MongoDB, and Server Actions. The app worked, but it looked rough. Today was all about making it actually nice to use.






What I Used





  • Tailwind CSS — for layout and spacing utilities


  • Shadcn UI — for pre-built, accessible components I can own and customize






Setting Up Shadcn






npx shadcn@latest init
npx shadcn@latest add button card badge input textarea select label






This drops the component source directly into your project under /components/ui. No black-box library — you own the code.






What I Styled



Layout — A clean navbar with a centered max-w-4xl main container across all pages.



Task List — A responsive 2-column grid on larger screens, with a friendly empty state when no tasks exist yet.



Task Cards — Each task is wrapped in a Card with the title, a colored status badge, description, timestamps, and Edit/Delete actions.



Task Form — Proper Label + Input/Textarea/Select combinations with placeholders, and a dynamic submit button that says "Create Task" or "Update Task" depending on the context.




A Gotcha with Shadcn Badge



Shadcn's Badge only ships with 4 variants: default, secondary, destructive, outline. There's no built-in success or warning.




Instead of extending the component, I used a simple helper with Tailwind classes directly:




const statusStyles = (status) => {
if (status === "completed") return "bg-green-100 text-green-700 hover:bg-green-100";
if (status === "in-progress") return "bg-yellow-100 text-yellow-700 hover:bg-yellow-100";
return "bg-gray-100 text-gray-600 hover:bg-gray-100";
};

<Badge className={statusStyles(task.status)}>{task.status}</Badge>






Clean enough, and no need to touch the component internals.






Using Button with asChild



Shadcn's Button has an asChild prop that lets you pass a Link inside it and get all the button styles applied to the anchor — no wrapper divs needed:




<Button asChild variant="outline" size="sm">
<Link href={`/tasks/${task._id}`}>Edit</Link>
</Button>






This is one of those small things that makes Shadcn feel really well thought out.






Key Takeaway



Shadcn isn't a traditional component library. You install only what you need, and the code lives in your project. That means full control — no fighting with overrides or !important hacks.



Tomorrow, for Day 60, I'll be deploying the app on Vercel.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Day 59 of #100DayOfCode — Styling the Task Management App

Thematisch verwandte Begriffe: 100DayOfCode, Styling, Task, Management · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-63416 | draw.io is a configurable diagramming and whiteboarding application. Pri…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick