fix: normalize component boundary spacing
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
component ErrorState {
|
||||
props {
|
||||
class = ""
|
||||
code = "500"
|
||||
title = "Something went wrong"
|
||||
description = "Please try again."
|
||||
@@ -7,6 +8,6 @@ component ErrorState {
|
||||
actionHref = "/"
|
||||
}
|
||||
view {
|
||||
<div class="mx-auto max-w-2xl px-4 py-24 text-center"><div class="text-8xl font-black text-violet-100 dark:text-violet-950">{code}</div><h1 class="-mt-4 text-3xl font-black">{title}</h1><p class="mt-4 text-slate-500">{description}</p><a href="{actionHref}" class="mt-8 inline-flex min-h-12 items-center rounded-xl bg-violet-600 px-5 font-semibold text-white">{actionLabel}</a></div>
|
||||
<div class="max-w-2xl text-center {class}"><div class="text-8xl font-black text-violet-100 dark:text-violet-950">{code}</div><h1 class="-mt-4 text-3xl font-black">{title}</h1><p class="mt-4 text-slate-500">{description}</p><a href="{actionHref}" class="mt-8 inline-flex min-h-12 items-center rounded-xl bg-violet-600 px-5 font-semibold text-white">{actionLabel}</a></div>
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user