negodesign 0.0.18 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -88,12 +88,12 @@
88
88
  >
89
89
  {#each layers as bg, i (i)}
90
90
  <div
91
- class="absolute inset-0 bg-cover bg-center will-change-[opacity]"
91
+ class="absolute inset-0 bg-cover bg-center bg-no-repeat will-change-[opacity]"
92
92
  style="
93
- background-image: {bg ? `url(${bg})` : 'none'};
94
- opacity: {i === active ? 1 : 0};
95
- transition: opacity {transitionMs}ms ease-in-out;
96
- "
93
+ background-image: {bg ? `url(${bg})` : 'none'};
94
+ opacity: {i === active ? 1 : 0};
95
+ transition: opacity {transitionMs}ms ease-in-out;
96
+ "
97
97
  ></div>
98
98
  {/each}
99
99
 
@@ -108,15 +108,21 @@
108
108
  {#key selected.title}
109
109
  <div
110
110
  style="transition: opacity {transitionMs * 0.6}ms ease-in-out;"
111
- class="opacity-0"
111
+ class="opacity-0 flex flex-col justify-center items-center text-center"
112
112
  use:fadeIn
113
113
  >
114
- <h1 class="text-white text-2xl md:text-4xl font-bold {titleClass}">
115
- {selected.title}
116
- </h1>
117
- <p class="text-white/90 mt-2 max-w-2xl {descriptionClass}">
118
- {selected.description}
119
- </p>
114
+ <div>
115
+ <h1
116
+ class="text-white text-2xl md:text-4xl font-bold {titleClass}"
117
+ >
118
+ {selected.title}
119
+ </h1>
120
+ </div>
121
+ <div class="flex flex-col justify-center items-center">
122
+ <p class="text-white/90 mt-2 max-w-2xl {descriptionClass}">
123
+ {selected.description}
124
+ </p>
125
+ </div>
120
126
  </div>
121
127
  {/key}
122
128
 
@@ -14,7 +14,7 @@
14
14
  logo,
15
15
  links,
16
16
  actions,
17
- navClass = "",
17
+ navClass = "w-full",
18
18
  linkClass = "",
19
19
  groupClass = "",
20
20
  buttonClass = "",
package/dist/globals.css CHANGED
@@ -507,6 +507,9 @@
507
507
  .mb-8 {
508
508
  margin-bottom: calc(var(--spacing) * 8);
509
509
  }
510
+ .mb-10 {
511
+ margin-bottom: calc(var(--spacing) * 10);
512
+ }
510
513
  .ml-10 {
511
514
  margin-left: calc(var(--spacing) * 10);
512
515
  }
@@ -773,6 +776,9 @@
773
776
  .w-11 {
774
777
  width: calc(var(--spacing) * 11);
775
778
  }
779
+ .w-11\/12 {
780
+ width: calc(11 / 12 * 100%);
781
+ }
776
782
  .w-12 {
777
783
  width: calc(var(--spacing) * 12);
778
784
  }
@@ -1469,6 +1475,9 @@
1469
1475
  .bg-center {
1470
1476
  background-position: center;
1471
1477
  }
1478
+ .bg-no-repeat {
1479
+ background-repeat: no-repeat;
1480
+ }
1472
1481
  .fill-current {
1473
1482
  fill: currentcolor;
1474
1483
  }
@@ -3229,6 +3238,9 @@
3229
3238
  .md\:mx-4 {
3230
3239
  margin-inline: calc(var(--spacing) * 4);
3231
3240
  }
3241
+ .md\:my-2 {
3242
+ margin-block: calc(var(--spacing) * 2);
3243
+ }
3232
3244
  .md\:mt-10 {
3233
3245
  margin-top: calc(var(--spacing) * 10);
3234
3246
  }
@@ -3253,6 +3265,9 @@
3253
3265
  .md\:min-h-125 {
3254
3266
  min-height: calc(var(--spacing) * 125);
3255
3267
  }
3268
+ .md\:w-3\/5 {
3269
+ width: calc(3 / 5 * 100%);
3270
+ }
3256
3271
  .md\:w-4\/12 {
3257
3272
  width: calc(4 / 12 * 100%);
3258
3273
  }
@@ -3265,6 +3280,9 @@
3265
3280
  .md\:w-37\.5 {
3266
3281
  width: calc(var(--spacing) * 37.5);
3267
3282
  }
3283
+ .md\:w-225 {
3284
+ width: calc(var(--spacing) * 225);
3285
+ }
3268
3286
  .md\:max-w-md {
3269
3287
  max-width: var(--container-md);
3270
3288
  }
@@ -3280,6 +3298,9 @@
3280
3298
  .md\:gap-5 {
3281
3299
  gap: calc(var(--spacing) * 5);
3282
3300
  }
3301
+ .md\:gap-20 {
3302
+ gap: calc(var(--spacing) * 20);
3303
+ }
3283
3304
  :where(.md\:space-y-3 > :not(:last-child)) {
3284
3305
  --tw-space-y-reverse: 0;
3285
3306
  margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));
@@ -3313,6 +3334,10 @@
3313
3334
  font-size: var(--text-base);
3314
3335
  line-height: var(--tw-leading, var(--text-base--line-height));
3315
3336
  }
3337
+ .md\:text-lg {
3338
+ font-size: var(--text-lg);
3339
+ line-height: var(--tw-leading, var(--text-lg--line-height));
3340
+ }
3316
3341
  .md\:text-sm {
3317
3342
  font-size: var(--text-sm);
3318
3343
  line-height: var(--tw-leading, var(--text-sm--line-height));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "negodesign",
3
- "version": "0.0.18",
3
+ "version": "0.0.20",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "sideEffects": [