diff --git a/pkg/nebula/assets/css/styles.css b/pkg/nebula/assets/css/styles.css index 128f5f51d..2519f309e 100644 --- a/pkg/nebula/assets/css/styles.css +++ b/pkg/nebula/assets/css/styles.css @@ -992,10 +992,6 @@ select{ left: 0px; } -.left-1\/2{ - left: 50%; -} - .right-0{ right: 0px; } @@ -1028,10 +1024,6 @@ select{ z-index: 40; } -.z-50{ - z-index: 50; -} - .z-\[99\]{ z-index: 99; } @@ -1071,10 +1063,6 @@ select{ margin-bottom: 0.5rem; } -.mb-3{ - margin-bottom: 0.75rem; -} - .mb-4{ margin-bottom: 1rem; } @@ -1095,10 +1083,6 @@ select{ margin-left: 0.5rem; } -.mr-1{ - margin-right: 0.25rem; -} - .mr-2{ margin-right: 0.5rem; } @@ -1115,22 +1099,10 @@ select{ margin-right: 1.25rem; } -.mr-7{ - margin-right: 1.75rem; -} - .mt-1{ margin-top: 0.25rem; } -.mt-12{ - margin-top: 3rem; -} - -.mt-2{ - margin-top: 0.5rem; -} - .mt-24{ margin-top: 6rem; } @@ -1191,14 +1163,6 @@ select{ height: 5rem; } -.h-3{ - height: 0.75rem; -} - -.h-32{ - height: 8rem; -} - .h-4{ height: 1rem; } @@ -1207,18 +1171,10 @@ select{ height: 1.25rem; } -.h-6{ - height: 1.5rem; -} - .h-8{ height: 2rem; } -.h-9{ - height: 2.25rem; -} - .h-\[280px\]{ height: 280px; } @@ -1235,10 +1191,6 @@ select{ height: 100vh; } -.min-h-screen{ - min-height: 100vh; -} - .w-0{ width: 0px; } @@ -1247,22 +1199,10 @@ select{ width: 33.333333%; } -.w-14{ - width: 3.5rem; -} - -.w-16{ - width: 4rem; -} - .w-20{ width: 5rem; } -.w-3{ - width: 0.75rem; -} - .w-4{ width: 1rem; } @@ -1271,10 +1211,6 @@ select{ width: 1.25rem; } -.w-6{ - width: 1.5rem; -} - .w-8{ width: 2rem; } @@ -1283,27 +1219,14 @@ select{ width: 22rem; } -.w-\[365px\]{ - width: 365px; -} - .w-\[calc\(100\%\+1rem\)\]{ width: calc(100% + 1rem); } -.w-\[full\]{ - width: full; -} - .w-auto{ width: auto; } -.w-fit{ - width: -moz-fit-content; - width: fit-content; -} - .w-full{ width: 100%; } @@ -1312,10 +1235,6 @@ select{ width: 100vw; } -.max-w-2xl{ - max-width: 42rem; -} - .max-w-3xl{ max-width: 48rem; } @@ -1336,18 +1255,10 @@ select{ max-width: 94rem; } -.max-w-lg{ - max-width: 32rem; -} - .max-w-md{ max-width: 28rem; } -.max-w-screen-sm{ - max-width: 640px; -} - .max-w-sm{ max-width: 24rem; } @@ -1372,26 +1283,11 @@ select{ flex-grow: 1; } -.-translate-x-0{ - --tw-translate-x: -0px; - transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); -} - .-translate-x-1\/2{ --tw-translate-x: -50%; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } -.-translate-x-4{ - --tw-translate-x: -1rem; - transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); -} - -.-translate-x-7{ - --tw-translate-x: -1.75rem; - transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); -} - .-translate-x-8{ --tw-translate-x: -2rem; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1402,11 +1298,6 @@ select{ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } -.-translate-y-0\.5{ - --tw-translate-y: -0.125rem; - transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); -} - .-translate-y-4{ --tw-translate-y: -1rem; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1437,16 +1328,6 @@ select{ transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); } -.translate-y-24{ - --tw-translate-y: 6rem; - transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); -} - -.translate-y-3{ - --tw-translate-y: 0.75rem; - transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); -} - .translate-y-4{ --tw-translate-y: 1rem; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); @@ -1506,10 +1387,6 @@ select{ animation: infinite-scroll-inverse 60s linear infinite; } -.cursor-default{ - cursor: default; -} - .cursor-pointer{ cursor: pointer; } @@ -1518,10 +1395,6 @@ select{ grid-template-columns: repeat(2, minmax(0, 1fr)); } -.flex-row{ - flex-direction: row; -} - .flex-col{ flex-direction: column; } @@ -1566,14 +1439,6 @@ select{ gap: 3rem; } -.gap-2{ - gap: 0.5rem; -} - -.gap-3{ - gap: 0.75rem; -} - .gap-4{ gap: 1rem; } @@ -1582,15 +1447,6 @@ select{ gap: 2rem; } -.gap-x-3{ - -moz-column-gap: 0.75rem; - column-gap: 0.75rem; -} - -.gap-y-3{ - row-gap: 0.75rem; -} - .space-x-1 > :not([hidden]) ~ :not([hidden]){ --tw-space-x-reverse: 0; margin-right: calc(0.25rem * var(--tw-space-x-reverse)); @@ -1678,10 +1534,6 @@ select{ border-width: 1px; } -.border-2{ - border-width: 2px; -} - .border-\[2px\]{ border-width: 2px; } @@ -1690,44 +1542,16 @@ select{ border-top-width: 1px; } -.border-blue-600{ - --tw-border-opacity: 1; - border-color: rgb(37 99 235 / var(--tw-border-opacity)); -} - -.border-green-600{ - --tw-border-opacity: 1; - border-color: rgb(22 163 74 / var(--tw-border-opacity)); -} - .border-neutral-200{ --tw-border-opacity: 1; border-color: rgb(229 229 229 / var(--tw-border-opacity)); } -.border-neutral-200\/60{ - border-color: rgb(229 229 229 / 0.6); -} - -.border-neutral-200\/70{ - border-color: rgb(229 229 229 / 0.7); -} - .border-neutral-300{ --tw-border-opacity: 1; border-color: rgb(212 212 212 / var(--tw-border-opacity)); } -.border-neutral-900{ - --tw-border-opacity: 1; - border-color: rgb(23 23 23 / var(--tw-border-opacity)); -} - -.border-red-600{ - --tw-border-opacity: 1; - border-color: rgb(220 38 38 / var(--tw-border-opacity)); -} - .border-transparent{ border-color: transparent; } @@ -1737,11 +1561,6 @@ select{ border-color: rgb(255 255 255 / var(--tw-border-opacity)); } -.border-yellow-500{ - --tw-border-opacity: 1; - border-color: rgb(234 179 8 / var(--tw-border-opacity)); -} - .border-zinc-200{ --tw-border-opacity: 1; border-color: rgb(228 228 231 / var(--tw-border-opacity)); @@ -1752,9 +1571,9 @@ select{ border-color: rgb(212 212 216 / var(--tw-border-opacity)); } -.bg-blue-50{ - --tw-bg-opacity: 1; - background-color: rgb(239 246 255 / var(--tw-bg-opacity)); +.border-zinc-600{ + --tw-border-opacity: 1; + border-color: rgb(82 82 91 / var(--tw-border-opacity)); } .bg-blue-600{ @@ -1762,41 +1581,11 @@ select{ background-color: rgb(37 99 235 / var(--tw-bg-opacity)); } -.bg-green-50{ - --tw-bg-opacity: 1; - background-color: rgb(240 253 244 / var(--tw-bg-opacity)); -} - -.bg-green-600{ - --tw-bg-opacity: 1; - background-color: rgb(22 163 74 / var(--tw-bg-opacity)); -} - -.bg-neutral-50{ - --tw-bg-opacity: 1; - background-color: rgb(250 250 250 / var(--tw-bg-opacity)); -} - -.bg-neutral-900{ - --tw-bg-opacity: 1; - background-color: rgb(23 23 23 / var(--tw-bg-opacity)); -} - .bg-neutral-950{ --tw-bg-opacity: 1; background-color: rgb(10 10 10 / var(--tw-bg-opacity)); } -.bg-red-50{ - --tw-bg-opacity: 1; - background-color: rgb(254 242 242 / var(--tw-bg-opacity)); -} - -.bg-red-600{ - --tw-bg-opacity: 1; - background-color: rgb(220 38 38 / var(--tw-bg-opacity)); -} - .bg-transparent{ background-color: transparent; } @@ -1806,16 +1595,6 @@ select{ background-color: rgb(255 255 255 / var(--tw-bg-opacity)); } -.bg-yellow-50{ - --tw-bg-opacity: 1; - background-color: rgb(254 252 232 / var(--tw-bg-opacity)); -} - -.bg-yellow-600{ - --tw-bg-opacity: 1; - background-color: rgb(202 138 4 / var(--tw-bg-opacity)); -} - .bg-zinc-100{ --tw-bg-opacity: 1; background-color: rgb(244 244 245 / var(--tw-bg-opacity)); @@ -1914,10 +1693,6 @@ select{ object-position: left; } -.p-1{ - padding: 0.25rem; -} - .p-4{ padding: 1rem; } @@ -1930,10 +1705,6 @@ select{ padding: 1.5rem; } -.p-7{ - padding: 1.75rem; -} - .px-0\.5{ padding-left: 0.125rem; padding-right: 0.125rem; @@ -1944,31 +1715,16 @@ select{ padding-right: 0.5rem; } -.px-2\.5{ - padding-left: 0.625rem; - padding-right: 0.625rem; -} - .px-3{ padding-left: 0.75rem; padding-right: 0.75rem; } -.px-3\.5{ - padding-left: 0.875rem; - padding-right: 0.875rem; -} - .px-4{ padding-left: 1rem; padding-right: 1rem; } -.px-5{ - padding-left: 1.25rem; - padding-right: 1.25rem; -} - .px-6{ padding-left: 1.5rem; padding-right: 1.5rem; @@ -1989,11 +1745,6 @@ select{ padding-bottom: 0.125rem; } -.py-1{ - padding-top: 0.25rem; - padding-bottom: 0.25rem; -} - .py-12{ padding-top: 3rem; padding-bottom: 3rem; @@ -2029,18 +1780,10 @@ select{ padding-bottom: 1px; } -.pb-1{ - padding-bottom: 0.25rem; -} - .pb-12{ padding-bottom: 3rem; } -.pb-2{ - padding-bottom: 0.5rem; -} - .pb-3{ padding-bottom: 0.75rem; } @@ -2049,26 +1792,10 @@ select{ padding-bottom: 1rem; } -.pb-6{ - padding-bottom: 1.5rem; -} - .pb-8{ padding-bottom: 2rem; } -.pl-4{ - padding-left: 1rem; -} - -.pr-2{ - padding-right: 0.5rem; -} - -.pr-4{ - padding-right: 1rem; -} - .pt-0{ padding-top: 0px; } @@ -2077,10 +1804,6 @@ select{ padding-top: 3rem; } -.pt-2{ - padding-top: 0.5rem; -} - .pt-32{ padding-top: 8rem; } @@ -2089,10 +1812,6 @@ select{ padding-top: 1.5rem; } -.pt-8{ - padding-top: 2rem; -} - .text-left{ text-align: left; } @@ -2105,10 +1824,6 @@ select{ vertical-align: top; } -.font-inter{ - font-family: Inter, sans-serif; -} - .font-inter-tight{ font-family: Inter Tight, sans-serif; } @@ -2139,12 +1854,6 @@ select{ font-size: 0.6rem; } -.text-base{ - font-size: 1rem; - line-height: 1.5; - letter-spacing: -0.017em; -} - .text-lg{ font-size: 1.125rem; line-height: 1.5; @@ -2156,12 +1865,6 @@ select{ line-height: 1.5715; } -.text-xl{ - font-size: 1.25rem; - line-height: 1.5; - letter-spacing: -0.017em; -} - .text-xs{ font-size: 0.75rem; line-height: 1.5; @@ -2179,10 +1882,6 @@ select{ font-weight: 500; } -.font-normal{ - font-weight: 400; -} - .font-semibold{ font-weight: 600; } @@ -2216,50 +1915,11 @@ select{ letter-spacing: 0.025em; } -.text-blue-500{ - --tw-text-opacity: 1; - color: rgb(59 130 246 / var(--tw-text-opacity)); -} - .text-blue-600{ --tw-text-opacity: 1; color: rgb(37 99 235 / var(--tw-text-opacity)); } -.text-gray-400{ - --tw-text-opacity: 1; - color: rgb(156 163 175 / var(--tw-text-opacity)); -} - -.text-gray-400\/70{ - color: rgb(156 163 175 / 0.7); -} - -.text-gray-500{ - --tw-text-opacity: 1; - color: rgb(107 114 128 / var(--tw-text-opacity)); -} - -.text-gray-600{ - --tw-text-opacity: 1; - color: rgb(75 85 99 / var(--tw-text-opacity)); -} - -.text-green-500{ - --tw-text-opacity: 1; - color: rgb(34 197 94 / var(--tw-text-opacity)); -} - -.text-green-600{ - --tw-text-opacity: 1; - color: rgb(22 163 74 / var(--tw-text-opacity)); -} - -.text-neutral-100{ - --tw-text-opacity: 1; - color: rgb(245 245 245 / var(--tw-text-opacity)); -} - .text-neutral-500{ --tw-text-opacity: 1; color: rgb(115 115 115 / var(--tw-text-opacity)); @@ -2270,26 +1930,6 @@ select{ color: rgb(82 82 82 / var(--tw-text-opacity)); } -.text-neutral-800{ - --tw-text-opacity: 1; - color: rgb(38 38 38 / var(--tw-text-opacity)); -} - -.text-neutral-900{ - --tw-text-opacity: 1; - color: rgb(23 23 23 / var(--tw-text-opacity)); -} - -.text-red-500{ - --tw-text-opacity: 1; - color: rgb(239 68 68 / var(--tw-text-opacity)); -} - -.text-red-600{ - --tw-text-opacity: 1; - color: rgb(220 38 38 / var(--tw-text-opacity)); -} - .text-transparent{ color: transparent; } @@ -2299,11 +1939,6 @@ select{ color: rgb(255 255 255 / var(--tw-text-opacity)); } -.text-yellow-600{ - --tw-text-opacity: 1; - color: rgb(202 138 4 / var(--tw-text-opacity)); -} - .text-zinc-100{ --tw-text-opacity: 1; color: rgb(244 244 245 / var(--tw-text-opacity)); @@ -2356,11 +1991,6 @@ select{ text-underline-offset: 4px; } -.antialiased{ - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - .opacity-0{ opacity: 0; } @@ -2439,10 +2069,6 @@ select{ transition-duration: 150ms; } -.duration-100{ - transition-duration: 100ms; -} - .duration-200{ transition-duration: 200ms; } @@ -3092,81 +2718,16 @@ input[type="search"]::-webkit-search-results-decoration { display: none; } -.hover\:bg-blue-100:hover{ - --tw-bg-opacity: 1; - background-color: rgb(219 234 254 / var(--tw-bg-opacity)); -} - -.hover\:bg-blue-600:hover{ - --tw-bg-opacity: 1; - background-color: rgb(37 99 235 / var(--tw-bg-opacity)); -} - -.hover\:bg-blue-700:hover{ - --tw-bg-opacity: 1; - background-color: rgb(29 78 216 / var(--tw-bg-opacity)); -} - -.hover\:bg-green-100:hover{ - --tw-bg-opacity: 1; - background-color: rgb(220 252 231 / var(--tw-bg-opacity)); -} - -.hover\:bg-green-600:hover{ - --tw-bg-opacity: 1; - background-color: rgb(22 163 74 / var(--tw-bg-opacity)); -} - -.hover\:bg-green-700:hover{ - --tw-bg-opacity: 1; - background-color: rgb(21 128 61 / var(--tw-bg-opacity)); -} - .hover\:bg-neutral-100:hover{ --tw-bg-opacity: 1; background-color: rgb(245 245 245 / var(--tw-bg-opacity)); } -.hover\:bg-neutral-800:hover{ - --tw-bg-opacity: 1; - background-color: rgb(38 38 38 / var(--tw-bg-opacity)); -} - .hover\:bg-neutral-900:hover{ --tw-bg-opacity: 1; background-color: rgb(23 23 23 / var(--tw-bg-opacity)); } -.hover\:bg-red-100:hover{ - --tw-bg-opacity: 1; - background-color: rgb(254 226 226 / var(--tw-bg-opacity)); -} - -.hover\:bg-red-600:hover{ - --tw-bg-opacity: 1; - background-color: rgb(220 38 38 / var(--tw-bg-opacity)); -} - -.hover\:bg-red-700:hover{ - --tw-bg-opacity: 1; - background-color: rgb(185 28 28 / var(--tw-bg-opacity)); -} - -.hover\:bg-yellow-100:hover{ - --tw-bg-opacity: 1; - background-color: rgb(254 249 195 / var(--tw-bg-opacity)); -} - -.hover\:bg-yellow-500:hover{ - --tw-bg-opacity: 1; - background-color: rgb(234 179 8 / var(--tw-bg-opacity)); -} - -.hover\:bg-yellow-700:hover{ - --tw-bg-opacity: 1; - background-color: rgb(161 98 7 / var(--tw-bg-opacity)); -} - .hover\:bg-zinc-50:hover{ --tw-bg-opacity: 1; background-color: rgb(250 250 250 / var(--tw-bg-opacity)); @@ -3177,46 +2738,6 @@ input[type="search"]::-webkit-search-results-decoration { background-color: rgb(39 39 42 / var(--tw-bg-opacity)); } -.hover\:text-blue-600:hover{ - --tw-text-opacity: 1; - color: rgb(37 99 235 / var(--tw-text-opacity)); -} - -.hover\:text-green-600:hover{ - --tw-text-opacity: 1; - color: rgb(22 163 74 / var(--tw-text-opacity)); -} - -.hover\:text-neutral-600:hover{ - --tw-text-opacity: 1; - color: rgb(82 82 82 / var(--tw-text-opacity)); -} - -.hover\:text-neutral-700:hover{ - --tw-text-opacity: 1; - color: rgb(64 64 64 / var(--tw-text-opacity)); -} - -.hover\:text-neutral-900:hover{ - --tw-text-opacity: 1; - color: rgb(23 23 23 / var(--tw-text-opacity)); -} - -.hover\:text-red-600:hover{ - --tw-text-opacity: 1; - color: rgb(220 38 38 / var(--tw-text-opacity)); -} - -.hover\:text-white:hover{ - --tw-text-opacity: 1; - color: rgb(255 255 255 / var(--tw-text-opacity)); -} - -.hover\:text-yellow-700:hover{ - --tw-text-opacity: 1; - color: rgb(161 98 7 / var(--tw-text-opacity)); -} - .hover\:text-zinc-300:hover{ --tw-text-opacity: 1; color: rgb(212 212 216 / var(--tw-text-opacity)); @@ -3232,10 +2753,6 @@ input[type="search"]::-webkit-search-results-decoration { color: rgb(24 24 27 / var(--tw-text-opacity)); } -.hover\:underline:hover{ - text-decoration-line: underline; -} - .hover\:opacity-100:hover{ opacity: 1; } @@ -3250,11 +2767,6 @@ input[type="search"]::-webkit-search-results-decoration { border-color: rgb(212 212 216 / var(--tw-border-opacity)); } -.focus\:bg-white:focus{ - --tw-bg-opacity: 1; - background-color: rgb(255 255 255 / var(--tw-bg-opacity)); -} - .focus\:no-underline:focus{ text-decoration-line: none; } @@ -3270,35 +2782,11 @@ input[type="search"]::-webkit-search-results-decoration { box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); } -.focus\:ring-blue-100:focus{ - --tw-ring-opacity: 1; - --tw-ring-color: rgb(219 234 254 / var(--tw-ring-opacity)); -} - -.focus\:ring-blue-700:focus{ - --tw-ring-opacity: 1; - --tw-ring-color: rgb(29 78 216 / var(--tw-ring-opacity)); -} - -.focus\:ring-green-100:focus{ - --tw-ring-opacity: 1; - --tw-ring-color: rgb(220 252 231 / var(--tw-ring-opacity)); -} - -.focus\:ring-green-700:focus{ - --tw-ring-opacity: 1; - --tw-ring-color: rgb(21 128 61 / var(--tw-ring-opacity)); -} - .focus\:ring-neutral-100:focus{ --tw-ring-opacity: 1; --tw-ring-color: rgb(245 245 245 / var(--tw-ring-opacity)); } -.focus\:ring-neutral-200\/60:focus{ - --tw-ring-color: rgb(229 229 229 / 0.6); -} - .focus\:ring-neutral-400:focus{ --tw-ring-opacity: 1; --tw-ring-color: rgb(163 163 163 / var(--tw-ring-opacity)); @@ -3309,26 +2797,6 @@ input[type="search"]::-webkit-search-results-decoration { --tw-ring-color: rgb(23 23 23 / var(--tw-ring-opacity)); } -.focus\:ring-red-100:focus{ - --tw-ring-opacity: 1; - --tw-ring-color: rgb(254 226 226 / var(--tw-ring-opacity)); -} - -.focus\:ring-red-700:focus{ - --tw-ring-opacity: 1; - --tw-ring-color: rgb(185 28 28 / var(--tw-ring-opacity)); -} - -.focus\:ring-yellow-100:focus{ - --tw-ring-opacity: 1; - --tw-ring-color: rgb(254 249 195 / var(--tw-ring-opacity)); -} - -.focus\:ring-yellow-700:focus{ - --tw-ring-opacity: 1; - --tw-ring-color: rgb(161 98 7 / var(--tw-ring-opacity)); -} - .focus\:ring-offset-2:focus{ --tw-ring-offset-width: 2px; } @@ -3348,11 +2816,6 @@ input[type="search"]::-webkit-search-results-decoration { --tw-ring-offset-width: 2px; } -.active\:bg-white:active{ - --tw-bg-opacity: 1; - background-color: rgb(255 255 255 / var(--tw-bg-opacity)); -} - .disabled\:pointer-events-none:disabled{ pointer-events: none; } @@ -3396,12 +2859,6 @@ input[type="search"]::-webkit-search-results-decoration { opacity: 0.7; } -@supports (overflow:clip){ - .supports-\[overflow\:clip\]\:overflow-clip{ - overflow: clip; - } -} - @media not all and (min-width: 1024px){ .max-lg\:w-32{ width: 8rem; @@ -3428,10 +2885,6 @@ input[type="search"]::-webkit-search-results-decoration { grid-column: span 6 / span 6; } - .sm\:mb-0{ - margin-bottom: 0px; - } - .sm\:inline-flex{ display: inline-flex; } @@ -3535,10 +2988,6 @@ input[type="search"]::-webkit-search-results-decoration { grid-template-columns: repeat(4, minmax(0, 1fr)); } - .md\:flex-row{ - flex-direction: row; - } - .md\:justify-start{ justify-content: flex-start; } @@ -3547,10 +2996,6 @@ input[type="search"]::-webkit-search-results-decoration { gap: 0px; } - .md\:gap-4{ - gap: 1rem; - } - .md\:gap-6{ gap: 1.5rem; } @@ -3683,33 +3128,11 @@ input[type="search"]::-webkit-search-results-decoration { background-color: rgb(0 0 0 / 0.1); } - .lg\:p-24{ - padding: 6rem; - } - .lg\:px-5{ padding-left: 1.25rem; padding-right: 1.25rem; } - .lg\:text-2xl{ - font-size: 1.5rem; - line-height: 1.415; - letter-spacing: -0.017em; - } - - .lg\:text-3xl{ - font-size: 2rem; - line-height: 1.3125; - letter-spacing: -0.017em; - } - - .lg\:text-xl{ - font-size: 1.25rem; - line-height: 1.5; - letter-spacing: -0.017em; - } - .lg\:text-white{ --tw-text-opacity: 1; color: rgb(255 255 255 / var(--tw-text-opacity)); @@ -3732,12 +3155,3 @@ input[type="search"]::-webkit-search-results-decoration { margin-left: 0.75rem; margin-right: 0.75rem; } - -.\[\&_\.active-breadcrumb\]\:font-medium .active-breadcrumb{ - font-weight: 500; -} - -.\[\&_\.active-breadcrumb\]\:text-neutral-600 .active-breadcrumb{ - --tw-text-opacity: 1; - color: rgb(82 82 82 / var(--tw-text-opacity)); -} diff --git a/pkg/nebula/components/grant/view.templ b/pkg/nebula/components/grant/view.templ index 12eefcc79..56c844581 100644 --- a/pkg/nebula/components/grant/view.templ +++ b/pkg/nebula/components/grant/view.templ @@ -2,14 +2,16 @@ package grant import ( "github.com/labstack/echo/v4" - "github.com/onsonr/sonr/pkg/nebula/components/blocks" + + "github.com/onsonr/sonr/pkg/nebula/global/styles" + "github.com/onsonr/sonr/pkg/nebula/global/ui" ) templ View(c echo.Context) { - @blocks.Layout("Sonr.ID", true) { - @blocks.Card("authorize-view", blocks.SizeMedium) { - @blocks.H1("Sonr.ID") - @blocks.Text("Neo-tree is a file manager for NeoFS.") + @styles.Layout("Sonr.ID", true) { + @ui.Card("authorize-view", styles.SizeMedium) { + @styles.H1("Sonr.ID") + @styles.Text("Neo-tree is a file manager for NeoFS.") } } } diff --git a/pkg/nebula/components/grant/view_templ.go b/pkg/nebula/components/grant/view_templ.go index fc3ee4105..13bb0d7ee 100644 --- a/pkg/nebula/components/grant/view_templ.go +++ b/pkg/nebula/components/grant/view_templ.go @@ -10,7 +10,9 @@ import templruntime "github.com/a-h/templ/runtime" import ( "github.com/labstack/echo/v4" - "github.com/onsonr/sonr/pkg/nebula/components/blocks" + + "github.com/onsonr/sonr/pkg/nebula/global/styles" + "github.com/onsonr/sonr/pkg/nebula/global/ui" ) func View(c echo.Context) templ.Component { @@ -58,7 +60,7 @@ func View(c echo.Context) templ.Component { }() } ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Err = blocks.H1("Sonr.ID").Render(ctx, templ_7745c5c3_Buffer) + templ_7745c5c3_Err = styles.H1("Sonr.ID").Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -66,19 +68,19 @@ func View(c echo.Context) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = blocks.Text("Neo-tree is a file manager for NeoFS.").Render(ctx, templ_7745c5c3_Buffer) + templ_7745c5c3_Err = styles.Text("Neo-tree is a file manager for NeoFS.").Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } return templ_7745c5c3_Err }) - templ_7745c5c3_Err = blocks.Card("authorize-view", blocks.SizeMedium).Render(templ.WithChildren(ctx, templ_7745c5c3_Var3), templ_7745c5c3_Buffer) + templ_7745c5c3_Err = ui.Card("authorize-view", styles.SizeMedium).Render(templ.WithChildren(ctx, templ_7745c5c3_Var3), templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } return templ_7745c5c3_Err }) - templ_7745c5c3_Err = blocks.Layout("Sonr.ID", true).Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) + templ_7745c5c3_Err = styles.Layout("Sonr.ID", true).Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/pkg/nebula/components/home/header.templ b/pkg/nebula/components/home/header.templ index 9dd0ec4d6..5e6e101cc 100644 --- a/pkg/nebula/components/home/header.templ +++ b/pkg/nebula/components/home/header.templ @@ -9,8 +9,8 @@ templ Header() {
- - Logo + + Logo
diff --git a/pkg/nebula/components/home/header_templ.go b/pkg/nebula/components/home/header_templ.go index 57d740b52..029da6a57 100644 --- a/pkg/nebula/components/home/header_templ.go +++ b/pkg/nebula/components/home/header_templ.go @@ -29,7 +29,7 @@ func Header() templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
\"Logo\"
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
\"Logo\"
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/pkg/nebula/components/home/view.templ b/pkg/nebula/components/home/view.templ index 1d83c9808..dddf771aa 100644 --- a/pkg/nebula/components/home/view.templ +++ b/pkg/nebula/components/home/view.templ @@ -1,12 +1,12 @@ package home import ( - "github.com/onsonr/sonr/pkg/nebula/components/blocks" + "github.com/onsonr/sonr/pkg/nebula/global/styles" "github.com/onsonr/sonr/pkg/nebula/models" ) templ View(home *models.Home) { - @blocks.LayoutNoBody("Sonr.ID", true) { + @styles.LayoutNoBody("Sonr.ID", true) { @Header() @SectionHero(home.Hero) @Highlights() diff --git a/pkg/nebula/components/home/view_templ.go b/pkg/nebula/components/home/view_templ.go index 93fd6732e..e0f84500b 100644 --- a/pkg/nebula/components/home/view_templ.go +++ b/pkg/nebula/components/home/view_templ.go @@ -9,7 +9,7 @@ import "github.com/a-h/templ" import templruntime "github.com/a-h/templ/runtime" import ( - "github.com/onsonr/sonr/pkg/nebula/components/blocks" + "github.com/onsonr/sonr/pkg/nebula/global/styles" "github.com/onsonr/sonr/pkg/nebula/models" ) @@ -108,7 +108,7 @@ func View(home *models.Home) templ.Component { } return templ_7745c5c3_Err }) - templ_7745c5c3_Err = blocks.LayoutNoBody("Sonr.ID", true).Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) + templ_7745c5c3_Err = styles.LayoutNoBody("Sonr.ID", true).Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/pkg/nebula/components/login/view.templ b/pkg/nebula/components/login/view.templ index ed720f996..67642100e 100644 --- a/pkg/nebula/components/login/view.templ +++ b/pkg/nebula/components/login/view.templ @@ -2,18 +2,19 @@ package login import ( "github.com/labstack/echo/v4" - "github.com/onsonr/sonr/pkg/nebula/components/blocks" + "github.com/onsonr/sonr/pkg/nebula/global/styles" + "github.com/onsonr/sonr/pkg/nebula/global/ui" ) templ View(c echo.Context) { - @blocks.Layout("Sonr.ID", true) { - @blocks.Card("login-view", blocks.SizeLarge) { - @blocks.H1("Sonr.ID") - @blocks.Text("Neo-tree is a file manager for NeoFS.") - @blocks.Spacer() - @blocks.Spacer() - @blocks.Button(blocks.GET("/", "#login-view")) { - @blocks.Text("Cancel") + @styles.Layout("Sonr.ID", true) { + @ui.Card("login-view", styles.SizeLarge) { + @styles.H1("Sonr.ID") + @styles.Text("Neo-tree is a file manager for NeoFS.") + @styles.Spacer() + @styles.Spacer() + @ui.Button(ui.GET("/", "#login-view")) { + @styles.Text("Cancel") } } } diff --git a/pkg/nebula/components/login/view_templ.go b/pkg/nebula/components/login/view_templ.go index 64d3aa668..e55aafdf0 100644 --- a/pkg/nebula/components/login/view_templ.go +++ b/pkg/nebula/components/login/view_templ.go @@ -10,7 +10,8 @@ import templruntime "github.com/a-h/templ/runtime" import ( "github.com/labstack/echo/v4" - "github.com/onsonr/sonr/pkg/nebula/components/blocks" + "github.com/onsonr/sonr/pkg/nebula/global/styles" + "github.com/onsonr/sonr/pkg/nebula/global/ui" ) func View(c echo.Context) templ.Component { @@ -58,7 +59,7 @@ func View(c echo.Context) templ.Component { }() } ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Err = blocks.H1("Sonr.ID").Render(ctx, templ_7745c5c3_Buffer) + templ_7745c5c3_Err = styles.H1("Sonr.ID").Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -66,7 +67,7 @@ func View(c echo.Context) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = blocks.Text("Neo-tree is a file manager for NeoFS.").Render(ctx, templ_7745c5c3_Buffer) + templ_7745c5c3_Err = styles.Text("Neo-tree is a file manager for NeoFS.").Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -74,7 +75,7 @@ func View(c echo.Context) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = blocks.Spacer().Render(ctx, templ_7745c5c3_Buffer) + templ_7745c5c3_Err = styles.Spacer().Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -82,7 +83,7 @@ func View(c echo.Context) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = blocks.Spacer().Render(ctx, templ_7745c5c3_Buffer) + templ_7745c5c3_Err = styles.Spacer().Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -102,25 +103,25 @@ func View(c echo.Context) templ.Component { }() } ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Err = blocks.Text("Cancel").Render(ctx, templ_7745c5c3_Buffer) + templ_7745c5c3_Err = styles.Text("Cancel").Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } return templ_7745c5c3_Err }) - templ_7745c5c3_Err = blocks.Button(blocks.GET("/", "#login-view")).Render(templ.WithChildren(ctx, templ_7745c5c3_Var4), templ_7745c5c3_Buffer) + templ_7745c5c3_Err = ui.Button(ui.GET("/", "#login-view")).Render(templ.WithChildren(ctx, templ_7745c5c3_Var4), templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } return templ_7745c5c3_Err }) - templ_7745c5c3_Err = blocks.Card("login-view", blocks.SizeLarge).Render(templ.WithChildren(ctx, templ_7745c5c3_Var3), templ_7745c5c3_Buffer) + templ_7745c5c3_Err = ui.Card("login-view", styles.SizeLarge).Render(templ.WithChildren(ctx, templ_7745c5c3_Var3), templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } return templ_7745c5c3_Err }) - templ_7745c5c3_Err = blocks.Layout("Sonr.ID", true).Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) + templ_7745c5c3_Err = styles.Layout("Sonr.ID", true).Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/pkg/nebula/components/profile/view.templ b/pkg/nebula/components/profile/view.templ index 314eb890a..103fde545 100644 --- a/pkg/nebula/components/profile/view.templ +++ b/pkg/nebula/components/profile/view.templ @@ -2,13 +2,14 @@ package profile import ( "github.com/labstack/echo/v4" - "github.com/onsonr/sonr/pkg/nebula/components/blocks" + "github.com/onsonr/sonr/pkg/nebula/global/styles" + "github.com/onsonr/sonr/pkg/nebula/global/ui" ) templ View(c echo.Context) { - @blocks.Layout("Sonr.ID", true) { - @blocks.Card("profile-view", blocks.SizeLarge) { - @blocks.ProfileCard() + @styles.Layout("Sonr.ID", true) { + @ui.Card("profile-view", styles.SizeLarge) { + @ui.ProfileCard() } } } diff --git a/pkg/nebula/components/profile/view_templ.go b/pkg/nebula/components/profile/view_templ.go index a06107e70..e7a54b9bb 100644 --- a/pkg/nebula/components/profile/view_templ.go +++ b/pkg/nebula/components/profile/view_templ.go @@ -10,7 +10,8 @@ import templruntime "github.com/a-h/templ/runtime" import ( "github.com/labstack/echo/v4" - "github.com/onsonr/sonr/pkg/nebula/components/blocks" + "github.com/onsonr/sonr/pkg/nebula/global/styles" + "github.com/onsonr/sonr/pkg/nebula/global/ui" ) func View(c echo.Context) templ.Component { @@ -58,19 +59,19 @@ func View(c echo.Context) templ.Component { }() } ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Err = blocks.ProfileCard().Render(ctx, templ_7745c5c3_Buffer) + templ_7745c5c3_Err = ui.ProfileCard().Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } return templ_7745c5c3_Err }) - templ_7745c5c3_Err = blocks.Card("profile-view", blocks.SizeLarge).Render(templ.WithChildren(ctx, templ_7745c5c3_Var3), templ_7745c5c3_Buffer) + templ_7745c5c3_Err = ui.Card("profile-view", styles.SizeLarge).Render(templ.WithChildren(ctx, templ_7745c5c3_Var3), templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } return templ_7745c5c3_Err }) - templ_7745c5c3_Err = blocks.Layout("Sonr.ID", true).Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) + templ_7745c5c3_Err = styles.Layout("Sonr.ID", true).Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/pkg/nebula/components/register/modal.templ b/pkg/nebula/components/register/modal.templ index e21a74cf9..557fd3aa5 100644 --- a/pkg/nebula/components/register/modal.templ +++ b/pkg/nebula/components/register/modal.templ @@ -2,7 +2,8 @@ package register import ( "github.com/labstack/echo/v4" - "github.com/onsonr/sonr/pkg/nebula/components/blocks" + "github.com/onsonr/sonr/pkg/nebula/global/styles" + "github.com/onsonr/sonr/pkg/nebula/global/ui" ) templ Modal(c echo.Context) { @@ -45,9 +46,9 @@ templ Modal(c echo.Context) {

Enter your account information below to create your account.

- @blocks.Breadcrumbs() + @ui.Breadcrumbs() @basicInfoForm() - @blocks.Spacer() + @styles.Spacer()
diff --git a/pkg/nebula/components/register/modal_templ.go b/pkg/nebula/components/register/modal_templ.go index 04386e445..9cd7c8aed 100644 --- a/pkg/nebula/components/register/modal_templ.go +++ b/pkg/nebula/components/register/modal_templ.go @@ -10,7 +10,8 @@ import templruntime "github.com/a-h/templ/runtime" import ( "github.com/labstack/echo/v4" - "github.com/onsonr/sonr/pkg/nebula/components/blocks" + "github.com/onsonr/sonr/pkg/nebula/global/styles" + "github.com/onsonr/sonr/pkg/nebula/global/ui" ) func Modal(c echo.Context) templ.Component { @@ -38,7 +39,7 @@ func Modal(c echo.Context) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = blocks.Breadcrumbs().Render(ctx, templ_7745c5c3_Buffer) + templ_7745c5c3_Err = ui.Breadcrumbs().Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -46,7 +47,7 @@ func Modal(c echo.Context) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = blocks.Spacer().Render(ctx, templ_7745c5c3_Buffer) + templ_7745c5c3_Err = styles.Spacer().Render(ctx, templ_7745c5c3_Buffer) if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/pkg/nebula/components/blocks/fonts.templ b/pkg/nebula/global/styles/fonts.templ similarity index 98% rename from pkg/nebula/components/blocks/fonts.templ rename to pkg/nebula/global/styles/fonts.templ index bbd2d6e36..f75c3e699 100644 --- a/pkg/nebula/components/blocks/fonts.templ +++ b/pkg/nebula/global/styles/fonts.templ @@ -1,4 +1,4 @@ -package blocks +package styles func H1(content string) templ.Component { return renderText(1, content) diff --git a/pkg/nebula/components/blocks/fonts_templ.go b/pkg/nebula/global/styles/fonts_templ.go similarity index 96% rename from pkg/nebula/components/blocks/fonts_templ.go rename to pkg/nebula/global/styles/fonts_templ.go index 564baf691..3f6bb6eee 100644 --- a/pkg/nebula/components/blocks/fonts_templ.go +++ b/pkg/nebula/global/styles/fonts_templ.go @@ -1,7 +1,7 @@ // Code generated by templ - DO NOT EDIT. // templ: version: v0.2.778 -package blocks +package styles //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -54,7 +54,7 @@ func renderText(level int, text string) templ.Component { var templ_7745c5c3_Var2 string templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(text) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/fonts.templ`, Line: 23, Col: 10} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/styles/fonts.templ`, Line: 23, Col: 10} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2)) if templ_7745c5c3_Err != nil { @@ -72,7 +72,7 @@ func renderText(level int, text string) templ.Component { var templ_7745c5c3_Var3 string templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(text) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/fonts.templ`, Line: 27, Col: 10} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/styles/fonts.templ`, Line: 27, Col: 10} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) if templ_7745c5c3_Err != nil { @@ -90,7 +90,7 @@ func renderText(level int, text string) templ.Component { var templ_7745c5c3_Var4 string templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(text) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/fonts.templ`, Line: 31, Col: 10} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/styles/fonts.templ`, Line: 31, Col: 10} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) if templ_7745c5c3_Err != nil { @@ -108,7 +108,7 @@ func renderText(level int, text string) templ.Component { var templ_7745c5c3_Var5 string templ_7745c5c3_Var5, templ_7745c5c3_Err = templ.JoinStringErrs(text) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/fonts.templ`, Line: 35, Col: 10} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/styles/fonts.templ`, Line: 35, Col: 10} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var5)) if templ_7745c5c3_Err != nil { @@ -159,7 +159,7 @@ func renderLink(attrs templ.Attributes, text string) templ.Component { var templ_7745c5c3_Var7 string templ_7745c5c3_Var7, templ_7745c5c3_Err = templ.JoinStringErrs(text) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/fonts.templ`, Line: 42, Col: 8} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/styles/fonts.templ`, Line: 42, Col: 8} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var7)) if templ_7745c5c3_Err != nil { @@ -209,7 +209,7 @@ func renderStrong(attrs templ.Attributes, text string) templ.Component { var templ_7745c5c3_Var9 string templ_7745c5c3_Var9, templ_7745c5c3_Err = templ.JoinStringErrs(text) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/fonts.templ`, Line: 48, Col: 8} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/styles/fonts.templ`, Line: 48, Col: 8} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var9)) if templ_7745c5c3_Err != nil { @@ -259,7 +259,7 @@ func renderEmphasis(attrs templ.Attributes, text string) templ.Component { var templ_7745c5c3_Var11 string templ_7745c5c3_Var11, templ_7745c5c3_Err = templ.JoinStringErrs(text) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/fonts.templ`, Line: 54, Col: 8} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/styles/fonts.templ`, Line: 54, Col: 8} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var11)) if templ_7745c5c3_Err != nil { @@ -309,7 +309,7 @@ func renderCode(attrs templ.Attributes, text string) templ.Component { var templ_7745c5c3_Var13 string templ_7745c5c3_Var13, templ_7745c5c3_Err = templ.JoinStringErrs(text) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/fonts.templ`, Line: 60, Col: 8} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/styles/fonts.templ`, Line: 60, Col: 8} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var13)) if templ_7745c5c3_Err != nil { diff --git a/pkg/nebula/components/blocks/head.templ b/pkg/nebula/global/styles/head.templ similarity index 99% rename from pkg/nebula/components/blocks/head.templ rename to pkg/nebula/global/styles/head.templ index 48e27108b..40083fadc 100644 --- a/pkg/nebula/components/blocks/head.templ +++ b/pkg/nebula/global/styles/head.templ @@ -1,4 +1,4 @@ -package blocks +package styles import "strings" diff --git a/pkg/nebula/components/blocks/head_templ.go b/pkg/nebula/global/styles/head_templ.go similarity index 99% rename from pkg/nebula/components/blocks/head_templ.go rename to pkg/nebula/global/styles/head_templ.go index 51f9e2f27..935f8ca1b 100644 --- a/pkg/nebula/components/blocks/head_templ.go +++ b/pkg/nebula/global/styles/head_templ.go @@ -1,7 +1,7 @@ // Code generated by templ - DO NOT EDIT. // templ: version: v0.2.778 -package blocks +package styles //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/nebula/components/blocks/layout.templ b/pkg/nebula/global/styles/layout.templ similarity index 99% rename from pkg/nebula/components/blocks/layout.templ rename to pkg/nebula/global/styles/layout.templ index 40c283d67..016443807 100644 --- a/pkg/nebula/components/blocks/layout.templ +++ b/pkg/nebula/global/styles/layout.templ @@ -1,4 +1,4 @@ -package blocks +package styles templ Layout(title string, remote bool) { diff --git a/pkg/nebula/components/blocks/layout_templ.go b/pkg/nebula/global/styles/layout_templ.go similarity index 98% rename from pkg/nebula/components/blocks/layout_templ.go rename to pkg/nebula/global/styles/layout_templ.go index 171a596e1..2e67402b4 100644 --- a/pkg/nebula/components/blocks/layout_templ.go +++ b/pkg/nebula/global/styles/layout_templ.go @@ -1,7 +1,7 @@ // Code generated by templ - DO NOT EDIT. // templ: version: v0.2.778 -package blocks +package styles //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -52,7 +52,7 @@ func Layout(title string, remote bool) templ.Component { var templ_7745c5c3_Var2 string templ_7745c5c3_Var2, templ_7745c5c3_Err = templ.JoinStringErrs(title) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/layout.templ`, Line: 13, Col: 17} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/styles/layout.templ`, Line: 13, Col: 17} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var2)) if templ_7745c5c3_Err != nil { @@ -118,7 +118,7 @@ func LayoutNoBody(title string, remote bool) templ.Component { var templ_7745c5c3_Var4 string templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(title) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/layout.templ`, Line: 37, Col: 17} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/styles/layout.templ`, Line: 37, Col: 17} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) if templ_7745c5c3_Err != nil { diff --git a/pkg/nebula/components/blocks/sizes.templ b/pkg/nebula/global/styles/sizes.templ similarity index 98% rename from pkg/nebula/components/blocks/sizes.templ rename to pkg/nebula/global/styles/sizes.templ index a36727643..1059a817c 100644 --- a/pkg/nebula/components/blocks/sizes.templ +++ b/pkg/nebula/global/styles/sizes.templ @@ -1,4 +1,4 @@ -package blocks +package styles type Size int diff --git a/pkg/nebula/components/blocks/sizes_templ.go b/pkg/nebula/global/styles/sizes_templ.go similarity index 98% rename from pkg/nebula/components/blocks/sizes_templ.go rename to pkg/nebula/global/styles/sizes_templ.go index 3a6e40584..4e9555a0c 100644 --- a/pkg/nebula/components/blocks/sizes_templ.go +++ b/pkg/nebula/global/styles/sizes_templ.go @@ -1,7 +1,7 @@ // Code generated by templ - DO NOT EDIT. // templ: version: v0.2.778 -package blocks +package styles //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/nebula/components/blocks/badge.templ b/pkg/nebula/global/ui/badge.templ similarity index 99% rename from pkg/nebula/components/blocks/badge.templ rename to pkg/nebula/global/ui/badge.templ index a8ac1584e..266d6fbf7 100644 --- a/pkg/nebula/components/blocks/badge.templ +++ b/pkg/nebula/global/ui/badge.templ @@ -1,4 +1,4 @@ -package blocks +package ui templ PoweredBySonr() {
diff --git a/pkg/nebula/components/blocks/badge_templ.go b/pkg/nebula/global/ui/badge_templ.go similarity index 99% rename from pkg/nebula/components/blocks/badge_templ.go rename to pkg/nebula/global/ui/badge_templ.go index 202f7ab97..606c77c21 100644 --- a/pkg/nebula/components/blocks/badge_templ.go +++ b/pkg/nebula/global/ui/badge_templ.go @@ -1,7 +1,7 @@ // Code generated by templ - DO NOT EDIT. // templ: version: v0.2.778 -package blocks +package ui //lint:file-ignore SA4006 This context is only used if a nested component is present. diff --git a/pkg/nebula/components/blocks/button.templ b/pkg/nebula/global/ui/button.templ similarity index 94% rename from pkg/nebula/components/blocks/button.templ rename to pkg/nebula/global/ui/button.templ index 6f05f6b4e..81e240a43 100644 --- a/pkg/nebula/components/blocks/button.templ +++ b/pkg/nebula/global/ui/button.templ @@ -1,7 +1,22 @@ -package blocks +package ui + +import "github.com/onsonr/sonr/pkg/nebula/global/styles" + +templ PrimaryButton(href string, text string) { +
+
{ text }
+
+} + +templ SecondaryButton(href string, text string) { +
+
{ text }
+
+} + type button struct { - variant Variant + variant styles.Variant hxGet string hxPost string hxTarget string diff --git a/pkg/nebula/components/blocks/button_templ.go b/pkg/nebula/global/ui/button_templ.go similarity index 74% rename from pkg/nebula/components/blocks/button_templ.go rename to pkg/nebula/global/ui/button_templ.go index b7a09278a..315dc1fce 100644 --- a/pkg/nebula/components/blocks/button_templ.go +++ b/pkg/nebula/global/ui/button_templ.go @@ -1,15 +1,127 @@ // Code generated by templ - DO NOT EDIT. // templ: version: v0.2.778 -package blocks +package ui //lint:file-ignore SA4006 This context is only used if a nested component is present. import "github.com/a-h/templ" import templruntime "github.com/a-h/templ/runtime" +import "github.com/onsonr/sonr/pkg/nebula/global/styles" + +func PrimaryButton(href string, text string) templ.Component { + return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) + if !templ_7745c5c3_IsBuffer { + defer func() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var1 := templ.GetChildren(ctx) + if templ_7745c5c3_Var1 == nil { + templ_7745c5c3_Var1 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var3 string + templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(text) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/ui/button.templ`, Line: 7, Col: 133} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return templ_7745c5c3_Err + }) +} + +func SecondaryButton(href string, text string) templ.Component { + return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { + templ_7745c5c3_W, ctx := templ_7745c5c3_Input.Writer, templ_7745c5c3_Input.Context + if templ_7745c5c3_CtxErr := ctx.Err(); templ_7745c5c3_CtxErr != nil { + return templ_7745c5c3_CtxErr + } + templ_7745c5c3_Buffer, templ_7745c5c3_IsBuffer := templruntime.GetBuffer(templ_7745c5c3_W) + if !templ_7745c5c3_IsBuffer { + defer func() { + templ_7745c5c3_BufErr := templruntime.ReleaseBuffer(templ_7745c5c3_Buffer) + if templ_7745c5c3_Err == nil { + templ_7745c5c3_Err = templ_7745c5c3_BufErr + } + }() + } + ctx = templ.InitializeContext(ctx) + templ_7745c5c3_Var4 := templ.GetChildren(ctx) + if templ_7745c5c3_Var4 == nil { + templ_7745c5c3_Var4 = templ.NopComponent + } + ctx = templ.ClearChildren(ctx) + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + var templ_7745c5c3_Var6 string + templ_7745c5c3_Var6, templ_7745c5c3_Err = templ.JoinStringErrs(text) + if templ_7745c5c3_Err != nil { + return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/ui/button.templ`, Line: 13, Col: 132} + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var6)) + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + if templ_7745c5c3_Err != nil { + return templ_7745c5c3_Err + } + return templ_7745c5c3_Err + }) +} + type button struct { - variant Variant + variant styles.Variant hxGet string hxPost string hxTarget string @@ -100,9 +212,9 @@ func renderButton(attrs templ.Attributes) templ.Component { }() } ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Var1 := templ.GetChildren(ctx) - if templ_7745c5c3_Var1 == nil { - templ_7745c5c3_Var1 = templ.NopComponent + templ_7745c5c3_Var7 := templ.GetChildren(ctx) + if templ_7745c5c3_Var7 == nil { + templ_7745c5c3_Var7 = templ.NopComponent } ctx = templ.ClearChildren(ctx) _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" + diff --git a/pkg/nebula/components/blocks/panel_templ.go b/pkg/nebula/global/ui/panel_templ.go similarity index 98% rename from pkg/nebula/components/blocks/panel_templ.go rename to pkg/nebula/global/ui/panel_templ.go index 420409a2c..ce84cd57b 100644 --- a/pkg/nebula/components/blocks/panel_templ.go +++ b/pkg/nebula/global/ui/panel_templ.go @@ -1,7 +1,7 @@ // Code generated by templ - DO NOT EDIT. // templ: version: v0.2.778 -package blocks +package ui //lint:file-ignore SA4006 This context is only used if a nested component is present. @@ -100,7 +100,7 @@ func breadcrumbItem(title string, active bool) templ.Component { var templ_7745c5c3_Var3 string templ_7745c5c3_Var3, templ_7745c5c3_Err = templ.JoinStringErrs(title) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/panel.templ`, Line: 25, Col: 126} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/ui/panel.templ`, Line: 26, Col: 126} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var3)) if templ_7745c5c3_Err != nil { @@ -118,7 +118,7 @@ func breadcrumbItem(title string, active bool) templ.Component { var templ_7745c5c3_Var4 string templ_7745c5c3_Var4, templ_7745c5c3_Err = templ.JoinStringErrs(title) if templ_7745c5c3_Err != nil { - return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/components/blocks/panel.templ`, Line: 27, Col: 118} + return templ.Error{Err: templ_7745c5c3_Err, FileName: `pkg/nebula/global/ui/panel.templ`, Line: 28, Col: 118} } _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(templ.EscapeString(templ_7745c5c3_Var4)) if templ_7745c5c3_Err != nil { @@ -154,7 +154,7 @@ func breadcrumbIcon() templ.Component { templ_7745c5c3_Var5 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" ") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString(" ") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }