Skip to content

Commit

Permalink
Chore tweak dynamicdatabanner UI (#980)
Browse files Browse the repository at this point in the history
* update stories

* update font and gap + act bierror

* add individual item style

* fix divider height not showing

* fix error message

* migrate from storybook-addon-mock to msw-storybook-addon

* add loading state story

* add loading state

* update homepage to use msw + move banner above hero

* update preview-tw.css

* prettier fix

* replace with children

* refactor: guard clause

* make props optional
  • Loading branch information
adriangohjw authored Jan 16, 2025
1 parent c75d1a0 commit e00ca16
Show file tree
Hide file tree
Showing 10 changed files with 489 additions and 309 deletions.
126 changes: 55 additions & 71 deletions apps/studio/public/assets/css/preview-tw.css
Original file line number Diff line number Diff line change
Expand Up @@ -1584,6 +1584,10 @@ video {
min-height: 4rem;
}

.min-h-4 {
min-height: 1rem;
}

.min-h-40 {
min-height: 10rem;
}
Expand Down Expand Up @@ -1621,6 +1625,10 @@ video {
width: 2.5rem;
}

.w-11 {
width: 2.75rem;
}

.w-12 {
width: 3rem;
}
Expand Down Expand Up @@ -1682,6 +1690,10 @@ video {
min-width: 0px;
}

.min-w-4 {
min-width: 1rem;
}

.min-w-full {
min-width: 100%;
}
Expand Down Expand Up @@ -1846,6 +1858,16 @@ video {
scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

@keyframes pulse {
50% {
opacity: 0.5;
}
}

.animate-pulse {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.cursor-not-allowed {
cursor: not-allowed;
}
Expand Down Expand Up @@ -1912,6 +1934,10 @@ video {
grid-template-columns: 1fr min-content;
}

.grid-cols-\[repeat\(3\2c minmax\(10rem\2c 1fr\)\)\] {
grid-template-columns: repeat(3, minmax(10rem, 1fr));
}

.grid-rows-\[1fr_min-content\] {
grid-template-rows: 1fr min-content;
}
Expand Down Expand Up @@ -2068,10 +2094,6 @@ video {
column-gap: 2rem;
}

.gap-y-1 {
row-gap: 0.25rem;
}

.gap-y-10 {
row-gap: 2.5rem;
}
Expand Down Expand Up @@ -2194,6 +2216,10 @@ video {
border-radius: 0px;
}

.rounded-sm {
border-radius: 0.125rem;
}

.border {
border-width: 1px;
}
Expand Down Expand Up @@ -2326,6 +2352,15 @@ video {
border-top-color: rgb(208 208 208 / var(--tw-border-opacity));
}

.bg-\[\#0000001a\] {
background-color: #0000001a;
}

.bg-\[\#9CA3AF\] {
--tw-bg-opacity: 1;
background-color: rgb(156 163 175 / var(--tw-bg-opacity));
}

.bg-\[\#f0f0f0\] {
--tw-bg-opacity: 1;
background-color: rgb(240 240 240 / var(--tw-bg-opacity));
Expand Down Expand Up @@ -4828,6 +4863,10 @@ video {
display: none;
}

.md\:h-4 {
height: 1rem;
}

.md\:h-52 {
height: 13rem;
}
Expand Down Expand Up @@ -4892,8 +4931,8 @@ video {
justify-content: space-between;
}

.md\:justify-items-center {
justify-items: center;
.md\:justify-items-end {
justify-items: end;
}

.md\:gap-1 {
Expand All @@ -4908,10 +4947,6 @@ video {
gap: 0.75rem;
}

.md\:gap-4 {
gap: 1rem;
}

.md\:gap-5 {
gap: 1.25rem;
}
Expand All @@ -4929,6 +4964,10 @@ video {
row-gap: 3rem;
}

.md\:gap-y-2 {
row-gap: 0.5rem;
}

.md\:p-16 {
padding: 4rem;
}
Expand All @@ -4948,16 +4987,6 @@ video {
padding-bottom: 4rem;
}

.md\:py-2 {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}

.md\:py-3 {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
}

.md\:py-6 {
padding-top: 1.5rem;
padding-bottom: 1.5rem;
Expand All @@ -4967,10 +4996,6 @@ video {
padding-bottom: 5rem;
}

.md\:pb-3 {
padding-bottom: 0.75rem;
}

.md\:pt-0 {
padding-top: 0px;
}
Expand Down Expand Up @@ -5007,18 +5032,10 @@ video {
grid-column: span 3 / span 3;
}

.lg\:col-span-8 {
grid-column: span 8 / span 8;
}

.lg\:col-span-9 {
grid-column: span 9 / span 9;
}

.lg\:col-start-5 {
grid-column-start: 5;
}

.lg\:mx-0 {
margin-left: 0px;
margin-right: 0px;
Expand Down Expand Up @@ -5153,10 +5170,6 @@ video {
max-width: none;
}

.lg\:grid-cols-12 {
grid-template-columns: repeat(12, minmax(0, 1fr));
}

.lg\:grid-cols-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
Expand All @@ -5173,46 +5186,18 @@ video {
flex-direction: row;
}

.lg\:flex-col {
flex-direction: column;
}

.lg\:content-center {
align-content: center;
}

.lg\:items-start {
align-items: flex-start;
}

.lg\:items-end {
align-items: flex-end;
}

.lg\:justify-start {
justify-content: flex-start;
.lg\:items-center {
align-items: center;
}

.lg\:justify-end {
justify-content: flex-end;
}

.lg\:justify-center {
justify-content: center;
}

.lg\:justify-between {
justify-content: space-between;
}

.lg\:justify-items-stretch {
justify-items: stretch;
}

.lg\:gap-0 {
gap: 0px;
}

.lg\:gap-10 {
gap: 2.5rem;
}
Expand All @@ -5233,6 +5218,10 @@ video {
gap: 10rem;
}

.lg\:gap-5 {
gap: 1.25rem;
}

.lg\:gap-6 {
gap: 1.5rem;
}
Expand Down Expand Up @@ -5273,11 +5262,6 @@ video {
padding-right: 2rem;
}

.lg\:py-0 {
padding-top: 0px;
padding-bottom: 0px;
}

.lg\:py-16 {
padding-top: 4rem;
padding-bottom: 4rem;
Expand Down
Loading

0 comments on commit e00ca16

Please sign in to comment.